• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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 showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic