[ 
https://issues.apache.org/activemq/browse/AMQ-716?page=comments#action_36224 ] 

klaus terjung commented on AMQ-716:
-----------------------------------

bug with  javax.jms.Session.AUTO_ACKNOWLEDGE in ActiveMQ ?

When I use createQueueSession(false, javax.jms.Session.AUTO_ACKNOWLEDGE)
the Messages are not removed from the Queue.


When I use createQueueSession(true, javax.jms.Session.AUTO_ACKNOWLEDGE) and
call getSession().commit() in the onMessage Method

the Messages are  removed from the Queue.


> message is read from queue but not removed
> ------------------------------------------
>
>          Key: AMQ-716
>          URL: https://issues.apache.org/activemq/browse/AMQ-716
>      Project: ActiveMQ
>         Type: Bug

>   Components: Message Store
>     Versions: 4.0
>  Environment: ActiveMQ Release (08.05.2006) 
> BM Blade JS20 AIX 5.3
> DB2 DataBase 8.2
> Driver 2.5.33
> Configuration:
> <jdbcPersistenceAdapter 
> class="org.activemq.store.jdbc.adapter.DefaultJDBCAdapter" dataSource= 
> "#db2-ds"/>
> <bean id="db2datasource" class="org.apache.commons.dbcp.BasicDataSource">
>     <property name="driverClassName" value="com.ibm.db2.jcc.DB2Driver"/>
>     <property name="url" value="URL"/>
>     <property name="username" value="USER"/>
>     <property name="password" value="PASS"/>
>   </bean>
>     Reporter: klaus terjung

>
>
> Producer  send a message with a non transacted Session
> Testing a Consumer with a non transacted Session to receive Messages  
> the  Message is read but not removed.
> Testing a Consumer with a  transacted Session and commit
> the  Message is read and not removed.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to