on 04-17-2008 11:56 PM
Hi all,
I was trying to create a DC for an existing EJB Module Project.
After creating the DC, the folder 'ebjmodule' in new DC is empty. Can anyone tell me the steps I need to follow inorder to create DC for an existing EJB module project.
Any useful documents also appreciated.
Thanks
Kukku
HI Kukku,
After creating your DC do following steps.
1. go into navigator view
2. copy the all the containts in src folder oof your previous EJB module project into your new DC
3. open your ejb-jar.xml file. go into its source where you can see its xml format.
4. copy all the contents between
<enterprise-beans>
..........................
</enterprise-beans> tags.. and if your using relationships then copy contents of
<relationships>
........
<relationships> tags.
all these containt must be kept between <ejb-jar>...</ejb-jar> tags
5. same way you have to edit ejb-j2ee-engine.xml.
6. Dont copy persistent.xml.
7. after copying ejb-jar.xml you get persistance.xml file ready..just map you table to Entity beans.
8. add needed used DC`s into your DC
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kukku,
After creating DC for ejb module project -
1. Go to package explorer view. Copy contents(packages) of existing ejbmodule folder & paste it in the ejbmodule folder of your DC.
2. Switch to J2EE DC explorer view & right click on ejb.jar & select ADD Ejbs.
3. Right click on your project node & click on build DC.
4. This will automatically create .jar file
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.