git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Camel and ActiveMQ ObjectMessage


As of ActiveMQ version 5.12, you have to whitelist the objects used by any message that is of type ObjectMessage. I believe the default in Camel is to handle the serialization when producing and consuming from message queues which results in an ObjectMessages.
 
I know we can explicitly call “marshal()” before producing a message and “unmarshal()” after consuming a message to avoid the ObjectMessage type.
 
Is there a cleaner way to produce and consume from ActiveMQ that does not require explicit marshal/unmarshall calls around every message queue?
 
We are currently using camel version 18.3.
 
Thanks,
 
-john





( ! ) Warning: include(msgfooter.php): failed to open stream: No such file or directory in /var/www/git/apache-camel-users/msg03332.html on line 82
Call Stack
#TimeMemoryFunctionLocation
10.0029363032{main}( ).../msg03332.html:0

( ! ) Warning: include(): Failed opening 'msgfooter.php' for inclusion (include_path='.:/var/www/git') in /var/www/git/apache-camel-users/msg03332.html on line 82
Call Stack
#TimeMemoryFunctionLocation
10.0029363032{main}( ).../msg03332.html:0