You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Selva020781 <se...@yahoo.co.in> on 2008/07/08 07:40:50 UTC
Not able to configure the created queue for communication. Even I
dont know how to do that?
Hi All,
I created a queue mentioning the same in the activemqconfig.xml. Now I am
able to see the queue when I open the ACTIVEMQ web console. but I dont know
how to use this queue in my application for communication.
I mention the initial context factory as
"org.apache.activemq.ActiveMQConnectionFactory" and I mentioned the queue
name as TestQ1 which I created earlier. I have mentioned all the details in
the configuration file of our application.
When I run the Agent Server(local application) it is not recognizing the
queue. it is throwing the following exception. Could anyone tell me why I am
getting the exception???
<Errors>
<Error ErrorCode="JMSProducer1"
ErrorDescription="Error_description_not_available"
ErrorRelatedMoreInfo="">
<Attribute Name="ErrorCode" Value="JMSProducer1"/>
<Attribute Name="ErrorDescription"
Value="Error_description_not_available"/>
<Error ErrorCode="javax.naming.NameNotFoundException"
ErrorDescription="" ErrorRelatedMoreInfo="TestQ1">
<Stack>javax.naming.NameNotFoundException: TestQ1
at
org.apache.activemq.jndi.ReadOnlyContext.lookup(ReadOnlyContext.java:225)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at
com.yantra.interop.services.jms.JMSProducer.<init>(JMSProducer.java:216)
at
com.yantra.interop.services.jms.JMSContext.configure(JMSContext.java:185)
at
com.yantra.integration.adapter.IntegrationAdapter.initConfig(IntegrationAdapter.java:150)
at
com.yantra.integration.adapter.IntegrationAdapter.start(IntegrationAdapter.java:366)
at
com.yantra.integration.adapter.IntegrationAdapter.main(IntegrationAdapter.java:477)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
com.sterlingcommerce.woodstock.noapp.NoAppLoader.main(NoAppLoader.java:78)
</Stack>
</Error>
<Stack>com.yantra.interop.services.MessagingException
at
com.yantra.interop.services.jms.JMSProducer.<init>(JMSProducer.java:222)
at
com.yantra.interop.services.jms.JMSContext.configure(JMSContext.java:185)
at
com.yantra.integration.adapter.IntegrationAdapter.initConfig(IntegrationAdapter.java:150)
at
com.yantra.integration.adapter.IntegrationAdapter.start(IntegrationAdapter.java:366)
at
com.yantra.integration.adapter.IntegrationAdapter.main(IntegrationAdapter.java:477)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
com.sterlingcommerce.woodstock.noapp.NoAppLoader.main(NoAppLoader.java:78)
</Stack>
</Error>
<Error ErrorCode="JMSContext2"
ErrorDescription="Error_description_not_available"
ErrorRelatedMoreInfo="">
<Attribute Name="ErrorCode" Value="JMSContext2"/>
<Attribute Name="ErrorDescription"
Value="Error_description_not_available"/>
<Stack>com.yantra.interop.services.ServiceConfigurationException
at
com.yantra.interop.services.jms.JMSContext.configure(JMSContext.java:198)
at
com.yantra.integration.adapter.IntegrationAdapter.initConfig(IntegrationAdapter.java:150)
at
com.yantra.integration.adapter.IntegrationAdapter.start(IntegrationAdapter.java:366)
at
com.yantra.integration.adapter.IntegrationAdapter.main(IntegrationAdapter.java:477)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
com.sterlingcommerce.woodstock.noapp.NoAppLoader.main(NoAppLoader.java:78)
</Stack>
It would be helpful If someone give me the document of reference for
configuring the queues and implemention of communication with some
application.
With regards
Selva.
--
View this message in context: http://www.nabble.com/Not-able-to-configure-the-created-queue-for-communication.-Even-I-dont-know-how-to-do-that--tp18332245p18332245.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Not able to configure the created queue for communication. Even
I dont know how to do that?
Posted by Joe Fernandez <jo...@ttmsolutions.com>.
The exception is being thrown, because "TestQ1" is not defined in the jndi
context.
org.apache.activemq.jndi.ActiveMQInitialContextFactory is ActiveMQ's
implementation of InitialContextFactory.
org.apache.activemq.ActiveMQConnectionFactory implements the JMS
ConnectionFactory.
Joe
www.ttmsolutions.com
Selva020781 wrote:
>
> Hi All,
>
> I created a queue mentioning the same in the activemqconfig.xml. Now I am
> able to see the queue when I open the ACTIVEMQ web console. but I dont
> know how to use this queue in my application for communication.
>
> I mention the initial context factory as
> "org.apache.activemq.ActiveMQConnectionFactory" and I mentioned the queue
> name as TestQ1 which I created earlier. I have mentioned all the details
> in the configuration file of our application.
>
> When I run the Agent Server(local application) it is not recognizing the
> queue. it is throwing the following exception. Could anyone tell me why I
> am getting the exception???
>
> <Errors>
> <Error ErrorCode="JMSProducer1"
> ErrorDescription="Error_description_not_available"
> ErrorRelatedMoreInfo="">
> <Attribute Name="ErrorCode" Value="JMSProducer1"/>
> <Attribute Name="ErrorDescription"
> Value="Error_description_not_available"/>
> <Error ErrorCode="javax.naming.NameNotFoundException"
> ErrorDescription="" ErrorRelatedMoreInfo="TestQ1">
> <Stack>javax.naming.NameNotFoundException: TestQ1
> at
> org.apache.activemq.jndi.ReadOnlyContext.lookup(ReadOnlyContext.java:225)
> at
> javax.naming.InitialContext.lookup(InitialContext.java:351)
> at
> com.yantra.interop.services.jms.JMSProducer.<init>(JMSProducer.java:216)
> at
> com.yantra.interop.services.jms.JMSContext.configure(JMSContext.java:185)
> at
> com.yantra.integration.adapter.IntegrationAdapter.initConfig(IntegrationAdapter.java:150)
> at
> com.yantra.integration.adapter.IntegrationAdapter.start(IntegrationAdapter.java:366)
> at
> com.yantra.integration.adapter.IntegrationAdapter.main(IntegrationAdapter.java:477)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> com.sterlingcommerce.woodstock.noapp.NoAppLoader.main(NoAppLoader.java:78)
> </Stack>
> </Error>
> <Stack>com.yantra.interop.services.MessagingException
> at
> com.yantra.interop.services.jms.JMSProducer.<init>(JMSProducer.java:222)
> at
> com.yantra.interop.services.jms.JMSContext.configure(JMSContext.java:185)
> at
> com.yantra.integration.adapter.IntegrationAdapter.initConfig(IntegrationAdapter.java:150)
> at
> com.yantra.integration.adapter.IntegrationAdapter.start(IntegrationAdapter.java:366)
> at
> com.yantra.integration.adapter.IntegrationAdapter.main(IntegrationAdapter.java:477)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> com.sterlingcommerce.woodstock.noapp.NoAppLoader.main(NoAppLoader.java:78)
> </Stack>
> </Error>
> <Error ErrorCode="JMSContext2"
> ErrorDescription="Error_description_not_available"
> ErrorRelatedMoreInfo="">
> <Attribute Name="ErrorCode" Value="JMSContext2"/>
> <Attribute Name="ErrorDescription"
> Value="Error_description_not_available"/>
>
> <Stack>com.yantra.interop.services.ServiceConfigurationException
> at
> com.yantra.interop.services.jms.JMSContext.configure(JMSContext.java:198)
> at
> com.yantra.integration.adapter.IntegrationAdapter.initConfig(IntegrationAdapter.java:150)
> at
> com.yantra.integration.adapter.IntegrationAdapter.start(IntegrationAdapter.java:366)
> at
> com.yantra.integration.adapter.IntegrationAdapter.main(IntegrationAdapter.java:477)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> com.sterlingcommerce.woodstock.noapp.NoAppLoader.main(NoAppLoader.java:78)
> </Stack>
>
> It would be helpful If someone give me the document of reference for
> configuring the queues and implemention of communication with some
> application.
>
> With regards
> Selva.
>
--
View this message in context: http://www.nabble.com/Not-able-to-configure-the-created-queue-for-communication.-Even-I-dont-know-how-to-do-that--tp18332245p18342148.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.