File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of Android Security Essentials Live Lessons this week in the Android 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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Mocking JNDI
 
Similar Threads
JNDI names for EJBs
Message-Driven Bean
How to test MDB ?
very happy with mockrunner
HF-EJB - initial context in chapter 1