Results 1 to 2 of 2

Thread: Jndi lookup from non Spring application

  1. #1

    Default 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. #2
    Join Date
    Aug 2004
    Posts
    2,715

    Default

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •