Hello,

in catalina logs did you have this log ?*
sun.reflect.NativeMethodAccessorImpl.invoke
Command line argument: -Dorg.apache.activemq.SERIALIZABLE_PACKAGES=* *
because your example not work for me, but this one is ok
*set ALL_PACKAGE_OPTS="-Dorg.apache.activemq.SERIALIZABLE_PACKAGES=*"*
*set "JAVA_OPTS=%JAVA_OPTS% %ALL_PACKAGE_OPTS%"*

i checked the code and if system property is set correctly this have to
work fine.



Kind regards.

*BENNOUR HASSEN*

*SOA **Architect **/ **Java **Software Engineer*

2016-06-21 23:09 GMT+02:00 Hassen Bennour <[email protected]>:

> Hello,
>
> Via system property in catalina.bat or in the
> <tomee-home>/conf/system.properties file like mentioned here
> http://tomee.apache.org/activemqresourceadapter-config.html  must be ok
> for your use normally,  did you tried with ActiveMQConnectionSupport like
> mentioned here https://issues.apache.org/jira/browse/AMQ-6312
>
> Honestly i don't used resources adapter since years and i don't have my
> laptop to check , hope this help.
>
> Hassen.
> Hello,
>         Thanks for the reply. For me with the same configuration it works
> fine in TomEE 1.7.2 (ActiveMQ 5.10.0). TomEE has
> activemq-client-5.X.Y,activemq-broker-5.X.Y jars in its lib. So how and
> where (which file) can I configure the Serializable package stuff?
>
> This is my JMS config defined in tomee.xml file:
>
> <Resource id="MyJmsResourceAdapter" type="ActiveMQResourceAdapter">
>         BrokerXmlConfig  = xbean:activemq.xml
>         ServerUrl = vm://localhost:61616
> </Resource>
>
> <Resource id="JMSConnectionFactory"
> type="javax.jms.QueueConnectionFactory">
>                 connectionMaxIdleTime = 15 Minutes
>                 connectionMaxWaitTime = 5 seconds
>                 ResourceAdapter = MyJmsResourceAdapter
>                 poolMaxSize = 10
>                 poolMinSize = 0
>                 transactionSupport = xa
> </Resource>
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/ActiveMQ-5-13-3-Class-is-not-trusted-to-be-serialized-as-ObjectMessage-payload-tp4713199p4713209.html
> Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
>

Reply via email to