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 Mocking JNDI 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 "Mocking JNDI" Watch "Mocking JNDI" New topic

Mocking JNDI

Andy Fisher

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?
I agree. Here's the link:
subject: Mocking JNDI
Similar Threads
very happy with mockrunner
HF-EJB - initial context in chapter 1
Message-Driven Bean
JNDI names for EJBs
How to test MDB ?