I am using BMP. The question is how to access DataSource that represents
connection pool.

on start up JBOSS says that "[mySQLDS] XA Connection pool mySQLDS bound to
java:/mySQLDS [mySQLDS] ".  I have entries in jboss.jcml.

But in entity bean which I retrieve from JNDI, when I get connection:

try{
            InitialContext jndiContext = new InitialContext();
            javax.sql.DataSource ds = (javax.sql.DataSource)
jndiContext.lookup("java:/mySQLDS");
            con = ds.getConnection();
        }catch(Exception ex){
            System.out.println("Looking for DataSource: " +
ex.getMessage());
        }


I get message that mySQLDS is not bound.



ANY IDEAS?  THANKS for your time and help.

-ROMAN BROUK


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to