Hi,

I'm trying to get connection from the pool.
Everything is (almost) ok, but i got the error message "jdbc not bound"
using lookup("java:comp/env/jdbc/SQLServerPool"); then i tried using
lookup("java:/SQLServerPool") and the error was
"java.lang.ClassCastException:
org.opentools.minerva.jdbc.xa.XAPoolDataSource"

Any tip?

See above:

SOURCE CODE:
==============================================================
    try
    {
    Properties prop = new Properties();
    prop.put(Context.INITIAL_CONTEXT_FACTORY,
             "org.jnp.interfaces.NamingContextFactory");
    prop.put(Context.PROVIDER_URL, "150.162.51.45:1099");
    Context initialContext = new InitialContext(prop);
    XAConnectionImpl dataSource = (XAConnectionImpl)
initialContext.lookup("java:comp/env/jdbc/SQLServerPool");
    MyConn=dataSource.getConnection();
    }
    catch (Exception e)
    {
      e.printStackTrace();
    }

JBOSS.JCML
==============================================================
  <mbean code="org.jboss.jdbc.XADataSourceLoader"
name="DefaultDomain:service=XADataSource,name=SQLServerPool">
    <attribute
name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp
l</attribute>
    <attribute name="PoolName">SQLServerPool</attribute>
    <attribute name="URL">jdbc:odbc:MyOdbcDsn</attribute>
    <attribute name="JDBCUser">X</attribute>
    <attribute name="Password">X</attribute>
  </mbean>

JBOSS CONSOLE
==============================================================
[SQLServerPool] Starting
[SQLServerPool] XA Connection pool SQLServerPool bound to
java:/SQLServerPool
[SQLServerPool] Started



----------------------------------------------------------------------------
-----
Rafael Simões Vieira Guimarães
Programador
Conselho Regional de Medicina de Santa Catarina
----------------------------------------------------------------------------
-----
E-mail : [EMAIL PROTECTED]
Home-page : http://www.cremesc.org.br
Fone/fax : +55 48 223-5122
Endereço : Av. Rio Branco, 533, 2o. andar
CEP 88015-200 - Florianópolis - SC - Brasil
----------------------------------------------------------------------------
-----
----- Original Message -----
From: "Georg Rehfeld" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 30, 2001 6:34 PM
Subject: Re: [JBoss-user] manual build fails


> Hi Tahir,
>
> > Just tried to checkout/build manual module and it fails
> > with the following exception. (target printablehtml) ...
> > anybody tried this bofore with any luck?
>
> Just tried it on my W2K box with the latest CVS version, works
> OK for me, except that I get repeated:
>
> | Call to extension function failed: com.nwalsh.xalan.Table
>
> messages, but the generated HTML looks good.
>
> regards
> Georg
>  ___   ___
> | + | |__    Georg Rehfeld      Woltmanstr. 12     20097 Hamburg
> |_|_\ |___   [EMAIL PROTECTED]           +49 (40) 23 53 27 10
>
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>


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

Reply via email to