You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Luca Burgazzoli (JIRA)" <ji...@apache.org> on 2017/04/18 07:54:41 UTC

[jira] [Created] (CAMEL-11155) camel-infinispan: command and operation should match

Luca Burgazzoli created CAMEL-11155:
---------------------------------------

             Summary: camel-infinispan: command and operation should match
                 Key: CAMEL-11155
                 URL: https://issues.apache.org/jira/browse/CAMEL-11155
             Project: Camel
          Issue Type: Improvement
          Components: camel-infinispan
            Reporter: Luca Burgazzoli
            Assignee: Luca Burgazzoli
            Priority: Minor
             Fix For: 2.20.0


As today in camel-infinispan you can configure which operation the producer should perform in two ways:
- by setting the CamelInfinispanOperation header
- by setting the command option in the endpoint

The first thing to notice is that they use a different naming but for consistency we should use either operation or command but not both. The second thing is that if you set the operation on header you should use i.e. CamelInfinispanOperationPut but the same "operation" set to the command uri option is PUT so again there is a discrepancy in the naming used.

As solution we should use:
- CamelInfinispanOperation for the header
- operation as endpoint option
- the operation should be in the simple form like PUT, GET, etc as it is clear from the context that we are targeting Infinispan. 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)