I am attempting to use JNDI as suggested in the documentation to share data (POJO) between service units, but I am getting a class cast exception. The first SU is based on servicemix-bean and it contains data that I want to share with other SUs. It binds itself in a JNDI context upon startup. Another SU, based on servicemix-cxf-se is attempting to access the POJO/bean with the identical initial context factory (org.apache.xbean.spring.jndi.SpringInitialContextFactory) and provider URL configuration. The lookup is succeeding, but I get a ClassCastException when I cast the result to the original class from which the bean was made. The instanceof operator returns false, but the class names are the same and the hashcodes are the same. I might be misusing JNDI, but if anyone has used this approach, I'd be grateful to get some advice. Are there restrictions on what can be bound ? I am using version 3.3.
Thanks in advance. -FT
