cancel
Showing results for 
Search instead for 
Did you mean: 

EJB DC reference to WebDynpro DC

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

I have done this..but it is not able to look up in the JNDI ...what extra should be done...

Regards,

Debasish

Former Member
0 Kudos

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

Former Member
0 Kudos

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