1

I have ejb session class testImpl and its interface testLocal. I am using testLocal in my managedBean but Now I need to to use testLocal in my simple java class like pojo.

I went following question :

and so on. But could not get my requirement.

My question is:

  1. Can I access (use) ejb session classes in my simple java class which is in web-module or not ? and
  2. If yes, then what is the procedure ?

Note: I am using EE5

Community
  • 1
  • 1
Yubaraj
  • 3,800
  • 7
  • 39
  • 57

1 Answers1

1

Two way you can access ejb session bean.

  1. Using JNDI lookup and
  2. Using Dependency Injection

For details, go through to this tutorials.

Masudul
  • 21,823
  • 5
  • 43
  • 58