Announcement Announcement Module
Collapse
No announcement yet.
Jndi lookup from non Spring application Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Jndi lookup from non Spring application

    Hi,
    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?
    Thanks,
    Kapil

  • #2
    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.

    Regards,
    Andreas

    Comment

    Working...
    X