• 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

doubt about ejb-ref..again

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I posted a similar question yesterday..got a reply also.

But is it possible to use <ejb-ref> and invoke method of a EJB on a diffrent machine, if the Bean assembler is not specifying any <ejb-link> in the <ejb-ref>.

In the spec, it is mentioned that it is the resposibilty if the deployer to map the EJB in the <ejb-ref> with the actual JNDI name, possibly by using the LinkRef functionlity of JNDI.

When i go to the JNDI API, LinkRef is a sub class of javax.naming.Refrence.
Now javax.naming.Refrence is there for providing link to a external JNDI.

So if it is possible for the deployer to use this LinkRef and link a EJB on one machine to a EJB on other machine, then Why the standard deplytool of j2ee RE server is not having this facility??
 
Author & Gold Digger
Posts: 7617
6
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I posted a similar question yesterday..got a reply also.
For people who would like to follow, here is the reply

As for your LinkRef question, javax.naming.Reference does not permit to link an object to an external JNDI but it allows one to link to objects which themselves are not directly bound to the naming/directory system. This means outside of JNDI (on the same server) and not to an external JNDI (on a different server), which is different. You get the nuance?
 
You guys wanna see my fabulous new place? Or do you wanna look at this tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic