Discussion:
carol.jvm.rmi.local.call ignored
Stéphane K.
2011-09-02 10:25:24 UTC
Permalink
SGVsbG8gYWxsLAoKSXQgc2VlbSdzIHRoYXQgSk9uQVMgNS4yLjEgcHJvcGVy
dHkgImNhcm9sLmp2bS5ybWkubG9jYWwuY2FsbD1mYWxzZSIgaXMKaWdub3Jl
ZDogb25lIEVKQiByZW1vdGUgY2FsbCB0byBhbm90aGVyIEVKQiB3aGljaCBy
ZXR1cm4gYW4gb2JqZWN0IHRocm93IGEKQ2xhc3NDYXN0RXhjZXB0aW9uLCBu
byBtYXR0ZXIgdGhlIG9iamVjdCBpbXBsZW1lbnRzIFNlcmlhbGl6YWJsZSBv
ciBub3QuIEkKdGhpbmsgdGhpcyByZW1vdGUgY2FsbCBpcyBjYXN0IGluIGEg
bG9jYWwgY2FsbCBhbmQgdGhlbiwgdGhlIG9iamVjdCBpc24ndApzZXJpYWxp
emVkIHNvIEkndmUgYSBjbGFzc2xvYWRlciBpc3N1ZS4KCk5COiBJdCdzIGEg
dGVzdCB3aXRoIHNpbXBsZSBpbnRlcmZhY2VzL29iamVjdHMuCgpCZXN0IHJl
Z2FyZHMsIFN0w6lwaGFuZS4=
Hans J. Prueller
2011-09-02 11:02:47 UTC
Permalink
I think you also have to set another property, to make rmi.local.call
effective.

try to read the comments in config files or the docs,
unfortunately I can't remember which one it was ... anyone?

regards,
hans
Hello all,
It seem's that JOnAS 5.2.1 property "carol.jvm.rmi.local.call=false" is
ignored: one EJB remote call to another EJB which return an object throw a
ClassCastException, no matter the object implements Serializable or not. I
think this remote call is cast in a local call and then, the object isn't
serialized so I've a classloader issue.
NB: It's a test with simple interfaces/objects.
Best regards, Stéphane.
Florent BENOIT
2011-09-02 12:21:11 UTC
Permalink
It's the security manager in JONAS_BASE/conf/jonas.properties

Regards,

Florent
Post by Hans J. Prueller
I think you also have to set another property, to make rmi.local.call
effective.
try to read the comments in config files or the docs,
unfortunately I can't remember which one it was ... anyone?
regards,
hans
Hello all,
It seem's that JOnAS 5.2.1 property "carol.jvm.rmi.local.call=false" is
ignored: one EJB remote call to another EJB which return an object throw a
ClassCastException, no matter the object implements Serializable or not. I
think this remote call is cast in a local call and then, the object isn't
serialized so I've a classloader issue.
NB: It's a test with simple interfaces/objects.
Best regards, Stéphane.
Stéphane KÉRAIN
2011-09-02 13:44:51 UTC
Permalink
So what is the correct configuration with this properties to disable local
call optimization, please ?

This "details" are not so obvious for me. :)
Post by Florent BENOIT
It's the security manager in JONAS_BASE/conf/jonas.properties
Regards,
Florent
I think you also have to set another property, to make rmi.local.call
effective.
try to read the comments in config files or the docs,
unfortunately I can't remember which one it was ... anyone?
regards,
hans
Hello all,
It seem's that JOnAS 5.2.1 property "carol.jvm.rmi.local.call=false" is
ignored: one EJB remote call to another EJB which return an object throw a
ClassCastException, no matter the object implements Serializable or not. I
think this remote call is cast in a local call and then, the object isn't
serialized so I've a classloader issue.
NB: It's a test with simple interfaces/objects.
Best regards, Stéphane.
Florent BENOIT
2011-09-02 12:06:05 UTC
Permalink
you may also look at carol.jvm.rmi.local.registry property
Did you print the classloader as I replied on your previous posts on
easybeans mailing list ?

Regards,

Florent
Hello all,
It seem's that JOnAS 5.2.1 property "carol.jvm.rmi.local.call=false" is
ignored: one EJB remote call to another EJB which return an object throw a
ClassCastException, no matter the object implements Serializable or not. I
think this remote call is cast in a local call and then, the object isn't
serialized so I've a classloader issue.
NB: It's a test with simple interfaces/objects.
Best regards, Stéphane.
Florent BENOIT
2011-09-07 14:38:03 UTC
Permalink
Hi,

You should turn off registry optimization (JONAS_BASE/conf/carol.properties)
carol.jvm.rmi.local.registry=false
I've tested with your example and it works

Regards,

Florent
Hello all,
It seem's that JOnAS 5.2.1 property "carol.jvm.rmi.local.call=false" is
ignored: one EJB remote call to another EJB which return an object throw a
ClassCastException, no matter the object implements Serializable or not. I
think this remote call is cast in a local call and then, the object isn't
serialized so I've a classloader issue.
NB: It's a test with simple interfaces/objects.
Best regards, Stéphane.
Loading...