• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jndi - confusion

 
satish bodas
Ranch Hand
Posts: 116
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
satish bodas
Ranch Hand
Posts: 116
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic