I'm new to jboss, so take this with a grain of salt...

The java:/Charter should work for you.
I've learned how to setup an oracle datasource today. Here are the changes
that I made.
 

Here is what I have in jboss.conf:


<MLET CODE="org.jboss.jdbc.XADataSourceLoader" ARCHIVE="jboss.jar"
CODEBASE="../../lib/ext/">
    <ARG TYPE="java.lang.String" VALUE="OracleDB">
    <ARG TYPE="java.lang.String"
VALUE="org.jboss.minerva.xa.XADataSourceImpl">
</MLET>

Here is what I have in jboss.jcml

<mbean name="DefaultDomain:service=XADataSource,name=OracleDB">
       <attribute name="Properties"></attribute>
       <attribute
name="URL">jdbc:oracle:thin:@domain:1521:instance</attribute>
       <attribute name="GCMinIdleTime">1200000</attribute>
       <attribute name="JDBCUser">dude</attribute>
       <attribute name="MaxSize">2</attribute>
       <attribute name="Password">dudepass</attribute>
       <attribute name="GCEnabled">false</attribute>
       <attribute name="InvalidateOnError">false</attribute>
       <attribute name="TimestampUsed">false</attribute>
       <attribute name="Blocking">true</attribute>
       <attribute name="GCInterval">120000</attribute>
       <attribute name="IdleTimeout">1800000</attribute>
       <attribute name="IdleTimeoutEnabled">false</attribute>
       <attribute name="LoggingEnabled">false</attribute>
       <attribute name="MaxIdleTimeoutPercent">1.0</attribute>
       <attribute name="MinSize">1</attribute>
</mbean>

I'm not using a jboss.xml in the deployed jar.
In the ejb-jar.xml, I'm not referring to any resources.
I use java:/OracleDB as lookup for datasource in my bean.

hope this helps




-----Original Message-----
From: Day, Jem BGI WAC [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 07, 2001 2:35 PM
To: [ML] jBoss User (E-mail)
Subject: [jBoss-User] JNDI Help Please



Hi,

  [Running jBoss-2.0 FINAL - with no code changes]

  I've configured a DbPool in jBoss and the log states that its bound (snip
from log)

[Charter] XA Connection pool Charter bound to java:/Charter

  However, when i try and lookup the name i get a 'NameNotFound' - not bound
  exception.

javax.naming.NameNotFoundException: Charter not bound
 
  I feel in my bones that i'm doing something really stupid, i've been
straw-clutching
  and tried looking up "Charter", "java:Charter", "java:/Charter" and they
all fail
  in the same way.

  Can anybody point me in the right direction and/or tell me if it's
possible to turn
  on detailed tracing in the NamingService so that i can see what's
happening.

Thanks in advance

----------------------------------------
Jem Day
IT Architecture
Barclays Global Investors

[EMAIL PROTECTED]
http://www.barclaysglobal.com
http://www.ishares.com



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


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

Reply via email to