Win a copy of Spring Boot in Practice this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

jndi - confusion

 
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic