• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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
 
what if we put solar panels on top of the semi truck trailer? That could power this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic