hi:
I am an Chinese boy!
Can you share your experiences with me? thanks a lot!
My MSN:[EMAIL PROTECTED]
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3822628#3822628
Reply to the post :
to Adrian:
I run my program while JBoss is running.
but it still does not work.
Follow is JNDIContext:
java.util.Hashtable JNDIParm = new java.util.Hashtable();
JNDIParm.put(Context.PROVIDER_URL, localhost);
JNDIParm.put(Context.INITIAL_CONTEXT_FACTORY,
package simple;
import javax.jms.*;
import javax.naming.*;
public class SimpleQueueReceiver {
public static void main(String[] args) {
String queueName = A;
Context jndiContext = null;
QueueConnectionFactory queueConnectionFactory =
Up is my JMS reciever. I known there is a default Queue named A.But How can I get
ConnectionFactory?Is there a JNDI name I can use and what is it?
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3822478#3822478
Reply to the post :
Queue name is A
javax.naming.NameNotFoundException: ConnectionFactory not bound
at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
at
Thank you,everyone.
The problem has resovled.
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3822487#3822487
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3822487
---
My code is below:
try {
java.util.Hashtable JNDIParm = new java.util.Hashtable();
JNDIParm.put(Context.PROVIDER_URL, localhost);
JNDIParm.put(Context.INITIAL_CONTEXT_FACTORY,
org.jnp.interfaces.NamingContextFactory);
jndiContext = new
JBossMQProvider
when my program run, it throws an exception,
JNDI API lookup failed: javax.naming.NameNotFoundException: JBossMQProvider not bound
who can Help?
thank you
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3822241#3822241
Reply to the post :
lookup UIL2ConnectionFactory
Regards,
Adrian
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3822261#3822261
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3822261
---