[jboss-user] [JBoss Seam] - Re: Error while using remoting with Home objects?

jquery@interia.pl do-not-reply at jboss.com
Sun Sep 16 06:44:25 EDT 2007


Hi,

actually the solution is easy (as the stack trace says) :). We have to override public void create() method from EntityHome class in our extended session bean class and then make it available in session bean business interface as @WebRemote.



  | /*TestAction.java*/
  | @Stateless
  | @Name("testAction")
  | public class TestAction extends EntityHome<Category> implements TestActionInterface{
  | 	
  | 	public String testName(String name){
  | 		return "Hello, "+name;
  | 	}
  | 
  | 	
  |           public void create(){}
  |             
  | 
  | 	@Remove
  | 	public void destroy(){}
  | 
  |             
  | }
  | 
  | 
  | /*TestActionInterface.java*/
  | 
  | @Local
  | public interface TestActionInterface {
  | 	@WebRemote
  | 	public String testName(String name);
  | 
  |             
  |        @WebRemote
  |        public void create();
  |             
  | 	
  | 	@WebRemote
  | 	@Remove
  | 	public void destroy();
  | }
  | 

Best regards,
jquery

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

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



More information about the jboss-user mailing list