Announcement Announcement Module
Collapse
No announcement yet.
RMI/EJB look up using spring Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • RMI/EJB look up using spring

    How to do the below code in Spring? any Help will be appreciated or link to any doc is also appreciate
    Code:
     Hashtable < String, String > env = new Hashtable < String, String > ();
                        env.put("java.naming.provider.url", url);
                        context = new InitialContext(env);
                    Object objref = context.lookup(name);
                   ABCHome home = (ABCHome) PortableRemoteObject.narrow(objref,
                                                                     ABC.class);
                    RemoteClass    remote = home.create();

  • #2
    you can use JndiObjectFactoryBean or its XML cousin, http://static.springsource.org/sprin...ee-jndi-lookup

    Comment

    Working...
    X