[jboss-user] [JBoss jBPM] - Re: Best Practice to get SessionFactory
Toriton
do-not-reply at jboss.com
Thu Apr 16 04:01:51 EDT 2009
Hi all again :),
i found another way to get SessionFactory, and i want know if this is a most clear solution.
I use this code in a DAO class.
anonymous wrote :
| JtaDbPersistenceServiceFactory jtaDBFactory = (JtaDbPersistenceServiceFactory)JbpmConfiguration.getInstance().getServiceFactory("persistence");
|
It is correct?.
It's work fine :) and save correctly.
Thanks for any reply.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225810#4225810
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225810
More information about the jboss-user
mailing list