You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Peter Jones (JIRA)" <ji...@apache.org> on 2008/04/02 21:21:32 UTC

[jira] Created: (CAMEL-430) consumeDelete=false option of etl sample doesn't seem to work

consumeDelete=false option of etl sample doesn't seem to work
-------------------------------------------------------------

                 Key: CAMEL-430
                 URL: https://issues.apache.org/activemq/browse/CAMEL-430
             Project: Apache Camel
          Issue Type: Bug
          Components: examples
            Reporter: Peter Jones



In org/apache/camel/example/etl/EtlRoutes.java, the following line:

    from("jpa:org.apache.camel.example.etl.CustomerEntity?consumeDelete=false?consumer.delay=3000&consumeLockEntity=false")
        .setHeader(FileComponent.HEADER_FILE_NAME, el("${in.body.userName}.xml"))
        .to("file:target/customers?append=false");

seems to successfully dump the database entries to files in the target/customers directory.  Unless I'm misunderstanding the sample, the consumeDelete=false is meant to ensure that the dump of the database does not delete the entries from the database.  However, when running the etl sample querying the customer table in the database, the list is empty.  I suspect the consumeDelete=false isn't working.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CAMEL-430) consumeDelete=false option of etl sample doesn't seem to work

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-430?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-430:
------------------------------

        Fix Version/s: 1.4.0
    Affects Version/s: 1.2.0
                       1.3.0
          Description: 
In org/apache/camel/example/etl/EtlRoutes.java, the following line:

    from("jpa:org.apache.camel.example.etl.CustomerEntity?consumeDelete=false?consumer.delay=3000&consumeLockEntity=false")
        .setHeader(FileComponent.HEADER_FILE_NAME, el("${in.body.userName}.xml"))
        .to("file:target/customers?append=false");

seems to successfully dump the database entries to files in the target/customers directory.  Unless I'm misunderstanding the sample, the consumeDelete=false is meant to ensure that the dump of the database does not delete the entries from the database.  However, when running the etl sample querying the customer table in the database, the list is empty.  I suspect the consumeDelete=false isn't working.

  was:

In org/apache/camel/example/etl/EtlRoutes.java, the following line:

    from("jpa:org.apache.camel.example.etl.CustomerEntity?consumeDelete=false?consumer.delay=3000&consumeLockEntity=false")
        .setHeader(FileComponent.HEADER_FILE_NAME, el("${in.body.userName}.xml"))
        .to("file:target/customers?append=false");

seems to successfully dump the database entries to files in the target/customers directory.  Unless I'm misunderstanding the sample, the consumeDelete=false is meant to ensure that the dump of the database does not delete the entries from the database.  However, when running the etl sample querying the customer table in the database, the list is empty.  I suspect the consumeDelete=false isn't working.

          Component/s: camel-jpa

> consumeDelete=false option of etl sample doesn't seem to work
> -------------------------------------------------------------
>
>                 Key: CAMEL-430
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-430
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-jpa, examples
>    Affects Versions: 1.2.0, 1.3.0
>            Reporter: Peter Jones
>             Fix For: 1.4.0
>
>
> In org/apache/camel/example/etl/EtlRoutes.java, the following line:
>     from("jpa:org.apache.camel.example.etl.CustomerEntity?consumeDelete=false?consumer.delay=3000&consumeLockEntity=false")
>         .setHeader(FileComponent.HEADER_FILE_NAME, el("${in.body.userName}.xml"))
>         .to("file:target/customers?append=false");
> seems to successfully dump the database entries to files in the target/customers directory.  Unless I'm misunderstanding the sample, the consumeDelete=false is meant to ensure that the dump of the database does not delete the entries from the database.  However, when running the etl sample querying the customer table in the database, the list is empty.  I suspect the consumeDelete=false isn't working.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CAMEL-430) consumeDelete=false option of etl sample doesn't seem to work

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-430?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-430.
-------------------------------

    Resolution: Fixed

It was just a mistyped URI in the sample.

The JPA component works fine.
I will spin off a new task for the missing options in the wiki

> consumeDelete=false option of etl sample doesn't seem to work
> -------------------------------------------------------------
>
>                 Key: CAMEL-430
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-430
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-jpa, examples
>    Affects Versions: 1.2.0, 1.3.0
>            Reporter: Peter Jones
>             Fix For: 1.4.0
>
>
> In org/apache/camel/example/etl/EtlRoutes.java, the following line:
> {code}
>     from("jpa:org.apache.camel.example.etl.CustomerEntity?consumeDelete=false?consumer.delay=3000&consumeLockEntity=false")
>         .setHeader(FileComponent.HEADER_FILE_NAME, el("${in.body.userName}.xml"))
>         .to("file:target/customers?append=false");
> {code}
> seems to successfully dump the database entries to files in the target/customers directory.  Unless I'm misunderstanding the sample, the consumeDelete=false is meant to ensure that the dump of the database does not delete the entries from the database.  However, when running the etl sample querying the customer table in the database, the list is empty.  I suspect the consumeDelete=false isn't working.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CAMEL-430) consumeDelete=false option of etl sample doesn't seem to work

Posted by "Hadrian Zbarcea (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-430?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hadrian Zbarcea updated CAMEL-430:
----------------------------------

    Fix Version/s: 1.3.0
                       (was: 1.4.0)

> consumeDelete=false option of etl sample doesn't seem to work
> -------------------------------------------------------------
>
>                 Key: CAMEL-430
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-430
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-jpa, examples
>    Affects Versions: 1.2.0, 1.3.0
>            Reporter: Peter Jones
>            Assignee: Claus Ibsen
>             Fix For: 1.3.0
>
>
> In org/apache/camel/example/etl/EtlRoutes.java, the following line:
> {code}
>     from("jpa:org.apache.camel.example.etl.CustomerEntity?consumeDelete=false?consumer.delay=3000&consumeLockEntity=false")
>         .setHeader(FileComponent.HEADER_FILE_NAME, el("${in.body.userName}.xml"))
>         .to("file:target/customers?append=false");
> {code}
> seems to successfully dump the database entries to files in the target/customers directory.  Unless I'm misunderstanding the sample, the consumeDelete=false is meant to ensure that the dump of the database does not delete the entries from the database.  However, when running the etl sample querying the customer table in the database, the list is empty.  I suspect the consumeDelete=false isn't working.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CAMEL-430) consumeDelete=false option of etl sample doesn't seem to work

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-430?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-430:
------------------------------

    Description: 
In org/apache/camel/example/etl/EtlRoutes.java, the following line:

{code}
    from("jpa:org.apache.camel.example.etl.CustomerEntity?consumeDelete=false?consumer.delay=3000&consumeLockEntity=false")
        .setHeader(FileComponent.HEADER_FILE_NAME, el("${in.body.userName}.xml"))
        .to("file:target/customers?append=false");
{code}

seems to successfully dump the database entries to files in the target/customers directory.  Unless I'm misunderstanding the sample, the consumeDelete=false is meant to ensure that the dump of the database does not delete the entries from the database.  However, when running the etl sample querying the customer table in the database, the list is empty.  I suspect the consumeDelete=false isn't working.

  was:
In org/apache/camel/example/etl/EtlRoutes.java, the following line:

    from("jpa:org.apache.camel.example.etl.CustomerEntity?consumeDelete=false?consumer.delay=3000&consumeLockEntity=false")
        .setHeader(FileComponent.HEADER_FILE_NAME, el("${in.body.userName}.xml"))
        .to("file:target/customers?append=false");

seems to successfully dump the database entries to files in the target/customers directory.  Unless I'm misunderstanding the sample, the consumeDelete=false is meant to ensure that the dump of the database does not delete the entries from the database.  However, when running the etl sample querying the customer table in the database, the list is empty.  I suspect the consumeDelete=false isn't working.


A few other options hasnt been documented

flushOnSend   (default = true)
maximumResults   (default = -1)

> consumeDelete=false option of etl sample doesn't seem to work
> -------------------------------------------------------------
>
>                 Key: CAMEL-430
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-430
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-jpa, examples
>    Affects Versions: 1.2.0, 1.3.0
>            Reporter: Peter Jones
>             Fix For: 1.4.0
>
>
> In org/apache/camel/example/etl/EtlRoutes.java, the following line:
> {code}
>     from("jpa:org.apache.camel.example.etl.CustomerEntity?consumeDelete=false?consumer.delay=3000&consumeLockEntity=false")
>         .setHeader(FileComponent.HEADER_FILE_NAME, el("${in.body.userName}.xml"))
>         .to("file:target/customers?append=false");
> {code}
> seems to successfully dump the database entries to files in the target/customers directory.  Unless I'm misunderstanding the sample, the consumeDelete=false is meant to ensure that the dump of the database does not delete the entries from the database.  However, when running the etl sample querying the customer table in the database, the list is empty.  I suspect the consumeDelete=false isn't working.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-430) consumeDelete=false option of etl sample doesn't seem to work

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-430?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=41984#action_41984 ] 

Claus Ibsen commented on CAMEL-430:
-----------------------------------

committed a fix to trunk

> consumeDelete=false option of etl sample doesn't seem to work
> -------------------------------------------------------------
>
>                 Key: CAMEL-430
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-430
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-jpa, examples
>    Affects Versions: 1.2.0, 1.3.0
>            Reporter: Peter Jones
>             Fix For: 1.4.0
>
>
> In org/apache/camel/example/etl/EtlRoutes.java, the following line:
> {code}
>     from("jpa:org.apache.camel.example.etl.CustomerEntity?consumeDelete=false?consumer.delay=3000&consumeLockEntity=false")
>         .setHeader(FileComponent.HEADER_FILE_NAME, el("${in.body.userName}.xml"))
>         .to("file:target/customers?append=false");
> {code}
> seems to successfully dump the database entries to files in the target/customers directory.  Unless I'm misunderstanding the sample, the consumeDelete=false is meant to ensure that the dump of the database does not delete the entries from the database.  However, when running the etl sample querying the customer table in the database, the list is empty.  I suspect the consumeDelete=false isn't working.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (CAMEL-430) consumeDelete=false option of etl sample doesn't seem to work

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-430?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen reassigned CAMEL-430:
---------------------------------

    Assignee: Claus Ibsen

> consumeDelete=false option of etl sample doesn't seem to work
> -------------------------------------------------------------
>
>                 Key: CAMEL-430
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-430
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-jpa, examples
>    Affects Versions: 1.2.0, 1.3.0
>            Reporter: Peter Jones
>            Assignee: Claus Ibsen
>             Fix For: 1.4.0
>
>
> In org/apache/camel/example/etl/EtlRoutes.java, the following line:
> {code}
>     from("jpa:org.apache.camel.example.etl.CustomerEntity?consumeDelete=false?consumer.delay=3000&consumeLockEntity=false")
>         .setHeader(FileComponent.HEADER_FILE_NAME, el("${in.body.userName}.xml"))
>         .to("file:target/customers?append=false");
> {code}
> seems to successfully dump the database entries to files in the target/customers directory.  Unless I'm misunderstanding the sample, the consumeDelete=false is meant to ensure that the dump of the database does not delete the entries from the database.  However, when running the etl sample querying the customer table in the database, the list is empty.  I suspect the consumeDelete=false isn't working.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.