cancel
Showing results for 
Search instead for 
Did you mean: 

Create DC for an existing EJB Module Project

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

snehal_kendre
Active Contributor
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

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,