|
|
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.
| |
| [Append to This Answer] | |
| 2001-Sep-05 9:45am |
| ||||||||
|
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 |
|||||||||||||||||
|
|||||||||||||||||