This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates 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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
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?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Mocking JNDI