Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to lookup PersistenceManagerFactory for JDO in WebDynpro?

Hi,

I tried the following scenario to use JDO :

Servlet -> Session Bean -> JDO. (i.e., A servlet calls JDO using Session bean).

I have used the following JNDI lookup to call the JDO's default PMF.

(PersistenceManagerFactory) ctx.lookup("java:comp/env/jdo/defaultPMF");

It works fine.

Now I am trying to use the JDO in my Web Dynpro Project:

The following is my current scenario

WebDynpro ->Command Bean -> Session Bean -> JDO.

I am using the same JNDI lookup.[i.e., (PersistenceManagerFactory) ctx.lookup("java:comp/env/jdo/defaultPMF");]

But,I can't resolve the JNDI lookup when using webdynpro as presentation layer.

Can anybody pls help me?

Thanks in advance,

Krishna Kumar

Former Member
Not what you were looking for? View more on this topic or Ask a question