Heiko Tappe [http://community.jboss.org/people/tdtappe] created the discussion
"Re: Get hibernate session for own query" To view the discussion, visit: http://community.jboss.org/message/606010#606010 -------------------------------------------------------------- The following code seems to work for me: EnvironmentImpl environment = EnvironmentImpl.getCurrent(); if (environment == null) { environment = ((EnvironmentFactory) processEngine).openEnvironment(); } Session session = environment.get(Session.class); But is this the way to go? If so, do I have to care about "closing" the environment? --Heiko -------------------------------------------------------------- Reply to this message by going to Community [http://community.jboss.org/message/606010#606010] Start a new discussion in jBPM at Community [http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
_______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
