Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JMS Tutorial Problem

843830Jan 24 2003 — edited Jan 30 2003
Hi!!!

I am trying to run the examples from tutorial 4 that I downloaded with the jms_tutorial at Sun Website. I started the J2EE Server and was also able to create a queue. But when I try to run client using following command

java -Djms.properties=$J2EE_HOME/config/jms_client.properties SimpleQueueSender MyQueue 3

I get the following error:

JNDI API lookup failed: javax.naming.NameNotFoundException: QueueConnectionFactory not found

Please let me know how to fix it. I have made all the setting given in the tutorial but still could not figure what is going wrong.

Here is the rest of the information which might be useful to all.

I am using Solaris 5.8.

When I do "j2eeadmin -listJmsFactory"

I get

JmsFactory
----------
< JMS Cnx Factory : jms/QueueConnectionFactory , Queue , No properties >
< JMS Cnx Factory : TopicConnectionFactory , Topic , No properties >
< JMS Cnx Factory : QueueConnectionFactory , Queue , No properties >
< JMS Cnx Factory : jms/TopicConnectionFactory , Topic , No properties >

This is the display I get when I run j2ee -verbose

J2EE server Listen Port: = 1049
Naming service started: :1050
Published the configuration object ...
Binding DataSource, name = jdbc/Cloudscape, url = jdbc:cloudscape:rmi:CloudscapeDB;create=true
Binding DataSource, name = jdbc/EstoreDB, url = jdbc:cloudscape:rmi:CloudscapeDB;create=true
Binding DataSource, name = jdbc/InventoryDB, url = jdbc:cloudscape:rmi:CloudscapeDB;create=true
Web service started: 9191
Web service started: 8000
Web service started: 7000

Binding name:`java:comp/env/jdbc/JobsDB`
Looking up authenticator...
Binding name:`java:comp/env/ejb/Job`
Binding name:`java:comp/env/ejb/Archive`
Binding name:`java:comp/env/jdbc/JobsDB`
Binding name:`java:comp/env/ejb/Code`
Binding name:`java:comp/env/jdbc/ContextDB`
Binding name:`java:comp/env/jdbc/JobsDB`
Binding name:`java:comp/env/PropertiesFile`
Binding name:`java:comp/env/ejb/User`
Binding name:`java:comp/env/ejb/Project`
Binding name:`java:comp/env/ejb/Application`
Binding name:`java:comp/env/ejb/Code`
Binding name:`java:comp/env/jdbc/ContextDB`
Binding name:`java:comp/env/ejb/Project`
Binding name:`java:comp/env/jdbc/ContextDB`
Binding name:`java:comp/env/ejb/Application`
Binding name:`java:comp/env/jdbc/ContextDB`
Binding name:`java:comp/env/ejb/Job`
Binding name:`java:comp/env/jdbc/ContextDB`
Created Context:/hemang/demo
Binding name:`java:comp/env/PropertiesFile`
Binding name:`java:comp/env/ejb/ContextManager`
Binding name:`java:comp/env/ejb/SubmitJob`
J2EE server startup complete.

Thanks in advance.

Regards,
Kaustubh.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 27 2003
Added on Jan 24 2003
3 comments
158 views