0 Replies Latest reply on Mar 15, 2010 12:37 PM by testrot

    Client-side caching of remote business interface / remote service interfaces

    testrot Newbie
      Hello,

      I have 2 questions regarding the possibility to cache JNDI lookup results in a clustered environment.
      The server side consists of at least 2 JBoss 5.1.0.GA cluster nodes and the client side consists of some java standalone clients.

      1) Is it possible to cache remote business interfaces?

                  InitialContext initialContext = new InitialContext();
                  HelloWorldRemote remote = (HelloWorldRemote) initialContext.lookup(name);
                  // put remote into cache ???
                 
      2) Is it possible to cache remote interfaces of service POJOs (cf. http://www.jboss.org/file-access/default/members/jbossejb3/freezone/docs/tutorial/1.0.7/html_single/index.html#Service_POJOs) ?

      AFAIK it might depend on the JEE Implementation whether it is possible to cache remote business interfaces. So the question is does JBoss encourage this type of caching. In the case of service POJOs we are not talking of a JEE standard. So this is JBoss specific anyway.

      Thanks in advance.