Skip to Content

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 a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • Posted on 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.