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

[jira] Created: (CAMEL-434) Location of Spring and Camel configs should be configurable in Camel Maven Plugin

Location of Spring and Camel configs should be configurable in Camel Maven Plugin
---------------------------------------------------------------------------------

                 Key: CAMEL-434
                 URL: https://issues.apache.org/activemq/browse/CAMEL-434
             Project: Apache Camel
          Issue Type: Improvement
          Components: tooling
    Affects Versions: 1.4.0
            Reporter: Martin Gilday
             Fix For: 1.4.0


The camel:run and camel:embeddable operations use META-INF/spring/*.xml as the default for the Spring ApplicationContext.  It should be possible to change this through the plugin configuration.

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


[jira] Commented: (CAMEL-434) Location of Spring and Camel configs should be configurable in Camel Maven Plugin

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-434?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=42018#action_42018 ] 

Willem Jiang commented on CAMEL-434:
------------------------------------

The URI will be split by ";" and  feed to the ClassPathXmlApplicationContext as a construction parameter.
{code}
     protected AbstractApplicationContext createDefaultApplicationContext() {
        String[] args = getApplicationContextUri().split(";");
        return new ClassPathXmlApplicationContext(args);
    }
{code}

so if you want to specfiy more than one file, it could be "META-INF/spring/*.xml;file-in-the-class.file"

> Location of Spring and Camel configs should be configurable in Camel Maven Plugin
> ---------------------------------------------------------------------------------
>
>                 Key: CAMEL-434
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-434
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: tooling
>    Affects Versions: 1.4.0
>            Reporter: Martin Gilday
>            Assignee: Willem Jiang
>             Fix For: 1.4.0
>
>
> The camel:run and camel:embeddable operations use META-INF/spring/*.xml as the default for the Spring ApplicationContext.  It should be possible to change this through the plugin configuration.

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


[jira] Commented: (CAMEL-434) Location of Spring and Camel configs should be configurable in Camel Maven Plugin

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

Claus Ibsen commented on CAMEL-434:
-----------------------------------

Williem

Please update the wiki also:
http://activemq.apache.org/camel/camel-maven-plugin.html

> Location of Spring and Camel configs should be configurable in Camel Maven Plugin
> ---------------------------------------------------------------------------------
>
>                 Key: CAMEL-434
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-434
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: tooling
>    Affects Versions: 1.4.0
>            Reporter: Martin Gilday
>            Assignee: Willem Jiang
>             Fix For: 1.4.0
>
>
> The camel:run and camel:embeddable operations use META-INF/spring/*.xml as the default for the Spring ApplicationContext.  It should be possible to change this through the plugin configuration.

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


[jira] Commented: (CAMEL-434) Location of Spring and Camel configs should be configurable in Camel Maven Plugin

Posted by "Martin Gilday (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-434?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=42015#action_42015 ] 

Martin Gilday commented on CAMEL-434:
-------------------------------------

Does the URI take all the usual Spring styles?  i.e classpath:/ paths and *.xml expressions?  Can you specify more than one file?

> Location of Spring and Camel configs should be configurable in Camel Maven Plugin
> ---------------------------------------------------------------------------------
>
>                 Key: CAMEL-434
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-434
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: tooling
>    Affects Versions: 1.4.0
>            Reporter: Martin Gilday
>            Assignee: Willem Jiang
>             Fix For: 1.4.0
>
>
> The camel:run and camel:embeddable operations use META-INF/spring/*.xml as the default for the Spring ApplicationContext.  It should be possible to change this through the plugin configuration.

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


[jira] Resolved: (CAMEL-434) Location of Spring and Camel configs should be configurable in Camel Maven Plugin

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

Willem Jiang resolved CAMEL-434.
--------------------------------

    Resolution: Fixed

Here is the example
      <!-- Allows the routes to be run via 'mvn camel:run' -->
      <plugin>
        <groupId>org.apache.camel</groupId>
        <artifactId>camel-maven-plugin</artifactId>
        <configuration>
           <applicationContextUri>camel-context.xml</applicationContextUri>
        </configuration>
       </plugin>

> Location of Spring and Camel configs should be configurable in Camel Maven Plugin
> ---------------------------------------------------------------------------------
>
>                 Key: CAMEL-434
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-434
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: tooling
>    Affects Versions: 1.4.0
>            Reporter: Martin Gilday
>            Assignee: Willem Jiang
>             Fix For: 1.4.0
>
>
> The camel:run and camel:embeddable operations use META-INF/spring/*.xml as the default for the Spring ApplicationContext.  It should be possible to change this through the plugin configuration.

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


[jira] Assigned: (CAMEL-434) Location of Spring and Camel configs should be configurable in Camel Maven Plugin

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

Willem Jiang reassigned CAMEL-434:
----------------------------------

    Assignee: Willem Jiang

> Location of Spring and Camel configs should be configurable in Camel Maven Plugin
> ---------------------------------------------------------------------------------
>
>                 Key: CAMEL-434
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-434
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: tooling
>    Affects Versions: 1.4.0
>            Reporter: Martin Gilday
>            Assignee: Willem Jiang
>             Fix For: 1.4.0
>
>
> The camel:run and camel:embeddable operations use META-INF/spring/*.xml as the default for the Spring ApplicationContext.  It should be possible to change this through the plugin configuration.

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


[jira] Commented: (CAMEL-434) Location of Spring and Camel configs should be configurable in Camel Maven Plugin

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-434?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=42014#action_42014 ] 

Willem Jiang commented on CAMEL-434:
------------------------------------

The wiki is also updated.

> Location of Spring and Camel configs should be configurable in Camel Maven Plugin
> ---------------------------------------------------------------------------------
>
>                 Key: CAMEL-434
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-434
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: tooling
>    Affects Versions: 1.4.0
>            Reporter: Martin Gilday
>            Assignee: Willem Jiang
>             Fix For: 1.4.0
>
>
> The camel:run and camel:embeddable operations use META-INF/spring/*.xml as the default for the Spring ApplicationContext.  It should be possible to change this through the plugin configuration.

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


[jira] Closed: (CAMEL-434) Location of Spring and Camel configs should be configurable in Camel Maven Plugin

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

Willem Jiang closed CAMEL-434.
------------------------------


> Location of Spring and Camel configs should be configurable in Camel Maven Plugin
> ---------------------------------------------------------------------------------
>
>                 Key: CAMEL-434
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-434
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: tooling
>    Affects Versions: 1.4.0
>            Reporter: Martin Gilday
>            Assignee: Willem Jiang
>             Fix For: 1.4.0
>
>
> The camel:run and camel:embeddable operations use META-INF/spring/*.xml as the default for the Spring ApplicationContext.  It should be possible to change this through the plugin configuration.

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