CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2004
    Posts
    339

    EJB verification error

    I got two errors when verifying an entity bean

    For [ RecordBean ]
    Error: Transaction attributes must be specified for the methods defined in the home interface [ RecordHome ]. Method [ create ] has no transaction attribute defined within this bean [ RecordBean ].


    and

    For Remote Interface [ Record ] method [ updateRecord ]
    Error: No corresponding business method with matching exceptions was found for method [ updateRecord ].

    I don;t really understand this, would anybody give me some errors?
    (If you want to know more about the details, please let me know)

    Thank you

  2. #2
    Join Date
    Sep 2004
    Posts
    247

    Re: EJB verification error

    It looks lime you've declared a method on the Remote Interface of your bean, but not implemented this correctly in the implementation class.

    If your remote interface is:

    Code:
    public void updateRecord throws RemoteException, MyException;
    Your business implementation class should have a method in it:

    Code:
    public void updateRecord throws MyException {}

  3. #3
    Join Date
    Mar 2004
    Posts
    339

    Re: EJB verification error

    RecordHome.java
    Code:
    		
    
     	public Record findByPrimaryKey (String pKey) throws FinderException, RemoteException;	
     	
     	//home method to create the entity bean
     	public Record create(String id) throws RemoteException, CreateException;
    }
    In RecordBean.java
    Code:
    public String ejbCreate(String id) throws CreateException{....}
    public String ejbFindByPrimaryKey (String pKey) throws FinderException{...}
    It seems not violating the rule....is there any other possible error?

    Thank you

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured