Hi,
Is any one tried using jms-messages in orion?
I'm testing point-point queues in orion. I've following difficulties using
transaction.

Created persistence queue.

Problem 1:
=========
Send 10 messages to the queue
Create transacted session
Create receiver
Receive all the messages
Exit without commit.

Start receiving again. Now no messages are received.
As per jms 1.0.1 specification messages are removed from the queue only
when we commit the transaction.

Problem 2:
=========
Send 10 messages
Create transacted session
Create receiver
Receive messages
After receiving all the messages issue Rollback messages

Receive again
Now i noticed only the last message is received.

Did anyone faced similar problem? Is this known bug in Orion?  or Am I
missing any configuration details? Any help is very much appreciated.

Following is my jms.xml and application-client.xml configuration details.

=====================jms.xml=============================
<?xml version="1.0"?>
<!DOCTYPE jms-server PUBLIC "Orion JMS server"
"http://www.orionserver.com/dtds/jms-server.dtd">

<jms-server host="10.1.1.2" port="9127">

     <!-- Queue bindings, these queues will be bound to their respective
JNDI path for
          later retrieval -->
     <queue name="Sample Queue" location="sampleQueue.com.sg"
persistence-file="../sampleQueue.queue.sg">
          <description>A sample queue to test persistence </description>
     </queue>

     <!-- path to the log-file where JMS-events/errors are stored -->
     <log>
          <file path="../log/jms.log" />
     </log>
</jms-server>
================================

==============application-client.xml=======================
<?xml version="1.0"?>
<!DOCTYPE application-client PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE
Application Client 1.2//EN"
"http://java.sun.com/j2ee/dtds/application-client_1_2.dtd">
<application-client>
     <resource-ref>
           <res-ref-name>sampleQueue.com.sg</res-ref-name>
          <res-type>javax.jms.Queue</res-type>
          <res-auth>Container</res-auth>
     </resource-ref>

     </resource-ref>
</application-client>
=====================

--venkat


Reply via email to