-
1. Re: Local vs Remote Interfaces
dhinojosa Mar 14, 2002 5:13 PM (in response to rlynn)What version are you using? Just wondering because what I thought JBoss was smart enough now something else is happening. I am using 2.4.4 and these references aren't the same : (
-
2. Re: Local vs Remote Interfaces
dhinojosa Mar 14, 2002 5:28 PM (in response to rlynn)Acutally I think they made all dependent value object immutable.
-
3. Re: Local vs Remote Interfaces
raulg Mar 14, 2002 8:50 PM (in response to rlynn)Now I'm confused. The documentation for JBoss 2.4.x
informs me that it only supports EJB 1.1. Under this spec
there is no support for Local.
Is the doc incorrect? -
4. Re: Local vs Remote Interfaces
davidjencks Mar 14, 2002 11:15 PM (in response to rlynn)jboss 2.4.x supports local interfaces and jms/mdb, both j2ee 1.3 features.
As far as I can tell, the main reason for local interfaces is to prevent cmr relationships from going across vm boundaries, and to sugar coat the spec since all app server vendors were optimizing local calls anyway. -
5. Re: Local vs Remote Interfaces
giluka Mar 15, 2002 5:33 AM (in response to rlynn)You said JBoss 2.4.x can use local interface mechanism...
but how ?
I put in ejb-jar.xml file
<local-home>util.myLocalHome</local-home>
and in jboss-web.xml
<ejb-local-ref>
<ejb-local-ref-name>ejb/myLocalHome</ejb-local-ref-name>
<jndi-name>code/myLocalHome</jndi-name>
</ejb-local-ref>
Is this correct, no ?
In my client (a servlet) i put:
Object localRef = jndiContext.lookup("java:comp/env/ejb/myLocalHome");
Result is that these lines of code (in client) generate this exception:
javax.naming.NameNotFoundException: CodeLocalHome not bound
Can anyone help me please ? -
6. Re: Local vs Remote Interfaces
giluka Mar 15, 2002 5:34 AM (in response to rlynn)...sorry
Result is that these lines of code (in client) generate this exception:
javax.naming.NameNotFoundException: myLocalHome not bound
Can anyone help me please ? -
7. Re: Local vs Remote Interfaces
smike Mar 15, 2002 6:29 AM (in response to rlynn)
Maybe I can.
http://main.jboss.org/thread.jsp?forum=47&thread=10972
Maris Orbidans