wood burning stoves 2.0*
The moose likes JBoss/WildFly and the fly likes jndi - confusion Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "jndi - confusion" Watch "jndi - confusion" New topic
Author

jndi - confusion

satish bodas
Ranch Hand

Joined: Jun 19, 2008
Posts: 116
Hello ,
Am trying to deploy a stateless sesison bean ( ejb 3.0 ) in Jboss

I am able to deploy the bean

Now to access it using a client - I will need to lookup the bean using JNDI

How do I go about it ?

what should be the string name that I pass as a parameter to the "lookup" method ?

also is there any way in the jmx console that can help me in understanding these details ?

Thanks ,
~satish
[ July 29, 2008: Message edited by: satish bodas ]
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9910
    
158

The JNDIView MBean can be accessed from the jmx-console to list the JNDI tree objects. See this for details.

Am trying to deploy a stateless sesison bean ( ejb 3.0 ) in Jboss

I am able to deploy the bean

Now to access it using a client - I will need to lookup the bean using JNDI

How do I go about it ?

what should be the string name that I pass as a parameter to the "lookup" method ?


If you have deployed the EJB in an EAR, then the jndi-name for the EJB by default will be EARNAME/BeanName/local or EARNAME/BeanName/remote. For example: MyApp/MyBean/remote


[My Blog] [JavaRanch Journal]
satish bodas
Ranch Hand

Joined: Jun 19, 2008
Posts: 116
Thanks Jai for the answer .
I am able to access the Stateless bean and it works

I know this is a silly question - but there is one more point I dont understand .

I know there can be a remote or a local interface for a bean

However I havent specified it anywhere at all ?
so is it taken by default as Local ?
also where is this to be specified ( via annotation ? )

Thanks ,
~satish
 
 
subject: jndi - confusion
 
Similar Threads
JNDI Name Not Found Found Exception
Is there any way to not load balance EJB call in WAS cluster?
JNDI problem
EJB 3.0 lookup problem in JBOSS
RMI Naming vs. JNDI