I've been attempting to use ActiveMQ 4.0.1 as the JNDI provider for my Hibernate 3.1 SessionFactory instances, however when I try to create the SessionFactory (using Configuration.buildSessionFactory()) I get the following exception:
Exception in thread "main" java.lang.ClassCastException: java.util.HashSet
at org.hibernate.util.PropertiesHelper.resolvePlaceHolders(PropertiesHelper.java:88)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1173)
...
(application specific exceptions follows this).
This defect is described in the ActiveMQ 4.0.1 bugtracker at the following URL
http://mail-archives.apache.org/mod_mbo ... ble.com%3E
I can't say whether this is a problem with ActiveMQ, or with Hibernate (as I don't completely understand either of the specifications fully), but is there a solution that is in development (other than editing the source myself - I'd rather have "pure" Hibernate and ActiveMQ jar's in use, to make upgrading to newer versions easier) that I can use?
It's a bit of a shame, I really like both of these products, and I would love to be able to use them together (I use ActiveMQ for JMS messaging already).
Can someone point me in the right direction WRT finding out where the best place to put the fix for this problem is? The solution proposed in the ActiveMQ users list is not really the best way to solve this IMHO as it just throws the property away, rather than doing something smart with it.
Cheers,
Aidos