cancel
Showing results for 
Search instead for 
Did you mean: 

Java standalone and EJB

david_fryda2
Participant
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (1)

Answers (1)

suresh_krishnamoorthy
Active Contributor
0 Kudos

Hi David,

See this thread:

Regards, Suresh KB

david_fryda2
Participant
0 Kudos

Thanks guys for the help.

It works.

Regards!!