I�ve got the following error when trying to execute the lookup() on the
context
[EleitorDetailHome] javax.naming.NameNotFoundException: jdbc not bound
[EleitorDetailHome] at
org.jnp.server.NamingServer.getBinding(NamingServer.java:474)
[EleitorDetailHome] at
org.jnp.server.NamingServer.getBinding(NamingServer.java:482)
I used the command :
>>DataSource ds = cx.lookup("java:/OracleDS");
>>Connection c = ds.getConnection();
In the startup of the server, it looks it loads it right, no error...
At 14:36 07/06/01 +0200, you wrote:
>hi,
>excuse me, but have you really looked into the documentation??? at all???
>there is a very descriptive chapter (for those to lazy to search:
>http://www.jboss.org/documentation/HTML/ch06.html )
>Beforehand you may want to read the ejb 1.1 spec...
>Burkhard
>----- Original Message -----
>From: "Emerson" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Thursday, June 07, 2001 1:41 PM
>Subject: Re: [JBoss-user] to Dexter
>
>
>how i do this map in jboss.xml??
>If i map just in jboss.jcml I can use this portable approach?
>
>At 11:17 07/06/01 +0200, you wrote:
>>Hi,
>>Even more no:
>>you should _REALLY_ map your OracleDS to jdbc/OracleDS using jboss.xml and
>>do
>>DataSource ds = cx.lookup("java:comp/env/jdbc/OracleDS");
>>Connection c = ds.getConnection();
>>to be protable to other app-server.
>>Burkhard
>>
>>----- Original Message -----
>>From: "Dexter Legaspi" <[EMAIL PROTECTED]>
>>To: <[EMAIL PROTECTED]>
>>Sent: Thursday, June 07, 2001 2:20 AM
>>Subject: Re: [JBoss-user] to Dexter
>>
>>
>>
>>i mean...no!!
>>
>>to acquire connection (assuming InitialContext cx has
>>been initialized properly):
>>
>>DataSource ds = cx.lookup("java:/OracleDS");
>>Connection c = ds.getConnection();
>>
>>okidoki.
>>
>>--- Emerson <[EMAIL PROTECTED]> wrote:
>>> I know it�s a simple question, but how I do find the
>>> connection in the jndi?
>>>
>>> Connection c= cx.lookup("java:/OracleDS");
>>>
>>> ???
>>> Emerson Cargnin
>>> TRE-SC
>>> Setor de Desenvolvimento
>>> Tel: (48) 251-3700 - Ramal 3134
>>>
>>> _______________________________________________
>>> JBoss-user mailing list
>>> [EMAIL PROTECTED]
>>>
>>http://lists.sourceforge.net/lists/listinfo/jboss-user
>>
>>
>>__________________________________________________
>>Do You Yahoo!?
>>Get personalized email addresses from Yahoo! Mail - only $35
>>a year! http://personal.mail.yahoo.com/
>>
>>_______________________________________________
>>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
>>
>>
>Emerson Cargnin
>TRE-SC
>Setor de Desenvolvimento
>Tel: (48) 251-3700 - Ramal 3134
>
>_______________________________________________
>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
>
>
Emerson Cargnin
TRE-SC
Setor de Desenvolvimento
Tel: (48) 251-3700 - Ramal 3134
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user