Jun 1st, 2006, 07:33 AM
Jndi lookup from non Spring application
Am using Spring's JndiRmiServiceExporter to bind my services with JNDI. Can a non Spring appilcation lookup and use that service from JNDI? I was able to lookup and get the object from JNDI but could not cast it to my service interface as the actual object binded to registry is Spring's proxy over my service. I receive object of type org.springframework.remoting.rmi._RmiInvocationHan dler_Stub on lookup from jndi. Is there any way I can look up for objects which are binded by Spring?
Jun 1st, 2006, 08:24 AM
If you want to access your service without Spring, you have to ensure that your bean is a valid Remote bean (i.e. implements a Remote interface etc.).
Have a look here for more information about implementing a remote bean that can be handled by plain RMI.