David, MyCF is an Jndi name for the Connection Facotory and I think you are using SunOne JMS Provider so please use the Sun J2EE RI's admin tool to create a Connection factory entry and then Try running the sample. Hope that helps Thanks Kamesh -----Original Message----- From: David payam [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 18, 2002 9:26 AM To: [EMAIL PROTECTED] Subject: Can't JMS Sample hi: When I ran the JMS sample, I got the erro code: - Exception: javax.naming.NameNotFoundException: MyCF at com.sun.jndi.fscontext.RefFSContext.getObjectFromBindings(RefFSContex t.java:400) at com.sun.jndi.fscontext.RefFSContext.lookupObject(RefFSContext.java:32 7) at com.sun.jndi.fscontext.RefFSContext.lookup(RefFSContext.java:146) at com.sun.jndi.fscontext.FSContext.lookup(FSContext.java:127) at javax.naming.InitialContext.lookup(InitialContext.java:350) at org.apache.axis.components.jms.JNDIVendorAdapter.getConnectionFactory (JNDIVendorAdapter.java:106) at org.apache.axis.components.jms.JNDIVendorAdapter.getQueueConnectionFa ctory(JNDIVendorAdapter.java:86) at org.apache.axis.transport.jms.JMSConnectorFactory.createConnector(JMS ConnectorFactory.java:168) at org.apache.axis.transport.jms.JMSConnectorFactory.createServerConnect or(JMSConnectorFactory.java:101) at org.apache.axis.transport.jms.SimpleJMSListener.<init>(SimpleJMSListe ner.java:120) at samples.jms.JMSTest.main(JMSTest.java:116) Exception in thread "main" javax.naming.NameNotFoundException: MyCF at com.sun.jndi.fscontext.RefFSContext.getObjectFromBindings(RefFSContex t.java:400) at com.sun.jndi.fscontext.RefFSContext.lookupObject(RefFSContext.java:32 7) at com.sun.jndi.fscontext.RefFSContext.lookup(RefFSContext.java:146) at com.sun.jndi.fscontext.FSContext.lookup(FSContext.java:127) at javax.naming.InitialContext.lookup(InitialContext.java:350) at org.apache.axis.components.jms.JNDIVendorAdapter.getConnectionFactory (JNDIVendorAdapter.java:106) at org.apache.axis.components.jms.JNDIVendorAdapter.getQueueConnectionFa ctory(JNDIVendorAdapter.java:86) at org.apache.axis.transport.jms.JMSConnectorFactory.createConnector(JMS ConnectorFactory.java:168) at org.apache.axis.transport.jms.JMSConnectorFactory.createServerConnect or(JMSConnectorFactory.java:101) at org.apache.axis.transport.jms.SimpleJMSListener.<init>(SimpleJMSListe ner.java:120) at samples.jms.JMSTest.main(JMSTest.java:116) So why "MyCF" can been found? Regards David _____
Post your free ad now! <http://ca.personals.yahoo.com/> Yahoo! Canada Personals