Allen,

You are right... the lookup from within any EJB works flawlessly. I am
trying to get it to work on the client side. 

See my other reply for more info... 

Thanks for your comment,

Daniel

-----Message d'origine-----
De : Allen Fogleson [mailto:[EMAIL PROTECTED]]
Envoyé : 6 février, 2001 21:30
À : Orion-Interest
Objet : RE: Orion-console in 1.4.7 supports DataSource properly... now
what!!!


Daniel;

As far as I can tell the DS lookup works in 1.4.7 I have an app that
does
many lookups and I just ran it unchanged from 1.4.5 to 1.4.7. Now
Granted I
am in orion so I just have to do a...

InitialContext ctx = new InitialContext();
DataSource ds = (DataSource) ctx.lookup("jdbc/myDS");

So maybe it might not work with the initialApplicationContext??
(although
the console belies that)

Al

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Daniel Cardin
Sent: Tuesday, February 06, 2001 4:17 PM
To: Orion-Interest
Subject: Orion-console in 1.4.7 supports DataSource properly... now
what!!!


Hi everyone!

I'm progressing... Orion 1.4.7 has support for DataSources in the
orion-console application.
If you select a DataSource, you will see a new panel allowing you to
enter SQL commands that will
be sent directly to the database through the DataSource + connection.

it WORKS in the console. So this implies that :

1. the concept is valid : you don't need to use a driver instance on the
client side, contrary to what
   some of you stated. No JDBC download, nothing... just a proxy
instance implementing the Connection interface
2. the client doesn't need to see the database server on the same
network
3. my datasources are configured PROPERLY on the server side... (I was
always doubting that
        but normal DS, pooled DS, EJB DS etc. all work from my client
(actually only XA won't work now))

SO: since I get perfect access through the console, either

a) I can't do a JNDI lookup! (I doubt that)
b) the DataSource lookup is not working (yet) in 1.4.7
c) OrionConsole uses another method than a simple lookup to get the
DataSource object.

Please everyone, realize this is important for performance issues and
let's try to make it work!

Thanks for your help

Daniel





Reply via email to