Skip to Content
0
Former Member
Mar 25, 2010 at 03:02 AM

How to refer the EJB DC .jar in a Portal Project (JSPDynpage) DC

41 Views

Hello All,

I have a question with regard to referencing a EJB's jar in a portal project (jspdynpage).

Here is what I did while building this as a local project :

1 - Created the EJB. Wrote the necessary business logic in the stateless session bean

2 - Created a EAR project and referenced this EJB. Deployed it onto the j2ee server.

3 - Created a portal project(jspdynpage). Added a privatesharing reference to the EAR project in portapp.xml- SAPJ2EE::sap.com/EARPROJECT

4 - Added the .jar file from the EJB as a external jar in the project preference for the portal project. (without which i was gettig build errors as i was trying to look up the bean using the JNDI and invoking the bean method from the jspdypage).

Everything works as expected.

If i have to create a development component, how would I go about referencing the jar files of the EJB dc in the portal project dc? What changes would I have to make in the portapp.xml file?

I did read up some posts on creating external libraries and stuff, but i am not sure how it would align with my current requirement. For example, if i make some changes in the EJB DC, I will have to redeploy that using the EAR DC. How will the new .jar be referenced in my portal project dc?

Any pointers on this would be very useful.

Thanks

-Ajit