You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "klaus terjung (JIRA)" <ji...@apache.org> on 2006/05/19 14:02:51 UTC

[jira] Created: (AMQ-716) message is read from queue but not removed

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


[jira] Commented: (AMQ-716) message is read from queue but not removed

Posted by "klaus terjung (JIRA)" <ji...@apache.org>.
    [ 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


[jira] Assigned: (AMQ-716) message is read from queue but not removed

Posted by "Rob Davies (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQ-716?page=all ]

Rob Davies reassigned AMQ-716:
------------------------------

    Assign To: Rob Davies

> 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
>     Assignee: Rob Davies

>
>
> 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


[jira] Commented: (AMQ-716) message is read from queue but not removed

Posted by "james strachan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/AMQ-716?page=comments#action_36326 ] 

james strachan commented on AMQ-716:
------------------------------------

Note that a workaround is to disable optimizeAcknowledge - e.g.

tcp://localhost:61616?jms.optimizeAcknowledge=false

> 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
>     Assignee: Rob Davies
>      Fix For: 4.0.1

>
>
> 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


[jira] Resolved: (AMQ-716) message is read from queue but not removed

Posted by "Rob Davies (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQ-716?page=all ]
     
Rob Davies resolved AMQ-716:
----------------------------

    Fix Version: 4.0.1
     Resolution: Fixed

optimizeAcknowledge now off by default

> 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
>     Assignee: Rob Davies
>      Fix For: 4.0.1

>
>
> 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


[jira] Commented: (AMQ-716) message is read from queue but not removed

Posted by "klaus terjung (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/AMQ-716?page=comments#action_36185 ] 

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

Bug in Description

Testing a Consumer with a transacted Session and commit
the Message is read and  removed !!

> 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