[jboss-user] [EJB 3.0] - Re: EJB 2.1 client adapters not working

stfkbf do-not-reply at jboss.com
Tue Jan 8 04:42:10 EST 2008


I have now corrected the code to follow the samples that come with the JBoss source code:

public interface TestBeanRemote {
  | 	public int getId();
  | }
  | 
  | public interface TestBeanRemoteHome extends EJBHome {
  | 	public TestBeanRemote create() throws CreateException, RemoteException;
  | }
  | 
  | @Stateful(name="TestBean")
  | @Remote(TestBeanRemote.class)
  | @RemoteHome(TestBeanRemoteHome.class)
  | public class TestBean implements TestBeanRemote{
  | ...
  | }

Using the above code (and switching to 4.2.2.GA) the bean can now be created and business methods be called. However the remote interface does not extend EJBObject and hence the getHandle method is not available. 

None of the samples that come with the JBoss source code illustrate how to get the serializable handle returned by getHandle. Is this a bug in the implementation? (as it seems the JBoss implementation differs from for instance the glassfish implementation)


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117819#4117819

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117819



More information about the jboss-user mailing list