This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "How to test EJb Watch "How to test EJb New topic
Author

How to test EJb's stand alone

raj talatam
Ranch Hand

Joined: Apr 19, 2012
Posts: 87
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30050
    
149

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
 
subject: How to test EJb's stand alone
 
Similar Threads
How to access to my weblogic server through Internet
WSAD 5.0, BAsic doubt help ..
Issues in Migrating from Websphere 5.1 to 6.1
How to get the complete file path in Mozila
[Digester] End event threw exception Problem for CactusStrutsTestCase