cancel
Showing results for 
Search instead for 
Did you mean: 

Calling J2EE application from Portal application

Former Member
0 Kudos

Hey experts,

I am trying to call a J2EE application from a Portal application.

I am using the BonusCalculationEjb and BonusCalculationEAR downloaded from the web.

I have added a JNDI name sabbir/calculatorJNDI in BonusCalculationBean

Then, I have deployed BonusCalculationEAR and it deploys OK.

In the Portal application I have added the following PrivateSharingReference

<property name="PrivateSharingReference" value="SAPJ2EE::sap.com/BonusCalculationEar"/>

I am using the following code to call it

InitialContext ctx = new InitialContext();

BonusCalculatorLocalHome home = (BonusCalculatorLocalHome) ctx.lookup("localejbs/sap.com/sabbir/calculatorJNDI");

BonusCalculatorLocal theCalculator = home.create();

double result = theCalculator.calculateBonus(6);

out.println("The bonus is " + result);

But, I am getting the following error

Path to object does not exist at sabbir, the whole lookup name is localejbs/sap.com/sabbir/calculatorJNDI.

Can you please advise.

Thank you.

Accepted Solutions (1)

Accepted Solutions (1)

Vlado
Advisor
Advisor
0 Kudos

The solution can be found in <a href="https://forums.sdn.sap.com/thread.jspa?threadID=376336">this</a> thread.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Check this links:

http://help.sap.com/saphelp_erp2004/helpdata/en/09/581140d72dc442e10000000a1550b0/content.htm

(Rewards points for helpful answer)

Regards,

Gunjan