activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: ActiveMQ + Hibernate/Jboss
Date Fri, 24 Mar 2006 13:46:15 GMT
On 3/24/06, Cybernd <cybernd@cybernd.at> wrote:
> ActiveMQ adds Properties as HashSet and Hibernate EJB3 Persistence will fail
> because the hibernate PropertiesHelper casts to String which leads to a
> ClassCastException.

I don't really follow. Which properties are you talking about? Also
ActiveMQ doesn't use EJB3 persistence?

James


>
> 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
> spec.
>
> hth
> Bernhard
> --
> View this message in context: http://www.nabble.com/ActiveMQ-%2B-Hibernate-Jboss-t1335712.html#a3568961
> Sent from the ActiveMQ - User forum at Nabble.com.
>
>


--

James
-------
http://radio.weblogs.com/0112098/

Mime
View raw message