• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Bean Environment

 
Mike Pandey
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

I have a doubt in Environment sectn.

It is said that each bean gets its own subcontext in the form of java:comp/env where in it can have refernces to various resources, beans and admin objects.

Imagine i want a ref to administered object which javax.jms.Queue. In the descriptor I wud mention the local ref name and the type
<resource-env-ref-name> and <resource-env-ref-type> in <resource-env-ref> as we wud be having the rference to that obj under beans context.

But I want to know as to where will this local jndi name be mapped to the actual jndi name of the admin object which might be configured in ur server env.
The similar thng goes for Datasource lookup

Pls help in understanding this concept.

thanks,
mike
 
Greg Charles
Sheriff
Posts: 3002
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mike,

Hmm, I wonder why this question has gone so long unanswered. We must be slipping. Anyway, the JNDI mapping from Topics or Queues defined in the resource-env-ref tag, or to a datasource defined in a resource-ref tag is done by the deployer. How? That's vendor specific. In other words, it's up to the container provider ... WebSphere, WebLogic, Oracle, etc. The deployer must work with the vendor tools to accomplish this.
 
Mike Pandey
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Greg,

Thanks for the reply!
Actually I had got the answer the same day I askd this via Internet so din't press for it!!

Regds,
Mike
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic