Hi Ken,
From a long discussion on the JNDI Namespace on JBOSS I came to
understand
there are two faces of it.
1) The view within the jboss server.
2) the view from outside.
The view within:-
This view is only for the objects/EJBS deployed on the server to find
information
about other EJB's ,environment variables and references.So you can
use
"java:comp/env" prefix or context to get a listing of other
beans,env. vars. and refs.
Another way of putting it is it is available to clients of a deployed
EJB which
itself is a deployed EJB.
The view from outside:
This view id for all clients which run separately from the jboss
server.Here one will
see listed in the default root context the database jndi refs,EJBHome
refs,JMX ref,Transaction Manager ref.,data base connection pool ref and
any sub contexts
which is totally decided by the by virtue of their naming style.e.g.
(Context) [root]-+
|
+- (Context) jdbc -+
| |
| +- OracleDB
+- (Object Ref) Transaction Manager
Sample list
------------
Object:Hypersonic: org.jboss.jdbc.DataSourceImpl
Object:jmx: org.jboss.jmx.server.JMXAdaptorImpl
Object:TravelAgentBean: $Proxy0
Object:Cabin: $Proxy1
Object:jdbc: org.jnp.interfaces.NamingContext
Object:xa.postgresqlPool: org.jboss.minerva.datasource.XAPoolDataSource
Object:InstantDB: org.jboss.jdbc.DataSourceImpl
Object:TransactionManager: class org.jboss.tm.TxManager
initial context :javax.naming.InitialContext@b66cc
Object:jdbc/postgresql: org.jboss.jdbc.DataSourceImpl
The only difference being that you dont have to user the
"java:comp/env" prefix to
do the lookup.Somehow I feel that this is what the designers of jnp had
in mind.
As per EJB1.1 spec. you tend to think that using "java:comp/env" will
work for
external EJB clients.
I hope this will clear the confusion.
PKD
-----------------------------------------------------------
:)) Welcome to organized chaos
-----------------------------------------------------------
Ken Jenks wrote:
>
> At 05:51 PM 07/10/2000 +0000, you wrote:
> >Hi,
> > I am trying to get the jndi context in my EJB client as shown below.
>
> I saw your note from last week. I've been struggling with the same thing,
> getting the Context and doing a lookup on "CabinBean".
>
> Did you figure out how to run the Cabin/TravelAgent examples in jBoss? What
> was the trick?
>
> -- Ken Jenks, http://abiblion.com/
>
> Tools for reading.
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]