[jboss-user] [Clustering/JBoss] - Re: Caching, hybernate and using enums = no go

2009-07-20 Thread galder.zamarr...@jboss.com
Could you please create a bug report in https://jira.jboss.org/jira/browse/JASSIST including the the code and full stacktrace that you got you encountered? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4244596#4244596 Reply to the post :

[jboss-user] [Clustering/JBoss] - Re: Caching, hybernate and using enums = no go

2009-07-20 Thread ZeroTolerance
Hi, filed this as a bug (JASSIST-90). regards, Werner van Mook View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4244652#4244652 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4244652

[jboss-user] [Clustering/JBoss] - Re: Caching, hybernate and using enums = no go

2009-07-15 Thread ZeroTolerance
I have a solution for my problem. I replaced the switch statement in the Request class with an if() else statement. I am now able to deploy the application. Let this be a lesson for all: Do not use enum with javassist and switch statements together! Although if() else isn't beautiful

[jboss-user] [Clustering/JBoss] - Re: Caching, hybernate and using enums = no go

2009-07-14 Thread galder.zamarr...@jboss.com
If you want an Entity to be cached, I'd suggest you avoid @Replicable and instead configure it with @Cache annotation (see Hibernate/JPA annotations) so that the entity is added to the 2nd level cache. The 2nd level cache use case has been more road tested than what you're trying to do. See

[jboss-user] [Clustering/JBoss] - Re: Caching, hybernate and using enums = no go

2009-07-14 Thread ZeroTolerance
Well, This is exactly the problem. The object needs to be a entity hence the @entity annotation AND it needs to be in JBoss Cache. Don't ask why. It needs to be. In the meantime I figured out that the problem has to do with javassist. Something is going wrong there. View the original post :