You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Geert Schuring (JIRA)" <ji...@apache.org> on 2010/10/24 10:02:40 UTC

[jira] Created: (CAMEL-3271) packageScan does not work with camel-blueprint

packageScan does not work with camel-blueprint
----------------------------------------------

                 Key: CAMEL-3271
                 URL: https://issues.apache.org/activemq/browse/CAMEL-3271
             Project: Apache Camel
          Issue Type: Bug
          Components: camel-blueprint
    Affects Versions: 2.4.0
         Environment: Fuse servicemix 4.3
            Reporter: Geert Schuring
             Fix For: 2.5.0


Using the following xml code does not activate the Java Camel routes that can be found in the given package;

<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
	<camelContext xmlns="http://camel.apache.org/schema/blueprint">
		<packageScan>
			<package>eu.schuring.camel.blueprint.route</package>
		</packageScan>
	</camelContext>
</blueprint>

Attached is a usecase that should output messages from both a native blueprint DSL route and a Java DSL route activated by the xml section above. I've attached both the bundle and a source jar.

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


[jira] Commented: (CAMEL-3271) packageScan does not work with camel-blueprint

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

Claus Ibsen commented on CAMEL-3271:
------------------------------------

No I dont know of any examples. Blueprint is still in the works in a few spots, so some features may be not working / missing.

> packageScan does not work with camel-blueprint
> ----------------------------------------------
>
>                 Key: CAMEL-3271
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3271
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-blueprint
>    Affects Versions: 2.4.0
>         Environment: Fuse servicemix 4.3
>            Reporter: Geert Schuring
>            Priority: Minor
>             Fix For: 2.6.0
>
>         Attachments: camel-blueprint-0.0.1-SNAPSHOT-sources.jar, camel-blueprint-0.0.1-SNAPSHOT.jar
>
>
> Using the following xml code does not activate the Java Camel routes that can be found in the given package;
> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
> 	<camelContext xmlns="http://camel.apache.org/schema/blueprint">
> 		<packageScan>
> 			<package>eu.schuring.camel.blueprint.route</package>
> 		</packageScan>
> 	</camelContext>
> </blueprint>
> Attached is a usecase that should output messages from both a native blueprint DSL route and a Java DSL route activated by the xml section above. I've attached both the bundle and a source jar.

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


[jira] Updated: (CAMEL-3271) packageScan does not work with camel-blueprint

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

Geert Schuring updated CAMEL-3271:
----------------------------------

    Attachment: camel-blueprint-0.0.1-SNAPSHOT-sources.jar
                camel-blueprint-0.0.1-SNAPSHOT.jar

> packageScan does not work with camel-blueprint
> ----------------------------------------------
>
>                 Key: CAMEL-3271
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3271
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-blueprint
>    Affects Versions: 2.4.0
>         Environment: Fuse servicemix 4.3
>            Reporter: Geert Schuring
>             Fix For: 2.5.0
>
>         Attachments: camel-blueprint-0.0.1-SNAPSHOT-sources.jar, camel-blueprint-0.0.1-SNAPSHOT.jar
>
>
> Using the following xml code does not activate the Java Camel routes that can be found in the given package;
> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
> 	<camelContext xmlns="http://camel.apache.org/schema/blueprint">
> 		<packageScan>
> 			<package>eu.schuring.camel.blueprint.route</package>
> 		</packageScan>
> 	</camelContext>
> </blueprint>
> Attached is a usecase that should output messages from both a native blueprint DSL route and a Java DSL route activated by the xml section above. I've attached both the bundle and a source jar.

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


[jira] Updated: (CAMEL-3271) packageScan does not work with camel-blueprint

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

Claus Ibsen updated CAMEL-3271:
-------------------------------

         Priority: Minor  (was: Major)
    Fix Version/s:     (was: 2.5.0)
                   2.6.0

Can you try using <package> instead of <packageScan>. 

<package> was the old way before we introduced <packageScan> which has the filters.


> packageScan does not work with camel-blueprint
> ----------------------------------------------
>
>                 Key: CAMEL-3271
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3271
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-blueprint
>    Affects Versions: 2.4.0
>         Environment: Fuse servicemix 4.3
>            Reporter: Geert Schuring
>            Priority: Minor
>             Fix For: 2.6.0
>
>         Attachments: camel-blueprint-0.0.1-SNAPSHOT-sources.jar, camel-blueprint-0.0.1-SNAPSHOT.jar
>
>
> Using the following xml code does not activate the Java Camel routes that can be found in the given package;
> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
> 	<camelContext xmlns="http://camel.apache.org/schema/blueprint">
> 		<packageScan>
> 			<package>eu.schuring.camel.blueprint.route</package>
> 		</packageScan>
> 	</camelContext>
> </blueprint>
> Attached is a usecase that should output messages from both a native blueprint DSL route and a Java DSL route activated by the xml section above. I've attached both the bundle and a source jar.

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


[jira] Commented: (CAMEL-3271) packageScan does not work with camel-blueprint

Posted by "Johan Edstrom (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-3271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=62881#action_62881 ] 

Johan Edstrom commented on CAMEL-3271:
--------------------------------------

Dug around in the code some yesterday, some TLC is needed.
It should be quite easy to map to what the camel-spring stuff does as well as just inspecting the blueprint container.


> packageScan does not work with camel-blueprint
> ----------------------------------------------
>
>                 Key: CAMEL-3271
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3271
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-blueprint
>    Affects Versions: 2.4.0
>         Environment: Fuse servicemix 4.3
>            Reporter: Geert Schuring
>            Priority: Minor
>             Fix For: 2.6.0
>
>         Attachments: camel-blueprint-0.0.1-SNAPSHOT-sources.jar, camel-blueprint-0.0.1-SNAPSHOT.jar
>
>
> Using the following xml code does not activate the Java Camel routes that can be found in the given package;
> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
> 	<camelContext xmlns="http://camel.apache.org/schema/blueprint">
> 		<packageScan>
> 			<package>eu.schuring.camel.blueprint.route</package>
> 		</packageScan>
> 	</camelContext>
> </blueprint>
> Attached is a usecase that should output messages from both a native blueprint DSL route and a Java DSL route activated by the xml section above. I've attached both the bundle and a source jar.

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


[jira] Commented: (CAMEL-3271) packageScan does not work with camel-blueprint

Posted by "Geert Schuring (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-3271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=62792#action_62792 ] 

Geert Schuring commented on CAMEL-3271:
---------------------------------------

I've tried using just <package> without being nested in <packageScan>, but the result is the same: The route is not activated, but blueprint doesn't complain about the given XML either. So I have no idea what exactly is wrong.

@Claus: Do you know of any working example that uses either <package> or <packageScan> in blueprint?

> packageScan does not work with camel-blueprint
> ----------------------------------------------
>
>                 Key: CAMEL-3271
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3271
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-blueprint
>    Affects Versions: 2.4.0
>         Environment: Fuse servicemix 4.3
>            Reporter: Geert Schuring
>            Priority: Minor
>             Fix For: 2.6.0
>
>         Attachments: camel-blueprint-0.0.1-SNAPSHOT-sources.jar, camel-blueprint-0.0.1-SNAPSHOT.jar
>
>
> Using the following xml code does not activate the Java Camel routes that can be found in the given package;
> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
> 	<camelContext xmlns="http://camel.apache.org/schema/blueprint">
> 		<packageScan>
> 			<package>eu.schuring.camel.blueprint.route</package>
> 		</packageScan>
> 	</camelContext>
> </blueprint>
> Attached is a usecase that should output messages from both a native blueprint DSL route and a Java DSL route activated by the xml section above. I've attached both the bundle and a source jar.

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