|
-
May 11th, 2005, 03:49 AM
#1
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
-
May 13th, 2005, 03:45 AM
#2
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 {}
-
May 13th, 2005, 10:53 AM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|