<div dir="ltr">Jeff has a strong point because if you are using the standalone.xml and not the full one..the JMS isn't loaded.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Oct 30, 2013 at 3:10 PM, Arun Gupta <span dir="ltr"><<a href="mailto:arun.gupta@gmail.com" target="_blank">arun.gupta@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Both of these should not be required for Java EE 7.<br>
<br>
The sample has:<br>
<br>
@JMSDestinationDefinitions({@JMSDestinationDefinition(name =<br>
"java:global/jms/myQueue2",<br>
interfaceName = "javax.jms.Queue")<br>
})<br>
<br>
so the destination should be created as part of deployment.<br>
<br>
And JMSContext relies upon default JMS Connection Factory.<br>
<span class="HOEnZb"><font color="#888888"><br>
Arun<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Wed, Oct 30, 2013 at 7:08 AM, Nick Mpallas <<a href="mailto:mpallas@gmail.com">mpallas@gmail.com</a>> wrote:<br>
> Arun,<br>
> you have to create the queues + the name of the exposed ConnectionFactory<br>
> depends if you are connecting from an in-vm factory or you want a remote<br>
> connection factory.<br>
><br>
><br>
> On Wed, Oct 30, 2013 at 3:05 PM, Arun Gupta <<a href="mailto:arun.gupta@gmail.com">arun.gupta@gmail.com</a>> wrote:<br>
>><br>
>> Hello there ..<br>
>><br>
>> Trying to deploy a simple JMS sample that uses classic and simplified<br>
>> API. The sample is available at:<br>
>><br>
>><br>
>> <a href="https://github.com/arun-gupta/javaee7-samples/tree/master/jms/send-receive-simple" target="_blank">https://github.com/arun-gupta/javaee7-samples/tree/master/jms/send-receive-simple</a><br>
>><br>
>> But the deployment is failing with:<br>
>><br>
>> 07:01:10,423 ERROR [org.jboss.as.server] (management-handler-thread -<br>
>> 28) JBAS015870: Deploy of deployment "send-receive-simple.war" was<br>
>> rolled back with the following failure message:<br>
>> {"JBAS014771: Services with missing/unavailable dependencies" => [<br>
>><br>
>> "jboss.naming.context.java.module.send-receive-simple.send-receive-simple.env.\"org.javaee7.jms.send.receive.simple.ClassicMessageReceiver\".connectionFactory<br>
>> is missing<br>
>> [jboss.naming.context.java.module.send-receive-simple.send-receive-simple.DefaultJMSConnectionFactory]",<br>
>><br>
>> "jboss.naming.context.java.module.send-receive-simple.send-receive-simple.env.\"org.javaee7.jms.send.receive.simple.ClassicMessageSender\".connectionFactory<br>
>> is missing<br>
>> [jboss.naming.context.java.module.send-receive-simple.send-receive-simple.DefaultJMSConnectionFactory]",<br>
>><br>
>> "jboss.naming.context.java.module.send-receive-simple.send-receive-simple.env.\"org.javaee7.jms.send.receive.simple.SimplifiedMessageReceiver\".myQueue<br>
>> is missing [jboss.naming.context.java.global.jms.myQueue2]",<br>
>><br>
>> "jboss.naming.context.java.module.send-receive-simple.send-receive-simple.env.\"org.javaee7.jms.send.receive.simple.ClassicMessageSender\".demoQueue<br>
>> is missing [jboss.naming.context.java.global.jms.myQueue2]",<br>
>><br>
>> "jboss.naming.context.java.module.send-receive-simple.send-receive-simple.env.\"org.javaee7.jms.send.receive.simple.ClassicMessageReceiver\".demoQueue<br>
>> is missing [jboss.naming.context.java.global.jms.myQueue2]",<br>
>><br>
>> "jboss.naming.context.java.module.send-receive-simple.send-receive-simple.env.\"org.javaee7.jms.send.receive.simple.SimplifiedMessageSender\".myQueue<br>
>> is missing [jboss.naming.context.java.global.jms.myQueue2]"<br>
>> ]}<br>
>><br>
>><br>
>> Any suggestions ?<br>
>><br>
>> Arun<br>
>> --<br>
>> Blog: <a href="http://blog.arungupta.me" target="_blank">http://blog.arungupta.me</a><br>
>> Twitter: <a href="http://twitter.com/arungupta" target="_blank">http://twitter.com/arungupta</a><br>
>> _______________________________________________<br>
>> wildfly-dev mailing list<br>
>> <a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a><br>
>> <a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/wildfly-dev</a><br>
><br>
><br>
><br>
><br>
> --<br>
> \n\m<br>
> "camel is a horse made up in a laboratory"<br>
<br>
<br>
<br>
--<br>
Blog: <a href="http://blog.arungupta.me" target="_blank">http://blog.arungupta.me</a><br>
Twitter: <a href="http://twitter.com/arungupta" target="_blank">http://twitter.com/arungupta</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>\n\m<br>"camel is a horse made up in a laboratory"
</div>