(Answer) (Category) FAQ-O-Matic : (Category) Borland Application Server (aka Inprise Application Server, BAS, IAS) :
What is the difference between EJB linked reference and EJB not linked reference (with JNDI Name?) What should I use if I want to enforce local call in my container (and my j2EE stack) between multiple jars?
Krishnan Subramanian writes:

With a linked reference, the container can enforce a colocality constraint and the link is resolved at deployment time.

If you use a "not" linked reference with jndi name, the jndi name is looked up and resolved at runtime. So while you might be able to use the "java:comp/env/..." prefix, it does not necessarily mean that your beans are in the same container (or jar) and therefore you will not get the performance benefits you are looking for.

The safest way to enforce local calls is use ejb links. If you are using multiple jars, then package them in an ear in which case you can still define ejb links between beans in different jars.

If you use a co-located naming service with the ejbcontainer, then normal jndi lookups will also return beans in the same container/vm.
2001-Sep-05 9:45am gyles19@visi.com

[Append to This Answer]
2001-Sep-05 9:45am
Previous: (Answer) I have an ejb module and its XML config file in a jar. I want to read the XML with a ClassLoader.getResourceAsStream() but IAS 4.1.1 doesn't seem to allow this. What can I do?
Next: (Answer) I just fresh-installed BAS4.5.1 w/JDK1.3.0-00 onto HP-UX11 and got BAS4.5.1 to start up by the ias command. All services, except tomcat3 service, were started up and I looked into the error log, it says stderr:java.lang.NoClassDefFoundError: Tomcat,stderr: Exception in thread "main",Service tomcat3 has unexpectedly terminated.
This document is: http://www.visi.com/~gyles19/cgi-bin/fom.cgi?file=265
[Search] [Appearance]
This is a Faq-O-Matic 2.709.
This FAQ administered by gyles19@visi.com.

Other JBuilder Links

Java Community
Java Tools
Code Central
JB OpenTools
Community
Recent
Threads
Borland Chat
Chat FAQ
Feature Matrices
3.0 |  3.5 |  4.0
5.0 |  6.0 |  7.0
Shop for
JBuilder
JBuilder
Downloads
and reg keys
Report Piracy
Online Manuals
4.0 |  5.0 |  6.0
7.0
Borland
DevSupport's
Bug/RFE Form

Quality Central Client
JB Patches &
Updates
JBuilder FAQs TIs
JBuilder
Newsgroups
Tamaracka's
News Archive
Mr. Haki's
JBuilder Machine
JGuru's
JBuilder FAQ
Sun's Bug
Parade
Netring Home - About - Privacy
The
JBuilder Netring Logo
The Borland JBuilder Netring by JBuilder FAQ-O-Matic
[ Join Now | List Sites | Random | << Prev | Next >> ]
[ Previous 5 Sites | Skip Previous | Skip Next | Next 5 Sites ]