wood burning stoves 2.0
The moose likes EJB and other Java EE Technologies and the fly likes How to test EJb's stand alone Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "How to test EJb Watch "How to test EJb New topic

How to test EJb's stand alone

raj talatam
Ranch Hand

Joined: Apr 19, 2012
Posts: 90
Hi All

In my project we are using ADF for UI and Ejb for business services, i have to work on EJB's, i dont know anything about ADF,
for example , if i write any method in ejb i have to test it's through ADF, it is not possible, can i test these ejb's remotely,
without intervention of ADF, so can anyone tell the way to test ejb's through main method
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 32635

Yes, but you have to do some setup to get access to the JNDI to look up the EJB. See ejb unit test for examples and tutorials.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link: http://aspose.com/file-tools
subject: How to test EJb's stand alone
It's not a secret anymore!