first jar named for example EJBTestLIB contains:
EJB01.java - remote interface for stateful bean;
EJB02.java - remote interface for stateful bean;
Manager.java - remote interface for singleton bean;
Registerable.java - interface for objects that can be registered by Manager
Code:
-----------------------------------------------------
package test;
import javax.ejb.Remote;
@Remote
public interface EJB01{
public void init();
public void method1 (int i);
}
-----------------------------------------------------
package test;
import javax.ejb.Remote;
@Remote
public interface EJB02 {
public void init();
public void method2 (int i);
}
-----------------------------------------------------
package test;
import javax.ejb.Remote;
@Remote
public interface Manager {
public void register (String name, Registerable obj);
public Registerable get(String name);
}
-----------------------------------------------------
package test;
import java.io.Serializable;
public interface Registerable extends Serializable{}
-----------------------------------------------------
I placed this library to glassfishv3/glassfish/domains/domain1/lib/
[Message sent by forum member 'lft']
http://forums.java.net/jive/thread.jspa?messageID=396640