You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "stephen samuel (JIRA)" <ji...@apache.org> on 2012/08/03 02:58:02 UTC
[jira] [Created] (CAMEL-5483) Component for neo4j
stephen samuel created CAMEL-5483:
-------------------------------------
Summary: Component for neo4j
Key: CAMEL-5483
URL: https://issues.apache.org/jira/browse/CAMEL-5483
Project: Camel
Issue Type: Improvement
Reporter: stephen samuel
Priority: Minor
Fix For: 2.11.0
Attachments: camel-neo4j.patch
I have created a component for neo4j. It is a producer only and it allows you to create / remove nodes and relationships.
------ read me ----------
camel-neo4j
========
The camel-neo4j component allows you to treat Neo4j as a camel producer endpoint. This means you can use this component in to() calls but not from() calls. This component is backed by the Spring Data Neo4j Library.
* As a producer, can create or remove nodes, and create or remove relationships.
* Can support as many endpoints as required, eg for multiple databases across multiple instances.
* Headers set for node id (for created nodes), relationship id (for created relationships)
How to Use
==========
You can use neo4j as an endpoint with the following URI.
`neo4j:http://hostname[:port]/database`
Then you need to set a header on each message, one of the following enum types
` CREATE_NODE,
REMOVE_NODE,
CREATE_RELATIONSHIP,
REMOVE_RELATIONSHIP`
Eg,
`exchange.getIn().setHeader(Neo4jEndpoint.HEADER_OPERATION, Neo4jOperation.CREATE_NODE);`
The body of the message is used to determine the node or relationship to manipulate. The following body types are supported:
For CREATE_NODE:
* null body - create default node
* Map body - create node with the properties set from the map
For REMOVE_NODE:
* Long or Integer - remove node using the body as the id
* neo4j Node instance - remove the node specified by that instance
For CREATE_RELATIONSHIP:
* SpringDataRelationship - create relationship specified by any @NodeEntity annoted Spring entities.
* BasicRelationship - create relationship specified by the neo4j node types
For REMOVE_RELATIONSHIP:
* Long or Integer - remove relationship using the body as the id
* SpringDataRelationship - remove relationship specified by the @NodeEntity annoted Spring entities.
* BasicRelationship - remove relationship specified by the neo4j node types
Tests
=====
camel-neo4j has a complete set of unit tests. In addition there are some integration tests that require you to run a local instance of neo4j. By default the tests will look at localhost:7474 on http://localhost:7474/db/data/
- Initial contribution by Stephen Samuel.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (CAMEL-5483) Component for neo4j
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5483?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-5483.
--------------------------------
Resolution: Fixed
> Component for neo4j
> -------------------
>
> Key: CAMEL-5483
> URL: https://issues.apache.org/jira/browse/CAMEL-5483
> Project: Camel
> Issue Type: Improvement
> Reporter: stephen samuel
> Assignee: Willem Jiang
> Priority: Minor
> Fix For: 2.11.0
>
> Attachments: camel-neo4j.patch, remove-int-tests.patch
>
>
> I have created a component for neo4j. It is a producer only and it allows you to create / remove nodes and relationships.
> ------ read me ----------
> camel-neo4j
> ========
> The camel-neo4j component allows you to treat Neo4j as a camel producer endpoint. This means you can use this component in to() calls but not from() calls. This component is backed by the Spring Data Neo4j Library.
> * As a producer, can create or remove nodes, and create or remove relationships.
> * Can support as many endpoints as required, eg for multiple databases across multiple instances.
> * Headers set for node id (for created nodes), relationship id (for created relationships)
> How to Use
> ==========
> You can use neo4j as an endpoint with the following URI.
> `neo4j:http://hostname[:port]/database`
> Then you need to set a header on each message, one of the following enum types
> ` CREATE_NODE,
> REMOVE_NODE,
> CREATE_RELATIONSHIP,
> REMOVE_RELATIONSHIP`
> Eg,
> `exchange.getIn().setHeader(Neo4jEndpoint.HEADER_OPERATION, Neo4jOperation.CREATE_NODE);`
> The body of the message is used to determine the node or relationship to manipulate. The following body types are supported:
> For CREATE_NODE:
> * null body - create default node
> * Map body - create node with the properties set from the map
> For REMOVE_NODE:
> * Long or Integer - remove node using the body as the id
> * neo4j Node instance - remove the node specified by that instance
> For CREATE_RELATIONSHIP:
> * SpringDataRelationship - create relationship specified by any @NodeEntity annoted Spring entities.
> * BasicRelationship - create relationship specified by the neo4j node types
> For REMOVE_RELATIONSHIP:
> * Long or Integer - remove relationship using the body as the id
> * SpringDataRelationship - remove relationship specified by the @NodeEntity annoted Spring entities.
> * BasicRelationship - remove relationship specified by the neo4j node types
> Tests
> =====
> camel-neo4j has a complete set of unit tests. In addition there are some integration tests that require you to run a local instance of neo4j. By default the tests will look at localhost:7474 on http://localhost:7474/db/data/
> - Initial contribution by Stephen Samuel.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CAMEL-5483) Component for neo4j
Posted by "stephen samuel (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5483?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
stephen samuel updated CAMEL-5483:
----------------------------------
Attachment: camel-neo4j.patch
> Component for neo4j
> -------------------
>
> Key: CAMEL-5483
> URL: https://issues.apache.org/jira/browse/CAMEL-5483
> Project: Camel
> Issue Type: Improvement
> Reporter: stephen samuel
> Priority: Minor
> Fix For: 2.11.0
>
> Attachments: camel-neo4j.patch
>
>
> I have created a component for neo4j. It is a producer only and it allows you to create / remove nodes and relationships.
> ------ read me ----------
> camel-neo4j
> ========
> The camel-neo4j component allows you to treat Neo4j as a camel producer endpoint. This means you can use this component in to() calls but not from() calls. This component is backed by the Spring Data Neo4j Library.
> * As a producer, can create or remove nodes, and create or remove relationships.
> * Can support as many endpoints as required, eg for multiple databases across multiple instances.
> * Headers set for node id (for created nodes), relationship id (for created relationships)
> How to Use
> ==========
> You can use neo4j as an endpoint with the following URI.
> `neo4j:http://hostname[:port]/database`
> Then you need to set a header on each message, one of the following enum types
> ` CREATE_NODE,
> REMOVE_NODE,
> CREATE_RELATIONSHIP,
> REMOVE_RELATIONSHIP`
> Eg,
> `exchange.getIn().setHeader(Neo4jEndpoint.HEADER_OPERATION, Neo4jOperation.CREATE_NODE);`
> The body of the message is used to determine the node or relationship to manipulate. The following body types are supported:
> For CREATE_NODE:
> * null body - create default node
> * Map body - create node with the properties set from the map
> For REMOVE_NODE:
> * Long or Integer - remove node using the body as the id
> * neo4j Node instance - remove the node specified by that instance
> For CREATE_RELATIONSHIP:
> * SpringDataRelationship - create relationship specified by any @NodeEntity annoted Spring entities.
> * BasicRelationship - create relationship specified by the neo4j node types
> For REMOVE_RELATIONSHIP:
> * Long or Integer - remove relationship using the body as the id
> * SpringDataRelationship - remove relationship specified by the @NodeEntity annoted Spring entities.
> * BasicRelationship - remove relationship specified by the neo4j node types
> Tests
> =====
> camel-neo4j has a complete set of unit tests. In addition there are some integration tests that require you to run a local instance of neo4j. By default the tests will look at localhost:7474 on http://localhost:7474/db/data/
> - Initial contribution by Stephen Samuel.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-5483) Component for neo4j
Posted by "Christian Müller (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13429373#comment-13429373 ]
Christian Müller commented on CAMEL-5483:
-----------------------------------------
The license for org.springframework.data/spring-data-neo4j-rest is ok. We can add this component to our kit (at Apache).
> Component for neo4j
> -------------------
>
> Key: CAMEL-5483
> URL: https://issues.apache.org/jira/browse/CAMEL-5483
> Project: Camel
> Issue Type: Improvement
> Reporter: stephen samuel
> Priority: Minor
> Fix For: 2.11.0
>
> Attachments: camel-neo4j.patch
>
>
> I have created a component for neo4j. It is a producer only and it allows you to create / remove nodes and relationships.
> ------ read me ----------
> camel-neo4j
> ========
> The camel-neo4j component allows you to treat Neo4j as a camel producer endpoint. This means you can use this component in to() calls but not from() calls. This component is backed by the Spring Data Neo4j Library.
> * As a producer, can create or remove nodes, and create or remove relationships.
> * Can support as many endpoints as required, eg for multiple databases across multiple instances.
> * Headers set for node id (for created nodes), relationship id (for created relationships)
> How to Use
> ==========
> You can use neo4j as an endpoint with the following URI.
> `neo4j:http://hostname[:port]/database`
> Then you need to set a header on each message, one of the following enum types
> ` CREATE_NODE,
> REMOVE_NODE,
> CREATE_RELATIONSHIP,
> REMOVE_RELATIONSHIP`
> Eg,
> `exchange.getIn().setHeader(Neo4jEndpoint.HEADER_OPERATION, Neo4jOperation.CREATE_NODE);`
> The body of the message is used to determine the node or relationship to manipulate. The following body types are supported:
> For CREATE_NODE:
> * null body - create default node
> * Map body - create node with the properties set from the map
> For REMOVE_NODE:
> * Long or Integer - remove node using the body as the id
> * neo4j Node instance - remove the node specified by that instance
> For CREATE_RELATIONSHIP:
> * SpringDataRelationship - create relationship specified by any @NodeEntity annoted Spring entities.
> * BasicRelationship - create relationship specified by the neo4j node types
> For REMOVE_RELATIONSHIP:
> * Long or Integer - remove relationship using the body as the id
> * SpringDataRelationship - remove relationship specified by the @NodeEntity annoted Spring entities.
> * BasicRelationship - remove relationship specified by the neo4j node types
> Tests
> =====
> camel-neo4j has a complete set of unit tests. In addition there are some integration tests that require you to run a local instance of neo4j. By default the tests will look at localhost:7474 on http://localhost:7474/db/data/
> - Initial contribution by Stephen Samuel.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-5483) Component for neo4j
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13440222#comment-13440222 ]
Claus Ibsen commented on CAMEL-5483:
------------------------------------
Okay I have granted your account karma to edit the wiki pages.
> Component for neo4j
> -------------------
>
> Key: CAMEL-5483
> URL: https://issues.apache.org/jira/browse/CAMEL-5483
> Project: Camel
> Issue Type: Improvement
> Reporter: stephen samuel
> Assignee: Willem Jiang
> Priority: Minor
> Fix For: 2.11.0
>
> Attachments: camel-neo4j.patch, remove-int-tests.patch
>
>
> I have created a component for neo4j. It is a producer only and it allows you to create / remove nodes and relationships.
> ------ read me ----------
> camel-neo4j
> ========
> The camel-neo4j component allows you to treat Neo4j as a camel producer endpoint. This means you can use this component in to() calls but not from() calls. This component is backed by the Spring Data Neo4j Library.
> * As a producer, can create or remove nodes, and create or remove relationships.
> * Can support as many endpoints as required, eg for multiple databases across multiple instances.
> * Headers set for node id (for created nodes), relationship id (for created relationships)
> How to Use
> ==========
> You can use neo4j as an endpoint with the following URI.
> `neo4j:http://hostname[:port]/database`
> Then you need to set a header on each message, one of the following enum types
> ` CREATE_NODE,
> REMOVE_NODE,
> CREATE_RELATIONSHIP,
> REMOVE_RELATIONSHIP`
> Eg,
> `exchange.getIn().setHeader(Neo4jEndpoint.HEADER_OPERATION, Neo4jOperation.CREATE_NODE);`
> The body of the message is used to determine the node or relationship to manipulate. The following body types are supported:
> For CREATE_NODE:
> * null body - create default node
> * Map body - create node with the properties set from the map
> For REMOVE_NODE:
> * Long or Integer - remove node using the body as the id
> * neo4j Node instance - remove the node specified by that instance
> For CREATE_RELATIONSHIP:
> * SpringDataRelationship - create relationship specified by any @NodeEntity annoted Spring entities.
> * BasicRelationship - create relationship specified by the neo4j node types
> For REMOVE_RELATIONSHIP:
> * Long or Integer - remove relationship using the body as the id
> * SpringDataRelationship - remove relationship specified by the @NodeEntity annoted Spring entities.
> * BasicRelationship - remove relationship specified by the neo4j node types
> Tests
> =====
> camel-neo4j has a complete set of unit tests. In addition there are some integration tests that require you to run a local instance of neo4j. By default the tests will look at localhost:7474 on http://localhost:7474/db/data/
> - Initial contribution by Stephen Samuel.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-5483) Component for neo4j
Posted by "stephen samuel (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13447403#comment-13447403 ]
stephen samuel commented on CAMEL-5483:
---------------------------------------
I've added the documentation for this now. Sorry for the delay.
> Component for neo4j
> -------------------
>
> Key: CAMEL-5483
> URL: https://issues.apache.org/jira/browse/CAMEL-5483
> Project: Camel
> Issue Type: Improvement
> Reporter: stephen samuel
> Assignee: Willem Jiang
> Priority: Minor
> Fix For: 2.11.0
>
> Attachments: camel-neo4j.patch, remove-int-tests.patch
>
>
> I have created a component for neo4j. It is a producer only and it allows you to create / remove nodes and relationships.
> ------ read me ----------
> camel-neo4j
> ========
> The camel-neo4j component allows you to treat Neo4j as a camel producer endpoint. This means you can use this component in to() calls but not from() calls. This component is backed by the Spring Data Neo4j Library.
> * As a producer, can create or remove nodes, and create or remove relationships.
> * Can support as many endpoints as required, eg for multiple databases across multiple instances.
> * Headers set for node id (for created nodes), relationship id (for created relationships)
> How to Use
> ==========
> You can use neo4j as an endpoint with the following URI.
> `neo4j:http://hostname[:port]/database`
> Then you need to set a header on each message, one of the following enum types
> ` CREATE_NODE,
> REMOVE_NODE,
> CREATE_RELATIONSHIP,
> REMOVE_RELATIONSHIP`
> Eg,
> `exchange.getIn().setHeader(Neo4jEndpoint.HEADER_OPERATION, Neo4jOperation.CREATE_NODE);`
> The body of the message is used to determine the node or relationship to manipulate. The following body types are supported:
> For CREATE_NODE:
> * null body - create default node
> * Map body - create node with the properties set from the map
> For REMOVE_NODE:
> * Long or Integer - remove node using the body as the id
> * neo4j Node instance - remove the node specified by that instance
> For CREATE_RELATIONSHIP:
> * SpringDataRelationship - create relationship specified by any @NodeEntity annoted Spring entities.
> * BasicRelationship - create relationship specified by the neo4j node types
> For REMOVE_RELATIONSHIP:
> * Long or Integer - remove relationship using the body as the id
> * SpringDataRelationship - remove relationship specified by the @NodeEntity annoted Spring entities.
> * BasicRelationship - remove relationship specified by the neo4j node types
> Tests
> =====
> camel-neo4j has a complete set of unit tests. In addition there are some integration tests that require you to run a local instance of neo4j. By default the tests will look at localhost:7474 on http://localhost:7474/db/data/
> - Initial contribution by Stephen Samuel.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-5483) Component for neo4j
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13435182#comment-13435182 ]
Claus Ibsen commented on CAMEL-5483:
------------------------------------
@Stephen
We have instructions how to edit the docs here
http://camel.apache.org/how-do-i-edit-the-website.html
You need a signed ICLA at Apache to be able to edit the docs (eg copyright stuff).
If you have that in place, then let us know your conflucens user id, then we can grant your karma to edit docs.
> Component for neo4j
> -------------------
>
> Key: CAMEL-5483
> URL: https://issues.apache.org/jira/browse/CAMEL-5483
> Project: Camel
> Issue Type: Improvement
> Reporter: stephen samuel
> Assignee: Willem Jiang
> Priority: Minor
> Fix For: 2.11.0
>
> Attachments: camel-neo4j.patch, remove-int-tests.patch
>
>
> I have created a component for neo4j. It is a producer only and it allows you to create / remove nodes and relationships.
> ------ read me ----------
> camel-neo4j
> ========
> The camel-neo4j component allows you to treat Neo4j as a camel producer endpoint. This means you can use this component in to() calls but not from() calls. This component is backed by the Spring Data Neo4j Library.
> * As a producer, can create or remove nodes, and create or remove relationships.
> * Can support as many endpoints as required, eg for multiple databases across multiple instances.
> * Headers set for node id (for created nodes), relationship id (for created relationships)
> How to Use
> ==========
> You can use neo4j as an endpoint with the following URI.
> `neo4j:http://hostname[:port]/database`
> Then you need to set a header on each message, one of the following enum types
> ` CREATE_NODE,
> REMOVE_NODE,
> CREATE_RELATIONSHIP,
> REMOVE_RELATIONSHIP`
> Eg,
> `exchange.getIn().setHeader(Neo4jEndpoint.HEADER_OPERATION, Neo4jOperation.CREATE_NODE);`
> The body of the message is used to determine the node or relationship to manipulate. The following body types are supported:
> For CREATE_NODE:
> * null body - create default node
> * Map body - create node with the properties set from the map
> For REMOVE_NODE:
> * Long or Integer - remove node using the body as the id
> * neo4j Node instance - remove the node specified by that instance
> For CREATE_RELATIONSHIP:
> * SpringDataRelationship - create relationship specified by any @NodeEntity annoted Spring entities.
> * BasicRelationship - create relationship specified by the neo4j node types
> For REMOVE_RELATIONSHIP:
> * Long or Integer - remove relationship using the body as the id
> * SpringDataRelationship - remove relationship specified by the @NodeEntity annoted Spring entities.
> * BasicRelationship - remove relationship specified by the neo4j node types
> Tests
> =====
> camel-neo4j has a complete set of unit tests. In addition there are some integration tests that require you to run a local instance of neo4j. By default the tests will look at localhost:7474 on http://localhost:7474/db/data/
> - Initial contribution by Stephen Samuel.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-5483) Component for neo4j
Posted by "stephen samuel (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13439612#comment-13439612 ]
stephen samuel commented on CAMEL-5483:
---------------------------------------
Dear Stephen Samuel,
This message acknowledges receipt of your ICLA, which has been filed in the Apache Software Foundation records.
If you have been invited as a committer, please advise the project PMC that your ICLA has been filed.
The username I requested was sksamuel (samspade79 on here).
> Component for neo4j
> -------------------
>
> Key: CAMEL-5483
> URL: https://issues.apache.org/jira/browse/CAMEL-5483
> Project: Camel
> Issue Type: Improvement
> Reporter: stephen samuel
> Assignee: Willem Jiang
> Priority: Minor
> Fix For: 2.11.0
>
> Attachments: camel-neo4j.patch, remove-int-tests.patch
>
>
> I have created a component for neo4j. It is a producer only and it allows you to create / remove nodes and relationships.
> ------ read me ----------
> camel-neo4j
> ========
> The camel-neo4j component allows you to treat Neo4j as a camel producer endpoint. This means you can use this component in to() calls but not from() calls. This component is backed by the Spring Data Neo4j Library.
> * As a producer, can create or remove nodes, and create or remove relationships.
> * Can support as many endpoints as required, eg for multiple databases across multiple instances.
> * Headers set for node id (for created nodes), relationship id (for created relationships)
> How to Use
> ==========
> You can use neo4j as an endpoint with the following URI.
> `neo4j:http://hostname[:port]/database`
> Then you need to set a header on each message, one of the following enum types
> ` CREATE_NODE,
> REMOVE_NODE,
> CREATE_RELATIONSHIP,
> REMOVE_RELATIONSHIP`
> Eg,
> `exchange.getIn().setHeader(Neo4jEndpoint.HEADER_OPERATION, Neo4jOperation.CREATE_NODE);`
> The body of the message is used to determine the node or relationship to manipulate. The following body types are supported:
> For CREATE_NODE:
> * null body - create default node
> * Map body - create node with the properties set from the map
> For REMOVE_NODE:
> * Long or Integer - remove node using the body as the id
> * neo4j Node instance - remove the node specified by that instance
> For CREATE_RELATIONSHIP:
> * SpringDataRelationship - create relationship specified by any @NodeEntity annoted Spring entities.
> * BasicRelationship - create relationship specified by the neo4j node types
> For REMOVE_RELATIONSHIP:
> * Long or Integer - remove relationship using the body as the id
> * SpringDataRelationship - remove relationship specified by the @NodeEntity annoted Spring entities.
> * BasicRelationship - remove relationship specified by the neo4j node types
> Tests
> =====
> camel-neo4j has a complete set of unit tests. In addition there are some integration tests that require you to run a local instance of neo4j. By default the tests will look at localhost:7474 on http://localhost:7474/db/data/
> - Initial contribution by Stephen Samuel.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-5483) Component for neo4j
Posted by "stephen samuel (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13440173#comment-13440173 ]
stephen samuel commented on CAMEL-5483:
---------------------------------------
I sure have
Full Name stephen samuel
Email samspade79@gmail.com
> Component for neo4j
> -------------------
>
> Key: CAMEL-5483
> URL: https://issues.apache.org/jira/browse/CAMEL-5483
> Project: Camel
> Issue Type: Improvement
> Reporter: stephen samuel
> Assignee: Willem Jiang
> Priority: Minor
> Fix For: 2.11.0
>
> Attachments: camel-neo4j.patch, remove-int-tests.patch
>
>
> I have created a component for neo4j. It is a producer only and it allows you to create / remove nodes and relationships.
> ------ read me ----------
> camel-neo4j
> ========
> The camel-neo4j component allows you to treat Neo4j as a camel producer endpoint. This means you can use this component in to() calls but not from() calls. This component is backed by the Spring Data Neo4j Library.
> * As a producer, can create or remove nodes, and create or remove relationships.
> * Can support as many endpoints as required, eg for multiple databases across multiple instances.
> * Headers set for node id (for created nodes), relationship id (for created relationships)
> How to Use
> ==========
> You can use neo4j as an endpoint with the following URI.
> `neo4j:http://hostname[:port]/database`
> Then you need to set a header on each message, one of the following enum types
> ` CREATE_NODE,
> REMOVE_NODE,
> CREATE_RELATIONSHIP,
> REMOVE_RELATIONSHIP`
> Eg,
> `exchange.getIn().setHeader(Neo4jEndpoint.HEADER_OPERATION, Neo4jOperation.CREATE_NODE);`
> The body of the message is used to determine the node or relationship to manipulate. The following body types are supported:
> For CREATE_NODE:
> * null body - create default node
> * Map body - create node with the properties set from the map
> For REMOVE_NODE:
> * Long or Integer - remove node using the body as the id
> * neo4j Node instance - remove the node specified by that instance
> For CREATE_RELATIONSHIP:
> * SpringDataRelationship - create relationship specified by any @NodeEntity annoted Spring entities.
> * BasicRelationship - create relationship specified by the neo4j node types
> For REMOVE_RELATIONSHIP:
> * Long or Integer - remove relationship using the body as the id
> * SpringDataRelationship - remove relationship specified by the @NodeEntity annoted Spring entities.
> * BasicRelationship - remove relationship specified by the neo4j node types
> Tests
> =====
> camel-neo4j has a complete set of unit tests. In addition there are some integration tests that require you to run a local instance of neo4j. By default the tests will look at localhost:7474 on http://localhost:7474/db/data/
> - Initial contribution by Stephen Samuel.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-5483) Component for neo4j
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13450648#comment-13450648 ]
Willem Jiang commented on CAMEL-5483:
-------------------------------------
@Bilgin
With the help of the [bnd|http://www.aqute.biz/Bnd/Bnd], you can easy tell if the jar is OSGi ready with checking the MANIFEST.MF file yourself.
I will take care of the camel-neo4j feature work.
> Component for neo4j
> -------------------
>
> Key: CAMEL-5483
> URL: https://issues.apache.org/jira/browse/CAMEL-5483
> Project: Camel
> Issue Type: Improvement
> Reporter: stephen samuel
> Assignee: Willem Jiang
> Priority: Minor
> Fix For: 2.11.0
>
> Attachments: camel-neo4j.patch, remove-int-tests.patch
>
>
> I have created a component for neo4j. It is a producer only and it allows you to create / remove nodes and relationships.
> ------ read me ----------
> camel-neo4j
> ========
> The camel-neo4j component allows you to treat Neo4j as a camel producer endpoint. This means you can use this component in to() calls but not from() calls. This component is backed by the Spring Data Neo4j Library.
> * As a producer, can create or remove nodes, and create or remove relationships.
> * Can support as many endpoints as required, eg for multiple databases across multiple instances.
> * Headers set for node id (for created nodes), relationship id (for created relationships)
> How to Use
> ==========
> You can use neo4j as an endpoint with the following URI.
> `neo4j:http://hostname[:port]/database`
> Then you need to set a header on each message, one of the following enum types
> ` CREATE_NODE,
> REMOVE_NODE,
> CREATE_RELATIONSHIP,
> REMOVE_RELATIONSHIP`
> Eg,
> `exchange.getIn().setHeader(Neo4jEndpoint.HEADER_OPERATION, Neo4jOperation.CREATE_NODE);`
> The body of the message is used to determine the node or relationship to manipulate. The following body types are supported:
> For CREATE_NODE:
> * null body - create default node
> * Map body - create node with the properties set from the map
> For REMOVE_NODE:
> * Long or Integer - remove node using the body as the id
> * neo4j Node instance - remove the node specified by that instance
> For CREATE_RELATIONSHIP:
> * SpringDataRelationship - create relationship specified by any @NodeEntity annoted Spring entities.
> * BasicRelationship - create relationship specified by the neo4j node types
> For REMOVE_RELATIONSHIP:
> * Long or Integer - remove relationship using the body as the id
> * SpringDataRelationship - remove relationship specified by the @NodeEntity annoted Spring entities.
> * BasicRelationship - remove relationship specified by the neo4j node types
> Tests
> =====
> camel-neo4j has a complete set of unit tests. In addition there are some integration tests that require you to run a local instance of neo4j. By default the tests will look at localhost:7474 on http://localhost:7474/db/data/
> - Initial contribution by Stephen Samuel.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-5483) Component for neo4j
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13465485#comment-13465485 ]
Willem Jiang commented on CAMEL-5483:
-------------------------------------
neo4j jars are not osgi ready, but there are some improve work on the github of Neo4j.
I think we can close this issue now, and wait for the new release of Neo4j to provide the camel-neo4j.
> Component for neo4j
> -------------------
>
> Key: CAMEL-5483
> URL: https://issues.apache.org/jira/browse/CAMEL-5483
> Project: Camel
> Issue Type: Improvement
> Reporter: stephen samuel
> Assignee: Willem Jiang
> Priority: Minor
> Fix For: 2.11.0
>
> Attachments: camel-neo4j.patch, remove-int-tests.patch
>
>
> I have created a component for neo4j. It is a producer only and it allows you to create / remove nodes and relationships.
> ------ read me ----------
> camel-neo4j
> ========
> The camel-neo4j component allows you to treat Neo4j as a camel producer endpoint. This means you can use this component in to() calls but not from() calls. This component is backed by the Spring Data Neo4j Library.
> * As a producer, can create or remove nodes, and create or remove relationships.
> * Can support as many endpoints as required, eg for multiple databases across multiple instances.
> * Headers set for node id (for created nodes), relationship id (for created relationships)
> How to Use
> ==========
> You can use neo4j as an endpoint with the following URI.
> `neo4j:http://hostname[:port]/database`
> Then you need to set a header on each message, one of the following enum types
> ` CREATE_NODE,
> REMOVE_NODE,
> CREATE_RELATIONSHIP,
> REMOVE_RELATIONSHIP`
> Eg,
> `exchange.getIn().setHeader(Neo4jEndpoint.HEADER_OPERATION, Neo4jOperation.CREATE_NODE);`
> The body of the message is used to determine the node or relationship to manipulate. The following body types are supported:
> For CREATE_NODE:
> * null body - create default node
> * Map body - create node with the properties set from the map
> For REMOVE_NODE:
> * Long or Integer - remove node using the body as the id
> * neo4j Node instance - remove the node specified by that instance
> For CREATE_RELATIONSHIP:
> * SpringDataRelationship - create relationship specified by any @NodeEntity annoted Spring entities.
> * BasicRelationship - create relationship specified by the neo4j node types
> For REMOVE_RELATIONSHIP:
> * Long or Integer - remove relationship using the body as the id
> * SpringDataRelationship - remove relationship specified by the @NodeEntity annoted Spring entities.
> * BasicRelationship - remove relationship specified by the neo4j node types
> Tests
> =====
> camel-neo4j has a complete set of unit tests. In addition there are some integration tests that require you to run a local instance of neo4j. By default the tests will look at localhost:7474 on http://localhost:7474/db/data/
> - Initial contribution by Stephen Samuel.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-5483) Component for neo4j
Posted by "Bilgin Ibryam (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13448564#comment-13448564 ]
Bilgin Ibryam commented on CAMEL-5483:
--------------------------------------
Thanks Babak. I didn't know that MANIFEST.MF can tell you whether it is OSGI bundled or not. Exactly what I was looking for.
> Component for neo4j
> -------------------
>
> Key: CAMEL-5483
> URL: https://issues.apache.org/jira/browse/CAMEL-5483
> Project: Camel
> Issue Type: Improvement
> Reporter: stephen samuel
> Assignee: Willem Jiang
> Priority: Minor
> Fix For: 2.11.0
>
> Attachments: camel-neo4j.patch, remove-int-tests.patch
>
>
> I have created a component for neo4j. It is a producer only and it allows you to create / remove nodes and relationships.
> ------ read me ----------
> camel-neo4j
> ========
> The camel-neo4j component allows you to treat Neo4j as a camel producer endpoint. This means you can use this component in to() calls but not from() calls. This component is backed by the Spring Data Neo4j Library.
> * As a producer, can create or remove nodes, and create or remove relationships.
> * Can support as many endpoints as required, eg for multiple databases across multiple instances.
> * Headers set for node id (for created nodes), relationship id (for created relationships)
> How to Use
> ==========
> You can use neo4j as an endpoint with the following URI.
> `neo4j:http://hostname[:port]/database`
> Then you need to set a header on each message, one of the following enum types
> ` CREATE_NODE,
> REMOVE_NODE,
> CREATE_RELATIONSHIP,
> REMOVE_RELATIONSHIP`
> Eg,
> `exchange.getIn().setHeader(Neo4jEndpoint.HEADER_OPERATION, Neo4jOperation.CREATE_NODE);`
> The body of the message is used to determine the node or relationship to manipulate. The following body types are supported:
> For CREATE_NODE:
> * null body - create default node
> * Map body - create node with the properties set from the map
> For REMOVE_NODE:
> * Long or Integer - remove node using the body as the id
> * neo4j Node instance - remove the node specified by that instance
> For CREATE_RELATIONSHIP:
> * SpringDataRelationship - create relationship specified by any @NodeEntity annoted Spring entities.
> * BasicRelationship - create relationship specified by the neo4j node types
> For REMOVE_RELATIONSHIP:
> * Long or Integer - remove relationship using the body as the id
> * SpringDataRelationship - remove relationship specified by the @NodeEntity annoted Spring entities.
> * BasicRelationship - remove relationship specified by the neo4j node types
> Tests
> =====
> camel-neo4j has a complete set of unit tests. In addition there are some integration tests that require you to run a local instance of neo4j. By default the tests will look at localhost:7474 on http://localhost:7474/db/data/
> - Initial contribution by Stephen Samuel.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-5483) Component for neo4j
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13432977#comment-13432977 ]
Willem Jiang commented on CAMEL-5483:
-------------------------------------
@Stephen
I already add @Ignore annotation on the integration tests which need server, so these test will not be run by default.
If some people wants to run it he could remove the ignore annotation and setup a server for it.
> Component for neo4j
> -------------------
>
> Key: CAMEL-5483
> URL: https://issues.apache.org/jira/browse/CAMEL-5483
> Project: Camel
> Issue Type: Improvement
> Reporter: stephen samuel
> Assignee: Willem Jiang
> Priority: Minor
> Fix For: 2.11.0
>
> Attachments: camel-neo4j.patch, remove-int-tests.patch
>
>
> I have created a component for neo4j. It is a producer only and it allows you to create / remove nodes and relationships.
> ------ read me ----------
> camel-neo4j
> ========
> The camel-neo4j component allows you to treat Neo4j as a camel producer endpoint. This means you can use this component in to() calls but not from() calls. This component is backed by the Spring Data Neo4j Library.
> * As a producer, can create or remove nodes, and create or remove relationships.
> * Can support as many endpoints as required, eg for multiple databases across multiple instances.
> * Headers set for node id (for created nodes), relationship id (for created relationships)
> How to Use
> ==========
> You can use neo4j as an endpoint with the following URI.
> `neo4j:http://hostname[:port]/database`
> Then you need to set a header on each message, one of the following enum types
> ` CREATE_NODE,
> REMOVE_NODE,
> CREATE_RELATIONSHIP,
> REMOVE_RELATIONSHIP`
> Eg,
> `exchange.getIn().setHeader(Neo4jEndpoint.HEADER_OPERATION, Neo4jOperation.CREATE_NODE);`
> The body of the message is used to determine the node or relationship to manipulate. The following body types are supported:
> For CREATE_NODE:
> * null body - create default node
> * Map body - create node with the properties set from the map
> For REMOVE_NODE:
> * Long or Integer - remove node using the body as the id
> * neo4j Node instance - remove the node specified by that instance
> For CREATE_RELATIONSHIP:
> * SpringDataRelationship - create relationship specified by any @NodeEntity annoted Spring entities.
> * BasicRelationship - create relationship specified by the neo4j node types
> For REMOVE_RELATIONSHIP:
> * Long or Integer - remove relationship using the body as the id
> * SpringDataRelationship - remove relationship specified by the @NodeEntity annoted Spring entities.
> * BasicRelationship - remove relationship specified by the neo4j node types
> Tests
> =====
> camel-neo4j has a complete set of unit tests. In addition there are some integration tests that require you to run a local instance of neo4j. By default the tests will look at localhost:7474 on http://localhost:7474/db/data/
> - Initial contribution by Stephen Samuel.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-5483) Component for neo4j
Posted by "Bilgin Ibryam (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13444128#comment-13444128 ]
Bilgin Ibryam commented on CAMEL-5483:
--------------------------------------
Guys, I have a question: how do you find out whether a/this new component requires some new OSGI bundles or not?
Shouldn't it also be added to features.xml in platfor/karaf?
Thanks
> Component for neo4j
> -------------------
>
> Key: CAMEL-5483
> URL: https://issues.apache.org/jira/browse/CAMEL-5483
> Project: Camel
> Issue Type: Improvement
> Reporter: stephen samuel
> Assignee: Willem Jiang
> Priority: Minor
> Fix For: 2.11.0
>
> Attachments: camel-neo4j.patch, remove-int-tests.patch
>
>
> I have created a component for neo4j. It is a producer only and it allows you to create / remove nodes and relationships.
> ------ read me ----------
> camel-neo4j
> ========
> The camel-neo4j component allows you to treat Neo4j as a camel producer endpoint. This means you can use this component in to() calls but not from() calls. This component is backed by the Spring Data Neo4j Library.
> * As a producer, can create or remove nodes, and create or remove relationships.
> * Can support as many endpoints as required, eg for multiple databases across multiple instances.
> * Headers set for node id (for created nodes), relationship id (for created relationships)
> How to Use
> ==========
> You can use neo4j as an endpoint with the following URI.
> `neo4j:http://hostname[:port]/database`
> Then you need to set a header on each message, one of the following enum types
> ` CREATE_NODE,
> REMOVE_NODE,
> CREATE_RELATIONSHIP,
> REMOVE_RELATIONSHIP`
> Eg,
> `exchange.getIn().setHeader(Neo4jEndpoint.HEADER_OPERATION, Neo4jOperation.CREATE_NODE);`
> The body of the message is used to determine the node or relationship to manipulate. The following body types are supported:
> For CREATE_NODE:
> * null body - create default node
> * Map body - create node with the properties set from the map
> For REMOVE_NODE:
> * Long or Integer - remove node using the body as the id
> * neo4j Node instance - remove the node specified by that instance
> For CREATE_RELATIONSHIP:
> * SpringDataRelationship - create relationship specified by any @NodeEntity annoted Spring entities.
> * BasicRelationship - create relationship specified by the neo4j node types
> For REMOVE_RELATIONSHIP:
> * Long or Integer - remove relationship using the body as the id
> * SpringDataRelationship - remove relationship specified by the @NodeEntity annoted Spring entities.
> * BasicRelationship - remove relationship specified by the neo4j node types
> Tests
> =====
> camel-neo4j has a complete set of unit tests. In addition there are some integration tests that require you to run a local instance of neo4j. By default the tests will look at localhost:7474 on http://localhost:7474/db/data/
> - Initial contribution by Stephen Samuel.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-5483) Component for neo4j
Posted by "stephen samuel (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13433021#comment-13433021 ]
stephen samuel commented on CAMEL-5483:
---------------------------------------
Sure, where do you want it ?
> Component for neo4j
> -------------------
>
> Key: CAMEL-5483
> URL: https://issues.apache.org/jira/browse/CAMEL-5483
> Project: Camel
> Issue Type: Improvement
> Reporter: stephen samuel
> Assignee: Willem Jiang
> Priority: Minor
> Fix For: 2.11.0
>
> Attachments: camel-neo4j.patch, remove-int-tests.patch
>
>
> I have created a component for neo4j. It is a producer only and it allows you to create / remove nodes and relationships.
> ------ read me ----------
> camel-neo4j
> ========
> The camel-neo4j component allows you to treat Neo4j as a camel producer endpoint. This means you can use this component in to() calls but not from() calls. This component is backed by the Spring Data Neo4j Library.
> * As a producer, can create or remove nodes, and create or remove relationships.
> * Can support as many endpoints as required, eg for multiple databases across multiple instances.
> * Headers set for node id (for created nodes), relationship id (for created relationships)
> How to Use
> ==========
> You can use neo4j as an endpoint with the following URI.
> `neo4j:http://hostname[:port]/database`
> Then you need to set a header on each message, one of the following enum types
> ` CREATE_NODE,
> REMOVE_NODE,
> CREATE_RELATIONSHIP,
> REMOVE_RELATIONSHIP`
> Eg,
> `exchange.getIn().setHeader(Neo4jEndpoint.HEADER_OPERATION, Neo4jOperation.CREATE_NODE);`
> The body of the message is used to determine the node or relationship to manipulate. The following body types are supported:
> For CREATE_NODE:
> * null body - create default node
> * Map body - create node with the properties set from the map
> For REMOVE_NODE:
> * Long or Integer - remove node using the body as the id
> * neo4j Node instance - remove the node specified by that instance
> For CREATE_RELATIONSHIP:
> * SpringDataRelationship - create relationship specified by any @NodeEntity annoted Spring entities.
> * BasicRelationship - create relationship specified by the neo4j node types
> For REMOVE_RELATIONSHIP:
> * Long or Integer - remove relationship using the body as the id
> * SpringDataRelationship - remove relationship specified by the @NodeEntity annoted Spring entities.
> * BasicRelationship - remove relationship specified by the neo4j node types
> Tests
> =====
> camel-neo4j has a complete set of unit tests. In addition there are some integration tests that require you to run a local instance of neo4j. By default the tests will look at localhost:7474 on http://localhost:7474/db/data/
> - Initial contribution by Stephen Samuel.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-5483) Component for neo4j
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13433142#comment-13433142 ]
Willem Jiang commented on CAMEL-5483:
-------------------------------------
@Stephen, you can add an entry in the [component page|http://camel.apache.org/components.html] and take this [page|http://camel.apache.org/cmis.html] as an example.
> Component for neo4j
> -------------------
>
> Key: CAMEL-5483
> URL: https://issues.apache.org/jira/browse/CAMEL-5483
> Project: Camel
> Issue Type: Improvement
> Reporter: stephen samuel
> Assignee: Willem Jiang
> Priority: Minor
> Fix For: 2.11.0
>
> Attachments: camel-neo4j.patch, remove-int-tests.patch
>
>
> I have created a component for neo4j. It is a producer only and it allows you to create / remove nodes and relationships.
> ------ read me ----------
> camel-neo4j
> ========
> The camel-neo4j component allows you to treat Neo4j as a camel producer endpoint. This means you can use this component in to() calls but not from() calls. This component is backed by the Spring Data Neo4j Library.
> * As a producer, can create or remove nodes, and create or remove relationships.
> * Can support as many endpoints as required, eg for multiple databases across multiple instances.
> * Headers set for node id (for created nodes), relationship id (for created relationships)
> How to Use
> ==========
> You can use neo4j as an endpoint with the following URI.
> `neo4j:http://hostname[:port]/database`
> Then you need to set a header on each message, one of the following enum types
> ` CREATE_NODE,
> REMOVE_NODE,
> CREATE_RELATIONSHIP,
> REMOVE_RELATIONSHIP`
> Eg,
> `exchange.getIn().setHeader(Neo4jEndpoint.HEADER_OPERATION, Neo4jOperation.CREATE_NODE);`
> The body of the message is used to determine the node or relationship to manipulate. The following body types are supported:
> For CREATE_NODE:
> * null body - create default node
> * Map body - create node with the properties set from the map
> For REMOVE_NODE:
> * Long or Integer - remove node using the body as the id
> * neo4j Node instance - remove the node specified by that instance
> For CREATE_RELATIONSHIP:
> * SpringDataRelationship - create relationship specified by any @NodeEntity annoted Spring entities.
> * BasicRelationship - create relationship specified by the neo4j node types
> For REMOVE_RELATIONSHIP:
> * Long or Integer - remove relationship using the body as the id
> * SpringDataRelationship - remove relationship specified by the @NodeEntity annoted Spring entities.
> * BasicRelationship - remove relationship specified by the neo4j node types
> Tests
> =====
> camel-neo4j has a complete set of unit tests. In addition there are some integration tests that require you to run a local instance of neo4j. By default the tests will look at localhost:7474 on http://localhost:7474/db/data/
> - Initial contribution by Stephen Samuel.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-5483) Component for neo4j
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13440092#comment-13440092 ]
Claus Ibsen commented on CAMEL-5483:
------------------------------------
Stephen, have you created an account on the wiki?
Read this page
http://camel.apache.org/how-do-i-edit-the-website.html
> Component for neo4j
> -------------------
>
> Key: CAMEL-5483
> URL: https://issues.apache.org/jira/browse/CAMEL-5483
> Project: Camel
> Issue Type: Improvement
> Reporter: stephen samuel
> Assignee: Willem Jiang
> Priority: Minor
> Fix For: 2.11.0
>
> Attachments: camel-neo4j.patch, remove-int-tests.patch
>
>
> I have created a component for neo4j. It is a producer only and it allows you to create / remove nodes and relationships.
> ------ read me ----------
> camel-neo4j
> ========
> The camel-neo4j component allows you to treat Neo4j as a camel producer endpoint. This means you can use this component in to() calls but not from() calls. This component is backed by the Spring Data Neo4j Library.
> * As a producer, can create or remove nodes, and create or remove relationships.
> * Can support as many endpoints as required, eg for multiple databases across multiple instances.
> * Headers set for node id (for created nodes), relationship id (for created relationships)
> How to Use
> ==========
> You can use neo4j as an endpoint with the following URI.
> `neo4j:http://hostname[:port]/database`
> Then you need to set a header on each message, one of the following enum types
> ` CREATE_NODE,
> REMOVE_NODE,
> CREATE_RELATIONSHIP,
> REMOVE_RELATIONSHIP`
> Eg,
> `exchange.getIn().setHeader(Neo4jEndpoint.HEADER_OPERATION, Neo4jOperation.CREATE_NODE);`
> The body of the message is used to determine the node or relationship to manipulate. The following body types are supported:
> For CREATE_NODE:
> * null body - create default node
> * Map body - create node with the properties set from the map
> For REMOVE_NODE:
> * Long or Integer - remove node using the body as the id
> * neo4j Node instance - remove the node specified by that instance
> For CREATE_RELATIONSHIP:
> * SpringDataRelationship - create relationship specified by any @NodeEntity annoted Spring entities.
> * BasicRelationship - create relationship specified by the neo4j node types
> For REMOVE_RELATIONSHIP:
> * Long or Integer - remove relationship using the body as the id
> * SpringDataRelationship - remove relationship specified by the @NodeEntity annoted Spring entities.
> * BasicRelationship - remove relationship specified by the neo4j node types
> Tests
> =====
> camel-neo4j has a complete set of unit tests. In addition there are some integration tests that require you to run a local instance of neo4j. By default the tests will look at localhost:7474 on http://localhost:7474/db/data/
> - Initial contribution by Stephen Samuel.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-5483) Component for neo4j
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13433017#comment-13433017 ]
Willem Jiang commented on CAMEL-5483:
-------------------------------------
@Stephen
Do you mind to add a wiki page of camel-neo4j?
> Component for neo4j
> -------------------
>
> Key: CAMEL-5483
> URL: https://issues.apache.org/jira/browse/CAMEL-5483
> Project: Camel
> Issue Type: Improvement
> Reporter: stephen samuel
> Assignee: Willem Jiang
> Priority: Minor
> Fix For: 2.11.0
>
> Attachments: camel-neo4j.patch, remove-int-tests.patch
>
>
> I have created a component for neo4j. It is a producer only and it allows you to create / remove nodes and relationships.
> ------ read me ----------
> camel-neo4j
> ========
> The camel-neo4j component allows you to treat Neo4j as a camel producer endpoint. This means you can use this component in to() calls but not from() calls. This component is backed by the Spring Data Neo4j Library.
> * As a producer, can create or remove nodes, and create or remove relationships.
> * Can support as many endpoints as required, eg for multiple databases across multiple instances.
> * Headers set for node id (for created nodes), relationship id (for created relationships)
> How to Use
> ==========
> You can use neo4j as an endpoint with the following URI.
> `neo4j:http://hostname[:port]/database`
> Then you need to set a header on each message, one of the following enum types
> ` CREATE_NODE,
> REMOVE_NODE,
> CREATE_RELATIONSHIP,
> REMOVE_RELATIONSHIP`
> Eg,
> `exchange.getIn().setHeader(Neo4jEndpoint.HEADER_OPERATION, Neo4jOperation.CREATE_NODE);`
> The body of the message is used to determine the node or relationship to manipulate. The following body types are supported:
> For CREATE_NODE:
> * null body - create default node
> * Map body - create node with the properties set from the map
> For REMOVE_NODE:
> * Long or Integer - remove node using the body as the id
> * neo4j Node instance - remove the node specified by that instance
> For CREATE_RELATIONSHIP:
> * SpringDataRelationship - create relationship specified by any @NodeEntity annoted Spring entities.
> * BasicRelationship - create relationship specified by the neo4j node types
> For REMOVE_RELATIONSHIP:
> * Long or Integer - remove relationship using the body as the id
> * SpringDataRelationship - remove relationship specified by the @NodeEntity annoted Spring entities.
> * BasicRelationship - remove relationship specified by the neo4j node types
> Tests
> =====
> camel-neo4j has a complete set of unit tests. In addition there are some integration tests that require you to run a local instance of neo4j. By default the tests will look at localhost:7474 on http://localhost:7474/db/data/
> - Initial contribution by Stephen Samuel.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-5483) Component for neo4j
Posted by "stephen samuel (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13429123#comment-13429123 ]
stephen samuel commented on CAMEL-5483:
---------------------------------------
Hi. We can't run the integration tests without a server. They shouldn't be getting run as part of the unit test process. If you have automated integration tests then I'll need to add in an embedded neo db. I'll look into that and submit another patch.
As for GPL. The neo4j database itself is GPL but you're not distributing the database. You're distributing code that replies on the spring `drivers`, which are licensed under Apache. http://static.springsource.org/spring-data/data-graph/snapshot-site/license.html
I think should be fine otherwise Spring themselves are breaking the license.
> Component for neo4j
> -------------------
>
> Key: CAMEL-5483
> URL: https://issues.apache.org/jira/browse/CAMEL-5483
> Project: Camel
> Issue Type: Improvement
> Reporter: stephen samuel
> Priority: Minor
> Fix For: 2.11.0
>
> Attachments: camel-neo4j.patch
>
>
> I have created a component for neo4j. It is a producer only and it allows you to create / remove nodes and relationships.
> ------ read me ----------
> camel-neo4j
> ========
> The camel-neo4j component allows you to treat Neo4j as a camel producer endpoint. This means you can use this component in to() calls but not from() calls. This component is backed by the Spring Data Neo4j Library.
> * As a producer, can create or remove nodes, and create or remove relationships.
> * Can support as many endpoints as required, eg for multiple databases across multiple instances.
> * Headers set for node id (for created nodes), relationship id (for created relationships)
> How to Use
> ==========
> You can use neo4j as an endpoint with the following URI.
> `neo4j:http://hostname[:port]/database`
> Then you need to set a header on each message, one of the following enum types
> ` CREATE_NODE,
> REMOVE_NODE,
> CREATE_RELATIONSHIP,
> REMOVE_RELATIONSHIP`
> Eg,
> `exchange.getIn().setHeader(Neo4jEndpoint.HEADER_OPERATION, Neo4jOperation.CREATE_NODE);`
> The body of the message is used to determine the node or relationship to manipulate. The following body types are supported:
> For CREATE_NODE:
> * null body - create default node
> * Map body - create node with the properties set from the map
> For REMOVE_NODE:
> * Long or Integer - remove node using the body as the id
> * neo4j Node instance - remove the node specified by that instance
> For CREATE_RELATIONSHIP:
> * SpringDataRelationship - create relationship specified by any @NodeEntity annoted Spring entities.
> * BasicRelationship - create relationship specified by the neo4j node types
> For REMOVE_RELATIONSHIP:
> * Long or Integer - remove relationship using the body as the id
> * SpringDataRelationship - remove relationship specified by the @NodeEntity annoted Spring entities.
> * BasicRelationship - remove relationship specified by the neo4j node types
> Tests
> =====
> camel-neo4j has a complete set of unit tests. In addition there are some integration tests that require you to run a local instance of neo4j. By default the tests will look at localhost:7474 on http://localhost:7474/db/data/
> - Initial contribution by Stephen Samuel.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-5483) Component for neo4j
Posted by "Babak Vahdat (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13444407#comment-13444407 ]
Babak Vahdat commented on CAMEL-5483:
-------------------------------------
Maybe concurrentlinkedhashmap was not a good example as it's shaded into the camel-core jar. But as already said QuickFixJ is such a case which is not OSGi ready out of the box, then as soon as the SMX team provide us a bundle (@ central repo) then we reference that bundle inside the karaf features *instead of* the original jar of the given library. In this case artifactId org.apache.servicemix.bundles.quickfix:
{code}
<feature name='camel-quickfix' version='${project.version}' resolver='(obr)' start-level='50'>
<feature version='${project.version}'>camel-core</feature>
<bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.quickfix/${quickfix-bundle-version}</bundle>
<bundle>mvn:org.apache.camel/camel-quickfix/${project.version}</bundle>
</feature>
{code}
> Component for neo4j
> -------------------
>
> Key: CAMEL-5483
> URL: https://issues.apache.org/jira/browse/CAMEL-5483
> Project: Camel
> Issue Type: Improvement
> Reporter: stephen samuel
> Assignee: Willem Jiang
> Priority: Minor
> Fix For: 2.11.0
>
> Attachments: camel-neo4j.patch, remove-int-tests.patch
>
>
> I have created a component for neo4j. It is a producer only and it allows you to create / remove nodes and relationships.
> ------ read me ----------
> camel-neo4j
> ========
> The camel-neo4j component allows you to treat Neo4j as a camel producer endpoint. This means you can use this component in to() calls but not from() calls. This component is backed by the Spring Data Neo4j Library.
> * As a producer, can create or remove nodes, and create or remove relationships.
> * Can support as many endpoints as required, eg for multiple databases across multiple instances.
> * Headers set for node id (for created nodes), relationship id (for created relationships)
> How to Use
> ==========
> You can use neo4j as an endpoint with the following URI.
> `neo4j:http://hostname[:port]/database`
> Then you need to set a header on each message, one of the following enum types
> ` CREATE_NODE,
> REMOVE_NODE,
> CREATE_RELATIONSHIP,
> REMOVE_RELATIONSHIP`
> Eg,
> `exchange.getIn().setHeader(Neo4jEndpoint.HEADER_OPERATION, Neo4jOperation.CREATE_NODE);`
> The body of the message is used to determine the node or relationship to manipulate. The following body types are supported:
> For CREATE_NODE:
> * null body - create default node
> * Map body - create node with the properties set from the map
> For REMOVE_NODE:
> * Long or Integer - remove node using the body as the id
> * neo4j Node instance - remove the node specified by that instance
> For CREATE_RELATIONSHIP:
> * SpringDataRelationship - create relationship specified by any @NodeEntity annoted Spring entities.
> * BasicRelationship - create relationship specified by the neo4j node types
> For REMOVE_RELATIONSHIP:
> * Long or Integer - remove relationship using the body as the id
> * SpringDataRelationship - remove relationship specified by the @NodeEntity annoted Spring entities.
> * BasicRelationship - remove relationship specified by the neo4j node types
> Tests
> =====
> camel-neo4j has a complete set of unit tests. In addition there are some integration tests that require you to run a local instance of neo4j. By default the tests will look at localhost:7474 on http://localhost:7474/db/data/
> - Initial contribution by Stephen Samuel.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-5483) Component for neo4j
Posted by "stephen samuel (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13433931#comment-13433931 ]
stephen samuel commented on CAMEL-5483:
---------------------------------------
I signed up for Confluence but don't have privileges to create a new page.
> Component for neo4j
> -------------------
>
> Key: CAMEL-5483
> URL: https://issues.apache.org/jira/browse/CAMEL-5483
> Project: Camel
> Issue Type: Improvement
> Reporter: stephen samuel
> Assignee: Willem Jiang
> Priority: Minor
> Fix For: 2.11.0
>
> Attachments: camel-neo4j.patch, remove-int-tests.patch
>
>
> I have created a component for neo4j. It is a producer only and it allows you to create / remove nodes and relationships.
> ------ read me ----------
> camel-neo4j
> ========
> The camel-neo4j component allows you to treat Neo4j as a camel producer endpoint. This means you can use this component in to() calls but not from() calls. This component is backed by the Spring Data Neo4j Library.
> * As a producer, can create or remove nodes, and create or remove relationships.
> * Can support as many endpoints as required, eg for multiple databases across multiple instances.
> * Headers set for node id (for created nodes), relationship id (for created relationships)
> How to Use
> ==========
> You can use neo4j as an endpoint with the following URI.
> `neo4j:http://hostname[:port]/database`
> Then you need to set a header on each message, one of the following enum types
> ` CREATE_NODE,
> REMOVE_NODE,
> CREATE_RELATIONSHIP,
> REMOVE_RELATIONSHIP`
> Eg,
> `exchange.getIn().setHeader(Neo4jEndpoint.HEADER_OPERATION, Neo4jOperation.CREATE_NODE);`
> The body of the message is used to determine the node or relationship to manipulate. The following body types are supported:
> For CREATE_NODE:
> * null body - create default node
> * Map body - create node with the properties set from the map
> For REMOVE_NODE:
> * Long or Integer - remove node using the body as the id
> * neo4j Node instance - remove the node specified by that instance
> For CREATE_RELATIONSHIP:
> * SpringDataRelationship - create relationship specified by any @NodeEntity annoted Spring entities.
> * BasicRelationship - create relationship specified by the neo4j node types
> For REMOVE_RELATIONSHIP:
> * Long or Integer - remove relationship using the body as the id
> * SpringDataRelationship - remove relationship specified by the @NodeEntity annoted Spring entities.
> * BasicRelationship - remove relationship specified by the neo4j node types
> Tests
> =====
> camel-neo4j has a complete set of unit tests. In addition there are some integration tests that require you to run a local instance of neo4j. By default the tests will look at localhost:7474 on http://localhost:7474/db/data/
> - Initial contribution by Stephen Samuel.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-5483) Component for neo4j
Posted by "Babak Vahdat (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13444156#comment-13444156 ]
Babak Vahdat commented on CAMEL-5483:
-------------------------------------
Hi [~bibryam],
Just received your question though a JIRA mail notification... I'm definitely the wrong guy to answer about this in detail as I'm a OSGi newbie (no OSGi-food @ breakfast :-)) but let me try and maybe [~njiang] will correct/complement what I say. If the dependencies of a new Camel component are already OSGi complaint then there's no need to ask/order a bundle for it, as an example consider concurrentlinkedhashmap dependency of camel-core itself which is already OSGi ready (look at it's MANIFEST.MF). Otherwise we should ask for a SMX bundle through a JIRA ticket, as an example I did it once: SMX4-1153
And concerning features.xml you asked about... Good question! I just checked how many Camel features are out there which is currently only 121:
{code}
~/dev/workspace/camel/platforms/karaf/features/src/main/resources>grep "<feature name='camel-" features.xml | wc
121 604 11477
{code}
But we've got more than 130 components! So what about the rest? [~njiang] am I wrong here to expect more karaf features?
> Component for neo4j
> -------------------
>
> Key: CAMEL-5483
> URL: https://issues.apache.org/jira/browse/CAMEL-5483
> Project: Camel
> Issue Type: Improvement
> Reporter: stephen samuel
> Assignee: Willem Jiang
> Priority: Minor
> Fix For: 2.11.0
>
> Attachments: camel-neo4j.patch, remove-int-tests.patch
>
>
> I have created a component for neo4j. It is a producer only and it allows you to create / remove nodes and relationships.
> ------ read me ----------
> camel-neo4j
> ========
> The camel-neo4j component allows you to treat Neo4j as a camel producer endpoint. This means you can use this component in to() calls but not from() calls. This component is backed by the Spring Data Neo4j Library.
> * As a producer, can create or remove nodes, and create or remove relationships.
> * Can support as many endpoints as required, eg for multiple databases across multiple instances.
> * Headers set for node id (for created nodes), relationship id (for created relationships)
> How to Use
> ==========
> You can use neo4j as an endpoint with the following URI.
> `neo4j:http://hostname[:port]/database`
> Then you need to set a header on each message, one of the following enum types
> ` CREATE_NODE,
> REMOVE_NODE,
> CREATE_RELATIONSHIP,
> REMOVE_RELATIONSHIP`
> Eg,
> `exchange.getIn().setHeader(Neo4jEndpoint.HEADER_OPERATION, Neo4jOperation.CREATE_NODE);`
> The body of the message is used to determine the node or relationship to manipulate. The following body types are supported:
> For CREATE_NODE:
> * null body - create default node
> * Map body - create node with the properties set from the map
> For REMOVE_NODE:
> * Long or Integer - remove node using the body as the id
> * neo4j Node instance - remove the node specified by that instance
> For CREATE_RELATIONSHIP:
> * SpringDataRelationship - create relationship specified by any @NodeEntity annoted Spring entities.
> * BasicRelationship - create relationship specified by the neo4j node types
> For REMOVE_RELATIONSHIP:
> * Long or Integer - remove relationship using the body as the id
> * SpringDataRelationship - remove relationship specified by the @NodeEntity annoted Spring entities.
> * BasicRelationship - remove relationship specified by the neo4j node types
> Tests
> =====
> camel-neo4j has a complete set of unit tests. In addition there are some integration tests that require you to run a local instance of neo4j. By default the tests will look at localhost:7474 on http://localhost:7474/db/data/
> - Initial contribution by Stephen Samuel.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (CAMEL-5483) Component for neo4j
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5483?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang reassigned CAMEL-5483:
-----------------------------------
Assignee: Willem Jiang
> Component for neo4j
> -------------------
>
> Key: CAMEL-5483
> URL: https://issues.apache.org/jira/browse/CAMEL-5483
> Project: Camel
> Issue Type: Improvement
> Reporter: stephen samuel
> Assignee: Willem Jiang
> Priority: Minor
> Fix For: 2.11.0
>
> Attachments: camel-neo4j.patch
>
>
> I have created a component for neo4j. It is a producer only and it allows you to create / remove nodes and relationships.
> ------ read me ----------
> camel-neo4j
> ========
> The camel-neo4j component allows you to treat Neo4j as a camel producer endpoint. This means you can use this component in to() calls but not from() calls. This component is backed by the Spring Data Neo4j Library.
> * As a producer, can create or remove nodes, and create or remove relationships.
> * Can support as many endpoints as required, eg for multiple databases across multiple instances.
> * Headers set for node id (for created nodes), relationship id (for created relationships)
> How to Use
> ==========
> You can use neo4j as an endpoint with the following URI.
> `neo4j:http://hostname[:port]/database`
> Then you need to set a header on each message, one of the following enum types
> ` CREATE_NODE,
> REMOVE_NODE,
> CREATE_RELATIONSHIP,
> REMOVE_RELATIONSHIP`
> Eg,
> `exchange.getIn().setHeader(Neo4jEndpoint.HEADER_OPERATION, Neo4jOperation.CREATE_NODE);`
> The body of the message is used to determine the node or relationship to manipulate. The following body types are supported:
> For CREATE_NODE:
> * null body - create default node
> * Map body - create node with the properties set from the map
> For REMOVE_NODE:
> * Long or Integer - remove node using the body as the id
> * neo4j Node instance - remove the node specified by that instance
> For CREATE_RELATIONSHIP:
> * SpringDataRelationship - create relationship specified by any @NodeEntity annoted Spring entities.
> * BasicRelationship - create relationship specified by the neo4j node types
> For REMOVE_RELATIONSHIP:
> * Long or Integer - remove relationship using the body as the id
> * SpringDataRelationship - remove relationship specified by the @NodeEntity annoted Spring entities.
> * BasicRelationship - remove relationship specified by the neo4j node types
> Tests
> =====
> camel-neo4j has a complete set of unit tests. In addition there are some integration tests that require you to run a local instance of neo4j. By default the tests will look at localhost:7474 on http://localhost:7474/db/data/
> - Initial contribution by Stephen Samuel.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-5483) Component for neo4j
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13433943#comment-13433943 ]
Willem Jiang commented on CAMEL-5483:
-------------------------------------
@Stephen,
you can send a mail to the dev with your Confluence id.
I think you will be grant with the right shortly.
> Component for neo4j
> -------------------
>
> Key: CAMEL-5483
> URL: https://issues.apache.org/jira/browse/CAMEL-5483
> Project: Camel
> Issue Type: Improvement
> Reporter: stephen samuel
> Assignee: Willem Jiang
> Priority: Minor
> Fix For: 2.11.0
>
> Attachments: camel-neo4j.patch, remove-int-tests.patch
>
>
> I have created a component for neo4j. It is a producer only and it allows you to create / remove nodes and relationships.
> ------ read me ----------
> camel-neo4j
> ========
> The camel-neo4j component allows you to treat Neo4j as a camel producer endpoint. This means you can use this component in to() calls but not from() calls. This component is backed by the Spring Data Neo4j Library.
> * As a producer, can create or remove nodes, and create or remove relationships.
> * Can support as many endpoints as required, eg for multiple databases across multiple instances.
> * Headers set for node id (for created nodes), relationship id (for created relationships)
> How to Use
> ==========
> You can use neo4j as an endpoint with the following URI.
> `neo4j:http://hostname[:port]/database`
> Then you need to set a header on each message, one of the following enum types
> ` CREATE_NODE,
> REMOVE_NODE,
> CREATE_RELATIONSHIP,
> REMOVE_RELATIONSHIP`
> Eg,
> `exchange.getIn().setHeader(Neo4jEndpoint.HEADER_OPERATION, Neo4jOperation.CREATE_NODE);`
> The body of the message is used to determine the node or relationship to manipulate. The following body types are supported:
> For CREATE_NODE:
> * null body - create default node
> * Map body - create node with the properties set from the map
> For REMOVE_NODE:
> * Long or Integer - remove node using the body as the id
> * neo4j Node instance - remove the node specified by that instance
> For CREATE_RELATIONSHIP:
> * SpringDataRelationship - create relationship specified by any @NodeEntity annoted Spring entities.
> * BasicRelationship - create relationship specified by the neo4j node types
> For REMOVE_RELATIONSHIP:
> * Long or Integer - remove relationship using the body as the id
> * SpringDataRelationship - remove relationship specified by the @NodeEntity annoted Spring entities.
> * BasicRelationship - remove relationship specified by the neo4j node types
> Tests
> =====
> camel-neo4j has a complete set of unit tests. In addition there are some integration tests that require you to run a local instance of neo4j. By default the tests will look at localhost:7474 on http://localhost:7474/db/data/
> - Initial contribution by Stephen Samuel.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-5483) Component for neo4j
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13429103#comment-13429103 ]
Willem Jiang commented on CAMEL-5483:
-------------------------------------
@stephen,
The RestNeo4jProducerCreateRelationshipIntegrationTest failed due to there is no neo4j server running, can you update your code for it?
BTW, as the neo4j is using GPL license, I still not sure if it is OK to host this component in the Apache Camel svn repository.
It should be OK for us to host it in the camel-extra.
Willem
> Component for neo4j
> -------------------
>
> Key: CAMEL-5483
> URL: https://issues.apache.org/jira/browse/CAMEL-5483
> Project: Camel
> Issue Type: Improvement
> Reporter: stephen samuel
> Priority: Minor
> Fix For: 2.11.0
>
> Attachments: camel-neo4j.patch
>
>
> I have created a component for neo4j. It is a producer only and it allows you to create / remove nodes and relationships.
> ------ read me ----------
> camel-neo4j
> ========
> The camel-neo4j component allows you to treat Neo4j as a camel producer endpoint. This means you can use this component in to() calls but not from() calls. This component is backed by the Spring Data Neo4j Library.
> * As a producer, can create or remove nodes, and create or remove relationships.
> * Can support as many endpoints as required, eg for multiple databases across multiple instances.
> * Headers set for node id (for created nodes), relationship id (for created relationships)
> How to Use
> ==========
> You can use neo4j as an endpoint with the following URI.
> `neo4j:http://hostname[:port]/database`
> Then you need to set a header on each message, one of the following enum types
> ` CREATE_NODE,
> REMOVE_NODE,
> CREATE_RELATIONSHIP,
> REMOVE_RELATIONSHIP`
> Eg,
> `exchange.getIn().setHeader(Neo4jEndpoint.HEADER_OPERATION, Neo4jOperation.CREATE_NODE);`
> The body of the message is used to determine the node or relationship to manipulate. The following body types are supported:
> For CREATE_NODE:
> * null body - create default node
> * Map body - create node with the properties set from the map
> For REMOVE_NODE:
> * Long or Integer - remove node using the body as the id
> * neo4j Node instance - remove the node specified by that instance
> For CREATE_RELATIONSHIP:
> * SpringDataRelationship - create relationship specified by any @NodeEntity annoted Spring entities.
> * BasicRelationship - create relationship specified by the neo4j node types
> For REMOVE_RELATIONSHIP:
> * Long or Integer - remove relationship using the body as the id
> * SpringDataRelationship - remove relationship specified by the @NodeEntity annoted Spring entities.
> * BasicRelationship - remove relationship specified by the neo4j node types
> Tests
> =====
> camel-neo4j has a complete set of unit tests. In addition there are some integration tests that require you to run a local instance of neo4j. By default the tests will look at localhost:7474 on http://localhost:7474/db/data/
> - Initial contribution by Stephen Samuel.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CAMEL-5483) Component for neo4j
Posted by "stephen samuel (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5483?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
stephen samuel updated CAMEL-5483:
----------------------------------
Attachment: remove-int-tests.patch
> Component for neo4j
> -------------------
>
> Key: CAMEL-5483
> URL: https://issues.apache.org/jira/browse/CAMEL-5483
> Project: Camel
> Issue Type: Improvement
> Reporter: stephen samuel
> Assignee: Willem Jiang
> Priority: Minor
> Fix For: 2.11.0
>
> Attachments: camel-neo4j.patch, remove-int-tests.patch
>
>
> I have created a component for neo4j. It is a producer only and it allows you to create / remove nodes and relationships.
> ------ read me ----------
> camel-neo4j
> ========
> The camel-neo4j component allows you to treat Neo4j as a camel producer endpoint. This means you can use this component in to() calls but not from() calls. This component is backed by the Spring Data Neo4j Library.
> * As a producer, can create or remove nodes, and create or remove relationships.
> * Can support as many endpoints as required, eg for multiple databases across multiple instances.
> * Headers set for node id (for created nodes), relationship id (for created relationships)
> How to Use
> ==========
> You can use neo4j as an endpoint with the following URI.
> `neo4j:http://hostname[:port]/database`
> Then you need to set a header on each message, one of the following enum types
> ` CREATE_NODE,
> REMOVE_NODE,
> CREATE_RELATIONSHIP,
> REMOVE_RELATIONSHIP`
> Eg,
> `exchange.getIn().setHeader(Neo4jEndpoint.HEADER_OPERATION, Neo4jOperation.CREATE_NODE);`
> The body of the message is used to determine the node or relationship to manipulate. The following body types are supported:
> For CREATE_NODE:
> * null body - create default node
> * Map body - create node with the properties set from the map
> For REMOVE_NODE:
> * Long or Integer - remove node using the body as the id
> * neo4j Node instance - remove the node specified by that instance
> For CREATE_RELATIONSHIP:
> * SpringDataRelationship - create relationship specified by any @NodeEntity annoted Spring entities.
> * BasicRelationship - create relationship specified by the neo4j node types
> For REMOVE_RELATIONSHIP:
> * Long or Integer - remove relationship using the body as the id
> * SpringDataRelationship - remove relationship specified by the @NodeEntity annoted Spring entities.
> * BasicRelationship - remove relationship specified by the neo4j node types
> Tests
> =====
> camel-neo4j has a complete set of unit tests. In addition there are some integration tests that require you to run a local instance of neo4j. By default the tests will look at localhost:7474 on http://localhost:7474/db/data/
> - Initial contribution by Stephen Samuel.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-5483) Component for neo4j
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13429003#comment-13429003 ]
Willem Jiang commented on CAMEL-5483:
-------------------------------------
Hi Stephen,
First I should say thanks for your donation, and we loves the contributors who make the camel more powerful by adding more and more components.
As you know we can't ship the third part GPL jars or host the codes which are built on the top of GPL codes due to Apache license issue. You donation could be put into [camel-extra|http://code.google.com/a/apache-extras.org/p/camel-extra/], and I'd happy to help you to commit the code.
Willem
> Component for neo4j
> -------------------
>
> Key: CAMEL-5483
> URL: https://issues.apache.org/jira/browse/CAMEL-5483
> Project: Camel
> Issue Type: Improvement
> Reporter: stephen samuel
> Priority: Minor
> Fix For: 2.11.0
>
> Attachments: camel-neo4j.patch
>
>
> I have created a component for neo4j. It is a producer only and it allows you to create / remove nodes and relationships.
> ------ read me ----------
> camel-neo4j
> ========
> The camel-neo4j component allows you to treat Neo4j as a camel producer endpoint. This means you can use this component in to() calls but not from() calls. This component is backed by the Spring Data Neo4j Library.
> * As a producer, can create or remove nodes, and create or remove relationships.
> * Can support as many endpoints as required, eg for multiple databases across multiple instances.
> * Headers set for node id (for created nodes), relationship id (for created relationships)
> How to Use
> ==========
> You can use neo4j as an endpoint with the following URI.
> `neo4j:http://hostname[:port]/database`
> Then you need to set a header on each message, one of the following enum types
> ` CREATE_NODE,
> REMOVE_NODE,
> CREATE_RELATIONSHIP,
> REMOVE_RELATIONSHIP`
> Eg,
> `exchange.getIn().setHeader(Neo4jEndpoint.HEADER_OPERATION, Neo4jOperation.CREATE_NODE);`
> The body of the message is used to determine the node or relationship to manipulate. The following body types are supported:
> For CREATE_NODE:
> * null body - create default node
> * Map body - create node with the properties set from the map
> For REMOVE_NODE:
> * Long or Integer - remove node using the body as the id
> * neo4j Node instance - remove the node specified by that instance
> For CREATE_RELATIONSHIP:
> * SpringDataRelationship - create relationship specified by any @NodeEntity annoted Spring entities.
> * BasicRelationship - create relationship specified by the neo4j node types
> For REMOVE_RELATIONSHIP:
> * Long or Integer - remove relationship using the body as the id
> * SpringDataRelationship - remove relationship specified by the @NodeEntity annoted Spring entities.
> * BasicRelationship - remove relationship specified by the neo4j node types
> Tests
> =====
> camel-neo4j has a complete set of unit tests. In addition there are some integration tests that require you to run a local instance of neo4j. By default the tests will look at localhost:7474 on http://localhost:7474/db/data/
> - Initial contribution by Stephen Samuel.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Comment Edited] (CAMEL-5483) Component for neo4j
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13429003#comment-13429003 ]
Willem Jiang edited comment on CAMEL-5483 at 8/6/12 11:55 AM:
--------------------------------------------------------------
Hi Stephen,
First I should say thanks for your donation, and we loves the contributors who make the camel more powerful by adding more and more components.
I just checked the dependency, you are using the spring-data-neo4j-rest module, as it is Apache license, I think we are OK to host it in Apache Camel. I will commit the patch shortly.
Willem
was (Author: njiang):
Hi Stephen,
First I should say thanks for your donation, and we loves the contributors who make the camel more powerful by adding more and more components.
As you know we can't ship the third part GPL jars or host the codes which are built on the top of GPL codes due to Apache license issue. You donation could be put into [camel-extra|http://code.google.com/a/apache-extras.org/p/camel-extra/], and I'd happy to help you to commit the code.
Willem
> Component for neo4j
> -------------------
>
> Key: CAMEL-5483
> URL: https://issues.apache.org/jira/browse/CAMEL-5483
> Project: Camel
> Issue Type: Improvement
> Reporter: stephen samuel
> Priority: Minor
> Fix For: 2.11.0
>
> Attachments: camel-neo4j.patch
>
>
> I have created a component for neo4j. It is a producer only and it allows you to create / remove nodes and relationships.
> ------ read me ----------
> camel-neo4j
> ========
> The camel-neo4j component allows you to treat Neo4j as a camel producer endpoint. This means you can use this component in to() calls but not from() calls. This component is backed by the Spring Data Neo4j Library.
> * As a producer, can create or remove nodes, and create or remove relationships.
> * Can support as many endpoints as required, eg for multiple databases across multiple instances.
> * Headers set for node id (for created nodes), relationship id (for created relationships)
> How to Use
> ==========
> You can use neo4j as an endpoint with the following URI.
> `neo4j:http://hostname[:port]/database`
> Then you need to set a header on each message, one of the following enum types
> ` CREATE_NODE,
> REMOVE_NODE,
> CREATE_RELATIONSHIP,
> REMOVE_RELATIONSHIP`
> Eg,
> `exchange.getIn().setHeader(Neo4jEndpoint.HEADER_OPERATION, Neo4jOperation.CREATE_NODE);`
> The body of the message is used to determine the node or relationship to manipulate. The following body types are supported:
> For CREATE_NODE:
> * null body - create default node
> * Map body - create node with the properties set from the map
> For REMOVE_NODE:
> * Long or Integer - remove node using the body as the id
> * neo4j Node instance - remove the node specified by that instance
> For CREATE_RELATIONSHIP:
> * SpringDataRelationship - create relationship specified by any @NodeEntity annoted Spring entities.
> * BasicRelationship - create relationship specified by the neo4j node types
> For REMOVE_RELATIONSHIP:
> * Long or Integer - remove relationship using the body as the id
> * SpringDataRelationship - remove relationship specified by the @NodeEntity annoted Spring entities.
> * BasicRelationship - remove relationship specified by the neo4j node types
> Tests
> =====
> camel-neo4j has a complete set of unit tests. In addition there are some integration tests that require you to run a local instance of neo4j. By default the tests will look at localhost:7474 on http://localhost:7474/db/data/
> - Initial contribution by Stephen Samuel.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-5483) Component for neo4j
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13465464#comment-13465464 ]
Claus Ibsen commented on CAMEL-5483:
------------------------------------
Whats the status of this? If there is some OSGi bundle missing, maybe create a new JIRA ticket for that, as the main work is done.
> Component for neo4j
> -------------------
>
> Key: CAMEL-5483
> URL: https://issues.apache.org/jira/browse/CAMEL-5483
> Project: Camel
> Issue Type: Improvement
> Reporter: stephen samuel
> Assignee: Willem Jiang
> Priority: Minor
> Fix For: 2.11.0
>
> Attachments: camel-neo4j.patch, remove-int-tests.patch
>
>
> I have created a component for neo4j. It is a producer only and it allows you to create / remove nodes and relationships.
> ------ read me ----------
> camel-neo4j
> ========
> The camel-neo4j component allows you to treat Neo4j as a camel producer endpoint. This means you can use this component in to() calls but not from() calls. This component is backed by the Spring Data Neo4j Library.
> * As a producer, can create or remove nodes, and create or remove relationships.
> * Can support as many endpoints as required, eg for multiple databases across multiple instances.
> * Headers set for node id (for created nodes), relationship id (for created relationships)
> How to Use
> ==========
> You can use neo4j as an endpoint with the following URI.
> `neo4j:http://hostname[:port]/database`
> Then you need to set a header on each message, one of the following enum types
> ` CREATE_NODE,
> REMOVE_NODE,
> CREATE_RELATIONSHIP,
> REMOVE_RELATIONSHIP`
> Eg,
> `exchange.getIn().setHeader(Neo4jEndpoint.HEADER_OPERATION, Neo4jOperation.CREATE_NODE);`
> The body of the message is used to determine the node or relationship to manipulate. The following body types are supported:
> For CREATE_NODE:
> * null body - create default node
> * Map body - create node with the properties set from the map
> For REMOVE_NODE:
> * Long or Integer - remove node using the body as the id
> * neo4j Node instance - remove the node specified by that instance
> For CREATE_RELATIONSHIP:
> * SpringDataRelationship - create relationship specified by any @NodeEntity annoted Spring entities.
> * BasicRelationship - create relationship specified by the neo4j node types
> For REMOVE_RELATIONSHIP:
> * Long or Integer - remove relationship using the body as the id
> * SpringDataRelationship - remove relationship specified by the @NodeEntity annoted Spring entities.
> * BasicRelationship - remove relationship specified by the neo4j node types
> Tests
> =====
> camel-neo4j has a complete set of unit tests. In addition there are some integration tests that require you to run a local instance of neo4j. By default the tests will look at localhost:7474 on http://localhost:7474/db/data/
> - Initial contribution by Stephen Samuel.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-5483) Component for neo4j
Posted by "stephen samuel (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-5483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13432939#comment-13432939 ]
stephen samuel commented on CAMEL-5483:
---------------------------------------
updated patch without int tests that need server.
> Component for neo4j
> -------------------
>
> Key: CAMEL-5483
> URL: https://issues.apache.org/jira/browse/CAMEL-5483
> Project: Camel
> Issue Type: Improvement
> Reporter: stephen samuel
> Assignee: Willem Jiang
> Priority: Minor
> Fix For: 2.11.0
>
> Attachments: camel-neo4j.patch, remove-int-tests.patch
>
>
> I have created a component for neo4j. It is a producer only and it allows you to create / remove nodes and relationships.
> ------ read me ----------
> camel-neo4j
> ========
> The camel-neo4j component allows you to treat Neo4j as a camel producer endpoint. This means you can use this component in to() calls but not from() calls. This component is backed by the Spring Data Neo4j Library.
> * As a producer, can create or remove nodes, and create or remove relationships.
> * Can support as many endpoints as required, eg for multiple databases across multiple instances.
> * Headers set for node id (for created nodes), relationship id (for created relationships)
> How to Use
> ==========
> You can use neo4j as an endpoint with the following URI.
> `neo4j:http://hostname[:port]/database`
> Then you need to set a header on each message, one of the following enum types
> ` CREATE_NODE,
> REMOVE_NODE,
> CREATE_RELATIONSHIP,
> REMOVE_RELATIONSHIP`
> Eg,
> `exchange.getIn().setHeader(Neo4jEndpoint.HEADER_OPERATION, Neo4jOperation.CREATE_NODE);`
> The body of the message is used to determine the node or relationship to manipulate. The following body types are supported:
> For CREATE_NODE:
> * null body - create default node
> * Map body - create node with the properties set from the map
> For REMOVE_NODE:
> * Long or Integer - remove node using the body as the id
> * neo4j Node instance - remove the node specified by that instance
> For CREATE_RELATIONSHIP:
> * SpringDataRelationship - create relationship specified by any @NodeEntity annoted Spring entities.
> * BasicRelationship - create relationship specified by the neo4j node types
> For REMOVE_RELATIONSHIP:
> * Long or Integer - remove relationship using the body as the id
> * SpringDataRelationship - remove relationship specified by the @NodeEntity annoted Spring entities.
> * BasicRelationship - remove relationship specified by the neo4j node types
> Tests
> =====
> camel-neo4j has a complete set of unit tests. In addition there are some integration tests that require you to run a local instance of neo4j. By default the tests will look at localhost:7474 on http://localhost:7474/db/data/
> - Initial contribution by Stephen Samuel.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira