• Post Reply Bookmark Topic Watch Topic
  • New Topic

JNDI Name for the Bean

 
Deepan Devadasan
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

When and Who registers the JNDI name for a given bean which we later during th e look- up...

Is it stated anywhere in the DD by the bean provider..
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You mention it in the EJB JAR XML. The container should make sure the bean is available under the JNDI name provided.
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do not think its mentioned in the ejb-jar.xml file.Its vendor specific implementation.
While deploying the deploy tool asks as to which JNDI name the bean should be bounded.
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Rahul Bhattacharjee:
I do not think its mentioned in the ejb-jar.xml file.Its vendor specific implementation.
While deploying the deploy tool asks as to which JNDI name the bean should be bounded.


Thanks for mentioning that. Most containers give you their own custom EJB JAR XML which you configure for each bean for container specific properties. The JNDI name resides there.

Example: http://vdoclet.sourceforge.net/ejb-example/weblogic-ejb-jar.html

I tend to get confused about where some of the properties exist sometimes.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!