on 04-16-2007 3:54 AM
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.
The solution can be found in <a href="https://forums.sdn.sap.com/thread.jspa?threadID=376336">this</a> thread.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Check this links:
http://help.sap.com/saphelp_erp2004/helpdata/en/09/581140d72dc442e10000000a1550b0/content.htm
(Rewards points for helpful answer)
Regards,
Gunjan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.