i write a GenericDAO (stateless session bean).

in the dao i need entity manager , s oi use in the following lines:
    @PersistenceContext(unitName="persistence_unit_name")
    EntityManager em;

In my application i have multiple persistence units (some of them created in 
run time).

so, i have problem to use this DAO, because it demand to write the persistence 
unit name at compile time.

I thought on AOP solution to intercept Jboss injection process and in run time 
set the persistence unit.

I am asking how can i do this?

Thank you

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050117#4050117

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050117
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to