Skip to Content

Java standalone and EJB

Hi everyone,

I want my java class to call an EJB.

I created an EJB and deployed it on my J2EE server.

I now want to call that EJB.

I created a Context and looked up that EJB...but it doesn't work.

The exception occurs when I try to get the Home object using the narrow method.

Any idea is welcome.

Thanks,

Regards.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 11, 2007 at 04:10 AM

    Hi,

    have you created jndi name for that bean in ejb-j2ee-engine.xml.

    other wise it will take the jndi name as sap.co/youEAR/Bean name.

    check the jndi name once in visual administrator.

    ithink you have created the properties object and give that as a parameter to initial context.

    regards,

    null

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 11, 2007 at 04:46 AM

    Hi David,

    See this thread:

    ejb-connection

    Regards, Suresh KB

    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.