Alex thank you for your response.
Yes, i declare two names for the same connection factory and i have tried all
the different combinations i could think of, but still i get the same error...
javax.naming.NameNotFoundException: jms not bound
Here is the xdoclet code for the web.xml and jboss-web.xml,if you can get any
ideas :)
That were the most probable settings to have worked i think
| ...
| * @web.resource-ref
| * name="jms/TaskWaitingUserQueue"
| * type="javax.jms.Queue"
| * auth="Container"
| *
| * @web.resource-ref
| * name="jms/EvaluatedTasksQueue"
| * type="javax.jms.Queue"
| * auth="Container"
| *
| * @jboss.resource-ref
| * res-ref-name="jms/TaskWaitingUserQueue"
| * jndi-name="queue/TaskWaitingUserQueue"
| *
| * @jboss.resource-ref
| * res-ref-name="jms/EvaluatedTasksQueue"
| * jndi-name="queue/EvaluatedTasksQueue"
| *
| * @web.resource-ref
| * name="jms/MyXAQueueConnectionFactoryA"
| * type="javax.jms.QueueConnectionFactory"
| * auth="Container"
| *
| * @jboss.resource-ref
| * res-ref-name="jms/MyXAQueueConnectionFactoryA"
| * jndi-name="java:/JmsXA"
| *
| * @web.resource-ref
| * name="jms/MyXAQueueConnectionFactoryB"
| * type="javax.jms.QueueConnectionFactory"
| * auth="Container"
| *
| * @jboss.resource-ref
| * res-ref-name="jms/MyXAQueueConnectionFactoryB"
| * jndi-name="java:/JmsXA"
| ...
|
I am sure that the problem exists because the onMessage() method has not exited
before the lookup is done again. I ve tried to set the session
in client-acknowledge mode
session = connection.createSession(true, Session.CLIENT_ACKNOWLEDGE);
and then acknowledge the message inside the onMessage():
| ...
| TaskWaitingDTO task = (TaskWaitingDTO) obj;
| //End task of process instance that is waiting.
| String pid = task.getProcessID();
| message.acknowledge();
| ProcessExecution p = new ProcessExecution();
| p.endTaskOfProcess(task);
| System.out.println("[TaskEvaluatedBean] now exiting..");
| ...
|
..but that doesn't work either.
Please, if you have any ideas i d be more than thankful.. i m stack here since
Sunday!
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921170#3921170
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3921170
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user