1 Reply Latest reply on Apr 21, 2003 8:43 PM by Madhavan Thirumalai

    Returning remote interface to stateful session bean

    Madhavan Thirumalai Newbie

      I would like to write a method in a remote interface to a session bean that returns a remote interface to a different session bean. Both beans are stateful.

      Consider ...
      public interface SearchSession extends EJBObject {
      public ResultSet search(String keyword);
      }

      public interface ResultSet extend EJBObject {
      public RowDO getNextRow();
      }

      Questions:
      1. Is this possible?
      2. What would the code in the SearchSessionBean.seach() method look like?

      M