Troubleshooting

General Errors

Q1:Why do I get an error when I create the InitialContext?
You might need to tell JNDI the name of the InitalContextFactory class by setting the java.naming.factory.initial property. There might be other reasons for this error. You should consult the documentation for your EJB server to find other possible causes. For example, the Inprise Application Server might require you to run the OSAgent naming service, although WebLogic required you to supply the provider URL.
Q2:Why do I get an error when I try to bind my Queue or Topic?
In the examples in this chapter, there is a slight chance that if the producer and consumer start at the same time, they might both try to create the queue or topic. One will bind successfully, ...

Get Special Edition Using Java™ 2 Enterprise Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.