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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...