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
>
>
>


Reply via email to