Wow! Wonderful! Thanks a lot Greg!
Would you please tell me where can I find some docs about this package?
Or should I decompile the class files?!
Where can I find those JNDI names and their usage? How do you discover these
undocumented stuff?!!
Regards,
Roozbeh/
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Greg Matthews
Sent: Thu, July 26, 2001 10:30 AM
To: Orion-Interest
Subject: Re: Finding Default DataSource in My App
a starting point might be.
import com.evermind.server.administration.*;
javax.naming.Context ctx = new InitialContext();
ApplicationAdministrator admin =
(ApplicationAdministrator)ctx.lookup("java:comp/Administrator");
this doesn't give you exactly what you want but you can get some orion
specific stuff from this.
check out the other stuff in the administration.* package.
greg
----- Original Message -----
From: "Roozbeh Ghaffari" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Thursday, July 26, 2001 2:57 PM
Subject: Finding Default DataSource in My App
> Dear Friends,
>
> Can anybody tell me how to find the default datasource of my application
at
> run-time? (JNDI name or instance ref.) And a more general question: How
can
> I query for Orion specific application information during run-time? I saw
> nothing in Orion API docs.
>
> Thank you in advance,
> Roozbeh/
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
>
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com