[JBoss-user] [JCA/JBoss] - Re: HOw can I get the connection object from JBoss
HI there, I have solve that problem because I was trying to get the DataSource object from out side the container in a custom Java File. NOw I got the connection object within the container. Actually I was integrating connection pooling of JBoss with TopLink and I am still fighting with it because toplink is not able to get that JNDI lookup but I think it is a matter of TopLink not JBoss so I am looking for it in TopLink forum but if you can provide any help to me on it then it will be very helpful to me. Now I am not having issue with connection pooling of JBoss because I executed a sample query with the connection object and it is working fine. Thanks to you for your help. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3933692#3933692 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3933692 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JCA/JBoss] - Re: HOw can I get the connection object from JBoss
Thanks for the reply. Both the client and the server is on same VM and database is on remote machine. I have already gone through that link you provided to me and still I am having the same problem. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3933590#3933590 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3933590 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JCA/JBoss] - HOw can I get the connection object from JBoss
Hi All I am using JBoss 4.0.3SP1 with Sybase. I am implementing connection pooling from JBoss for which I have done all the configuration in Jboss configuration files. I am trying to get the connection object from the JBoss using this code System.setProperty("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory"); System.setProperty("java.naming.provider.url","jnp://localhost:1099"); System.setProperty("java.naming.factory.url.pkgs","org.jboss.naming:org.jnp.interfaces"); InitialContext ctxt = new InitialContext(); Object obj = ctxt.lookup("java:/SybaseDB"); Now the class of this object (obj) is javax.naming.Reference. I am not able to get the Connection object from here. I am on mid of my development so any help on this will be appreciated. If any one need detail information on my code I can give it. Thanks in Advance View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3933494#3933494 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3933494 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user