You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Matt Pavlovich (Jira)" <ji...@apache.org> on 2021/01/18 20:41:01 UTC

[jira] [Commented] (AMQ-7148) inject class to classLoader in activemq camel

    [ https://issues.apache.org/jira/browse/AMQ-7148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17267518#comment-17267518 ] 

Matt Pavlovich commented on AMQ-7148:
-------------------------------------

The issue is that ActiveMQ requires classes to be ALLOWED by default for object messages. This is to prevent a serious security problem where someone could send a message and then have ActiveMQ instantiate the class on the other end. You simply need to configure your ActiveMQ Connection Factories for allowable package names. (ie. com.company.order, com.company.billing)

See this documentation: http://activemq.apache.org/objectmessage

> inject class to classLoader in activemq camel
> ---------------------------------------------
>
>                 Key: AMQ-7148
>                 URL: https://issues.apache.org/jira/browse/AMQ-7148
>             Project: ActiveMQ
>          Issue Type: Improvement
>            Reporter: Mahdi Karami
>            Priority: Major
>
> hiĀ 
> I'm using camel with activemq for calling cxf service. and in this project cxf service classes load form DB. but activemq not regonized this classes because this classes classloader is seprate from main classloader. how can I add class to activemq in camel to solve error like this?
> "javax.jms.JMSException: Failed to build body from content. Serializable class not available to broker. Reason: java.lang.ClassNotFoundException"



--
This message was sent by Atlassian Jira
(v8.3.4#803005)