Results 1 to 2 of 2

Thread: RMI/EJB look up using spring

Hybrid View

  1. #1
    Join Date
    May 2008
    Posts
    11

    Default 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. #2
    Join Date
    Feb 2006
    Location
    Los Angeles, CA
    Posts
    79

    Default

    you can use JndiObjectFactoryBean or its XML cousin, http://static.springsource.org/sprin...ee-jndi-lookup
    Josh Long
    Spring Developer Advocate
    SpringSource, a division of VMware

    http://blog.SpringSource.org
    http://www.joshlong.com

Posting Permissions

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