cancel
Showing results for 
Search instead for 
Did you mean: 

Import Normal EJB into DC EJB

Former Member
0 Kudos

Hi All,

I have a normal EJB which is working fine. I have created a DC EJB. How can i import this normal EJB into the DC EJB? Please help me out in resolving this issue.

Regards,

Divya

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Divya,

Copy the complete package of session/entity bean from ejb module which you have developed in normal EJB project and paste it ejbmodule of newly created DC.

If you go to the J2EE Dc explorer you can find EJB candidates, right click on EJB candidates there will be an option add to ejb-bar.xml.once you add your bean to ejb-jar.xml

Copy the complete package to src folder of newly created DC and build the DC.

If you are working in NWDI make sure all the files are added to the activity which you have created and then checkin the activity.

Hope this helps you...

Regards,

Saleem

Former Member
0 Kudos

Hi Saleem,

Thanks for the response.

I created a DC ejb and a dc ear project. what is the next step. can u be a little more clear.Couldnt find "EJB candidates" in J2EE Dc explorer .Can u please explain the steps in detail.

Regards,

Divya

Former Member
0 Kudos

Hi Saleem,

Thanks a lot. It worked fine.

Regards,

Divya

Former Member
0 Kudos

Hi Divya,

In J2EE Development prespective-->navigator, copy the entire package of java classes of (session/entity) bean in ejbModule of normal EJB and paste those java classes in ejbmodule of newly created J2EE DC.

J2EE Development prespective-->J2EE DC explorer, you will find "EJB candidates" (for session/entity)beans.Right click on "EJB Candidates" and add this (session/entity) beans to ejb-jar.xml.

J2EE Development prespective-->navigator, copy the entire package of java classes of (session/entity) bean in ejbModule of normal EJB and paste those java classes in src folder of newly created J2EE DC as well.

J2EE Development prespective-->J2EE DC explorer, buid the DC and deploy the ear file.

Regards,

Saleem.

Answers (1)

Answers (1)

Former Member
0 Kudos