activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cybernd <>
Subject ActiveMQ + Hibernate/Jboss
Date Fri, 24 Mar 2006 10:48:37 GMT

ActiveMQ adds Properties as HashSet and Hibernate EJB3 Persistence will fail
because the hibernate PropertiesHelper casts to String which leads to a

Simple Workaround:
Download hib 3.1.3
Modifiy PropertiesHelper to avoid the ClassCastexeption in Line ~88
(final String value = ( String ) entry.getValue();)

Enclose it in try catch or do instanceof before using the cast.

Run the hibernate build process (build.bat in the project root for example)
which will create a new hibernate3.jar instantly.

Replace server/default/lib/hibernate3.jar and
server/default/deploy/ejb3.deployer/hibernate3.jar with your new build.

voila - activeMQ + hib3 persistence works well now.

(Would be fine when anyone would create a hib issue for this bug - i still
fail to recover my jira password ^^)

Im also not sure if this hash property is a activeMQ bug.
Some voices think yes, other voices think no - im not familiar with the

View this message in context:
Sent from the ActiveMQ - User forum at

View raw message