aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Mocking JNDI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Mocking JNDI" Watch "Mocking JNDI" New topic
Author

Mocking JNDI

Andy Fisher
Greenhorn

Joined: Jan 15, 2003
Posts: 20
I'm trying to use Mockrunner in a container to stub some JMS call, but am running into problems with the JNDI lookups due to the fact that the Mockrunner classes aren't Serializable.

I'm therefore attempting to copy all of the "container-set" bindings into Mockrunner's "mock" InitialContext.

Does anyone know if this is possible?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Mocking JNDI