[EJB 3.0] - Re: SLSB Local Interface Exception - EjB 3.0 with jboss-4.0.
by ALRubinger
"vashistvishal" wrote :
|
| Remote is when client calls from a different JVM environment to a Bean which is
| in a seperate JVM. This is where Calls By Value comes in as everything has to be
| copied (part of serailization) to be sent across the wire.
|
|
True.
"vashistvishal" wrote :
|
| Where as Local means when both Client and Beans are in same JVM which means
| Call by reference is used.
| You can enlighten me please if this is wrong or nor correct.
|
|
By default, true. You could configure local JNDI lookups to use call-by-value, but as this is much slower due to the unnecessary serialization, you typically wouldn't unless you has good reason. Check out the bottom of http://www.jboss.org/wiki/Wiki.jsp?page=ClassLoadingConfiguration.
"vashistvishal" wrote :
|
| As to this error i thought i could change the setting in
| conf/standrdjboss.xml file where invoker proxy binding
| settings are.
|
| I'm not sure in this version of JBoss which option to modify yet as
| currenty InvokerInterceptor is set to call by value, where as if i go by
| my understanding than if i change it to false than it should work as my
| client for both Remote and Local are in same JVM.
|
|
I'm not understanding what you're trying to accomplish. When you say, "my client for both Remote and Local are in same JVM" ... you mean you're accessing the remote and local interfaces from within the same JVM instance? Or that your client is in the same JVM as the EJBs?
I can't say I've ever tried to access a local EJB from an outside JVM regardless of the "call-by-value" semantics. Why not just use the local interface when in the container, and the remote from remote clients?
S,
ALR
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972811#3972811
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972811
19 years, 7 months
[EJB 3.0] - Re: SLSB Local Interface Exception - EjB 3.0 with jboss-4.0.
by vashistvishal
Let me get my understanding here correct
My understanding is .....
Remote is when client calls from a different JVM environment to a Bean which is
in a seperate JVM. This is where Calls By Value comes in as everything has to be
copied (part of serailization) to be sent across the wire.
Where as Local means when both Client and Beans are in same JVM which means
Call by reference is used.
You can enlighten me please if this is wrong or nor correct.
As to this error i thought i could change the setting in
conf/standrdjboss.xml file where invoker proxy binding
settings are.
|
| <invoker-proxy-binding>
| <name>entity-rmi-invoker</name>
| <invoker-mbean>jboss:service=invoker,type=jrmp</invoker-mbean>
| <proxy-factory>org.jboss.proxy.ejb.ProxyFactory</proxy-factory>
| <proxy-factory-config>
| <client-interceptors>
| <home>
| <interceptor>org.jboss.proxy.ejb.HomeInterceptor</interceptor>
| <interceptor>org.jboss.proxy.SecurityInterceptor</interceptor>
| <interceptor>org.jboss.proxy.TransactionInterceptor</interceptor>
| <interceptor call-by-value="false">org.jboss.invocation.InvokerInterceptor</interceptor>
| <interceptor call-by-value="true">org.jboss.invocation.MarshallingInvokerInterceptor</interceptor>
| </home>
| -----
| and some for others as in this category
|
| -----
| </client-interceptors>
| </proxy-factory-config>
| </invoker-proxy-binding>
|
|
I'm not sure in this version of JBoss which option to modify yet as
currenty InvokerInterceptor is set to call by value, where as if i go by
my understanding than if i change it to false than it should work as my
client for both Remote and Local are in same JVM.
Vishal
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972807#3972807
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972807
19 years, 7 months