> [XADataSource] XA Connection pool OraclePool bound to OraclePool

The above means that the pool is bound to the JNDI name "OraclePool". And
only that.

> In my source code i do trying do get pracle connection:
>
> /**
> */
>   protected Connection getConnection()
>     throws SQLException
>   {
>     InitialContext initCtx = null;
>     try {
>       initCtx = new InitialContext();
>       DataSource ds = (javax.sql.DataSource)
>         initCtx.lookup("java:comp/env/jdbc/OraclePool"); // <---- i think
Exception goes here
>       return ds.getConnection();

Have you added a resource reference "jdbc/OraclePool" in your ejb-jar.xml?
Have you mapped this to "OraclePool" in jboss.xml?

If any of the answers to these questions is no, then fix that.

/Rickard





--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to