[jboss-user] [IronJacamar] - ManagedConnectionFactory Life Cycle

kiran.kumar M do-not-reply at jboss.com
Fri Aug 5 06:45:21 EDT 2011


kiran.kumar M [http://community.jboss.org/people/gmkumar2005] created the discussion

"ManagedConnectionFactory Life Cycle"

To view the discussion, visit: http://community.jboss.org/message/619613#619613

--------------------------------------------------------------
Hi, 
I deploy the rar file by placing it in the deployment folder in jboss as 7. Later deploy my war file.
This connector in bound to a jNDI location by definition inside standalone.xml.
When it is deployed the createConnectionFactory(ConnectionManager cm) is executed by default.
I do some house keeping with help of  ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader();

This method is again executed when i try to access the adapter using an ejb. 
Problem is initally at the time of loading the classloader is null. Later it has a value when called from ejb. Effectively my housekeeping fails.

Question : 
1) createConnectionFactory(ConnectionManager cm) is executed at the time of deployment => is this the proper behaviour ?
2) How can I configure ironJacamar not to execute this method at the time of deployment ?

Thanks
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/619613#619613]

Start a new discussion in IronJacamar at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2098]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110805/9a0fa66b/attachment-0001.html 


More information about the jboss-user mailing list