cancel
Showing results for 
Search instead for 
Did you mean: 

jdo lookup

werner_dornacher
Explorer
0 Kudos

Hi,

I'm trying to lookup the jdo DefaultPMF in a WD App, but the lookup fails. Im using "java:comp/env/jdo/defaultPMF" when I work with a web project, but it doesnt work with WD. I looked for some alias in the JNDI service manager and found "mcf/jdo/defaultPMF" but it doesnt work too. Whats the propre lookup string?

TIA

Regards,

Werner

Accepted Solutions (0)

Answers (3)

Answers (3)

werner_dornacher
Explorer
0 Kudos

Thanks for your help. I finally managed to get to the DefaultPMF by using this String :

"deployedAdapters/jdo/DefaultPMF/nonGlobalTx/jdo/DefaultPMF"

Regards,

Werner

Former Member
0 Kudos

Hi Werner,

(WD) applications don't have access to the root context of the naming system as default, therefore the "java:comp.." lookup fails.

You can change this by adding the property "domain" with value = "true" when creating the InitialContext.

Hope that helps.

Regards

Stefan

Former Member
0 Kudos

Hi Werner,

maybe you have to add a Sharing reference in your WD Application:

WD -> Properties -> Web Dynpro References -> Sharing References

add here: sap.com/com.sap.jdo

regards

Stefan