Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why do I get a javax.naming.NameNotFoundException error when I run the JMS example programs in “A Simple Example of Synchronous Message Receives” in Chapter 33?

0
Posted

Why do I get a javax.naming.NameNotFoundException error when I run the JMS example programs in “A Simple Example of Synchronous Message Receives” in Chapter 33?

0

javax.naming.NameNotFoundException: JupiterConnectionFactory not found because there is an error in each of the following source files: • /j2eetutorial14/examples/jms/simple/src/SimpleProducer.java • /j2eetutorial14/examples/jms/simple/src/SimpleSynchConsumer.java To correct the error, open each of these source files in an editor and change the string “jms/JupiterConnectionFactory” to “jms/ConnectionFactory”. There is one occurrence of this string in each file. Recompile the programs using the command “asant build”. Then, in deploytool, choose Tools->Update Module Files to add the recompiled source files to the SimpleProducer.jar and SimpleSynchConsumer.jar files. Save the changed JAR files, and run the programs again using the appclient command.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123