| Author |
Anyone know how to create a JUnit test for an EJB service?
|
Dave Alvarado
Ranch Hand
Joined: Jul 02, 2008
Posts: 434
|
|
Hi,
I'm trying to write some JUnit tests for an EJB service I have running locally. I'm using JUnit 4.3 with Java 1.5. The problem I'm having is that I don't know what class to use for my initial context factory. Here is the code I have so far ...
Can anyone help? Thanks, - Dave
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26496
|
|
Dave,
I would use a framework like Cactus to get out of the remote call business. If you really want to do the remote call, the answer depends on your application server. Which one are you using?
|
[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
|
 |
Dave Alvarado
Ranch Hand
Joined: Jul 02, 2008
Posts: 434
|
|
|
I'm using Resin 3.0.19. -
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26496
|
|
|
While we don't have a Resin forum, I'm going to move this to a different forum than Testing in hopes someone knows.
|
 |
 |
|
|
subject: Anyone know how to create a JUnit test for an EJB service?
|
|
|