Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Anyone know how to create a JUnit test for an EJB service?

 
Dave Alvarado
Ranch Hand
Posts: 436
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author & internet detective
Marshal
Posts: 34071
331
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Dave Alvarado
Ranch Hand
Posts: 436
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using Resin 3.0.19. -
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34071
331
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
While we don't have a Resin forum, I'm going to move this to a different forum than Testing in hopes someone knows.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic