Results 1 to 1 of 1
Thread: Entity Beans in JBOSS
- 11-29-2007, 03:49 PM #1Member
- Join Date
- Nov 2007
- Rep Power
Entity Beans in JBOSS
We have a Web application in our project that includes 6 Entity Beans with CMP fields1.1
The application was developed in WSAD 5.1
The WSAD generates Access Beans for each Entity Bean as well as stubs in default package com.ibm.ejs.container and com.ibm.websphere.csi.
E.g. The Entity Bean “Organization.java” has Access Bean “OrganizationAccessBean.java”.
Similarly for other 5 Entity Beans there are Access Beans created in WSAD.
But now we are migrating the application to JBOSS 4.0.3SP1 server.
The EAR of the application exported from the WSAD contains all the deployed code (stubs) and Access Beans.
When this EAR was imported in Eclipse 3.2, it gave us error as it does not support the IBM specific files.
We have replaced the IBM specific “.xmi” files by JBOSS compatible files like ejb-jar.xml, jboss.xml.
Then a mapping file was created with the name jbosscmp-jdbc.xml which has all the mapping between the beans and the tables in the database.
Also this file contains the relationship between the beans.
After this we tried deploying the code on JBOSS but got some errors as mentioned below:
12:42:53,141 INFO [EARDeployer] Init J2EE application: file:/D:/jboss-4.0.3SP1/server/default/deploy/pmt.ear
12:42:53,797 WARN [verifier] EJB spec violation:
Bean : Organization
Method : public void ejbCreate(String, int, int) throws Create Exception, Remote Exception
Warning: The return type of an ejbCreate (...) method must be the entity bean's primary key type.
What we analyzed was that in ejb-jar.xml there were some entries.
Here in <ejb-class> the Bean class was given, but there was no information about the AccessBean class.
In WSAD the AcessBean classes were generated by the tool, but we actually did not know how to refer the AccessBean.
Can anyone help us in successfully deploying the application to JBOSS server or provide some pointers/ steps to proceed.
Also need help regarding generation of Access Beans, stubs (IBM specific files) in Eclipse 3.2
- By eva in forum Enterprise JavaBeans (EJB)Replies: 3Last Post: 07-17-2008, 11:03 AM
- By makcro in forum Enterprise JavaBeans (EJB)Replies: 0Last Post: 07-26-2007, 08:37 PM