This content has been marked as final.
Show 3 replies
-
1. Re: NotSerializableException while trying to bind Cache Obje
manik Oct 1, 2009 6:06 AM (in response to schamarthi)Make sure you bind to local JNDI (java: namespace)
-
2. Re: NotSerializableException while trying to bind Cache Obje
schamarthi Oct 5, 2009 10:15 AM (in response to schamarthi)Hmm that didn't help me. Not sure if I am doing it right.
I am using Spring JndiTemplate to bind to jndi tree. Here is the code snippet.
May be some one point me if something is wrong in doing this way ?JndiTemplate jndiTemplate = getJndiTemplate(); jndiTemplate.rebind("java:/jbossCache, this); private JndiTemplate getJndiTemplate() { Properties prop = new Properties(); prop.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory"); prop.put("java.naming.provider.url", "localhost:1099"); prop.put("java.naming.factory.url.pkgs", "org.jboss.naming"); return new JndiTemplate(prop); }
-
3. Re: NotSerializableException while trying to bind Cache Obje
galder.zamarreno Oct 6, 2009 11:22 AM (in response to schamarthi)I'd suggest you check out how JBoss AS binds the CacheManager to JNDI and try to apply a similar solution to your environment. This has been discussed in the JBC dev+user forums and JBoss Clustering user forums.