Skip to Content
author's profile photo
Former Member

jdo lookup

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • author's profile photo
    Former Member
    Jul 14, 2004 at 09:10 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Jul 14, 2004 at 09:24 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Jul 14, 2004 at 09:35 AM

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

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

    Regards,

    Werner

    Add comment
    10|10000 characters needed characters exceeded