5 Replies Latest reply on Mar 30, 2006 8:17 AM by mahendra wadekar

    HOw can I get the connection object from JBoss

    mahendra wadekar Newbie

      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

      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