R�> If the beans are deployed in the same jar then we can bypass RMI,
R�> otherwise not. This is also done today. There is an optional flag which
R�> lets you skip the copying of parameters for "same process" case, so that
R�> no RMI and no copying overhead is added.
ahhh ... you mean the JRMP -> optimize local calls flag ?
finally found it. but when i activate the flag i get a an nested
serialization exception (java.lang.reflect.Method is not
serializable).
java.rmi.MarshalException: error marshalling arguments; nested exception is:
java.io.NotSerializableException: java.lang.reflect.Method
[teahouse/data] java.io.NotSerializableException: java.lang.reflect.Method
[teahouse/data] at java.io.ObjectOutputStream.outputObject(ObjectOutputS
tream.java:1148)
[teahouse/data] at java.io.ObjectOutputStream.writeObject(ObjectOutputSt
ream.java:366)
[teahouse/data] at sun.rmi.server.UnicastRef.marshalValue(UnicastRef.jav
a:268)
[teahouse/data] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:106)
[teahouse/data] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoke
r_Stub.invokeHome(Unknown Source)
[teahouse/data] at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invok
e(HomeProxy.java:71)
[teahouse/data] at $Proxy4.findByName(Unknown Source)
[teahouse/data] at de.teehaus.shop.DataBean.getTeasByName(DataBean.java:
118)
[teahouse/data] at java.lang.reflect.Method.invoke(Native Method)
[teahouse/data] at org.jboss.ejb.StatelessSessionContainer$ContainerInte
rceptor.invoke(StatelessSessionContainer.java:443)
[teahouse/data] at org.jboss.ejb.plugins.StatelessSessionInstanceInterce
ptor.invoke(StatelessSessionInstanceInterceptor.java:83)
[teahouse/data] at org.jboss.ejb.plugins.TxInterceptor$RunInvoke.run(TxI
nterceptor.java:342)
[teahouse/data] at org.jboss.ejb.plugins.TxInterceptor.runWithTransactio
ns(TxInterceptor.java:223)
[teahouse/data] at org.jboss.ejb.plugins.TxInterceptor.invoke(TxIntercep
tor.java:98)
[teahouse/data] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(Secu
rityInterceptor.java:93)
[teahouse/data] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterc
eptor.java:154)
[teahouse/data] at org.jboss.ejb.StatelessSessionContainer.invoke(Statel
essSessionContainer.java:262)
[teahouse/data] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoke
r.invoke(JRMPContainerInvoker.java:172)
[teahouse/data] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoke
r.invoke(JRMPContainerInvoker.java:156)
[teahouse/data] at java.lang.reflect.Method.invoke(Native Method)
[teahouse/data] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServe
rRef.java:241)
[teahouse/data] at sun.rmi.transport.Transport$1.run(Transport.java:142)
[teahouse/data] at java.security.AccessController.doPrivileged(Native Me
thod)
[teahouse/data] at sun.rmi.transport.Transport.serviceCall(Transport.jav
a:139)
[teahouse/data] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCP
Transport.java:443)
[teahouse/data] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.
run(TCPTransport.java:643)
[teahouse/data] at java.lang.Thread.run(Thread.java:484)
Stephan.