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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to