on 12-02-2006 2:27 PM
Hi,
I have created an EJB DC, and deployed it.
Now I have created an WebDynpro DC and added Used DC's->
Both client and ejbjar.
Now I am trying to use the ejb..
I do not get any compileation error, but at run time it is unable to find the EJB
jndiContext.lookup is thorowing exception.
Also I tried to reference my ejb dc as WebDynproReference , but I get warning while deploying that " The referenced application ''hidc_ejb'' can''t be started"
Kindly help !
If possible provide me some documents how to use EJB DC from WebDynpro DC.
Regards,
Debasish
Hi,
The problem is solved, thanks ......
One more thing when you add client as used dc no need to add the sourse files.
Regards,
Debasish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Niranjan,
jndiContext.lookup("java:comp/env/Hidc_ejbBean");
This statement itself is throwing exception.
Can you please help why is it so ?
Regards,
Debasish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I have done this..but it is not able to look up in the JNDI ...what extra should be done...
Regards,
Debasish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Just check whether have u done the following correctly.
1. Creation of ur EJB DC.
2. Is it working perfectly without any build and deployment errors. When u do a lookup check here itself whether the lookup is successful.
3. Expose the methods that u want to use in webdynpro as a public part.
3. Once the above steps are through, create a webdynpro DC and in the Used DCs add the public part of the EJB DCs.
4. Check the boxes build and runtime when u add ur EJB DC as a used one.
5. Build and deploy the WD DC.
- Nagarajan
in your WebDynpro DC context
Properties->web Dynpro References->Sharing references
click Add button
you should add EJB reference in WebDynpro DC
add <i>Sharing reference</i> example: vonder name/application name
<b><i>Using EJBs in Web Dynpro (20)</i></b>
https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/a11ba7c8-0401-0010-23b5-f5d2394c0ac0
Message was edited by:
hello ha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.