activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sL07 <>
Subject weblogic
Date Tue, 30 May 2006 07:07:27 GMT

hi all,

trying to get my weblogic servlet to looking up an ActiveMQ queue that is
specfiied in the

However the a javax.naming.NameNotFoundException: is thrown when looking up
my connection factory. I have used all types of name prefix's with and
without the java:comp/env. It just seems that my is not
being read.

-------------code that throws---------------------------
	    	InitialContext ctx = new InitialContext();
	    	QueueConnectionFactory qcf =
	    	QueueConnection connection = qcf.createQueueConnection();
	    	Queue queue = (Queue)ctx.lookup("java:comp/env/FirePayQueue")

i have read  the jndi tutorial at
but i can't get this weblogic junk to work.

The application is deployed as a war.
The is in the web-ing/classes 

The is below

java.naming.factory.initial = 

# use the following property to configure the default connector 
#java.naming.provider.url = tcp://localhost:61616 
java.naming.provider.url = vm://localhost
# use the following property to embed a broker inside this JVM 
#useEmbeddedBroker = true 

# use the following property to specify a class path resource or URL 
# used to configure an embedded broker using the XML configuration file 
#brokerXmlConfig =  file:src/conf/sample-conf/default.xml 

# use the following property to specify the JNDI name  the connection
# should appear as. 
connectionFactoryNames = FirePayQueueConnectionFactory

# register some queues in JNDI using the form 
# queue.[jndiName] = [physicalName] 
queue.FirePayQueue = nebo.FirePayQueue 

any help is most appreciated.

View this message in context:
Sent from the ActiveMQ - User forum at

View raw message