You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Andreas Kuhtz (JIRA)" <ji...@apache.org> on 2008/06/04 16:43:00 UTC

[jira] Created: (AMQ-1768) Allow configuration of ActiveMQConfiguration in ActiveMQComponent with Spring

Allow configuration of ActiveMQConfiguration in ActiveMQComponent with Spring
-----------------------------------------------------------------------------

                 Key: AMQ-1768
                 URL: https://issues.apache.org/activemq/browse/AMQ-1768
             Project: ActiveMQ
          Issue Type: Bug
    Affects Versions: 5.1.0
         Environment: JDK5, Windows XP, Camel 1.4-SNAPSHOT
            Reporter: Andreas Kuhtz
             Fix For: 5.2.0
         Attachments: amq-XXXX.patch

Because ActiveMQComponent overwrites the getConfiguration() of JmsComponent and declares the return value of type ActiveMQConfiguration instead of JmsConfiguration the configuration via xml fails.

Therefore the following configuration is not valid.

{code:xml} 
<bean id="jmsConfig" class="org.apache.activemq.camel.component.ActiveMQConfiguration">
  <property name="connectionFactory" ref="jmsConnectionFactory"/>
  <property name="concurrentConsumers" value="1"/>
  <property name="exceptionListener" ref="jmsExceptionListener" />
</bean>

<bean id="activemq" class="org.apache.activemq.camel.component.ActiveMQComponent" destroy-method="stop" >
  <property name="connectionFactory" ref="jmsConnectionFactory" />
  <property name="taskExecutor" ref="myTaskExecutor" />
  <property name="usePooledConnection" value="true" />
  <property name="configuration" ref="jmsConfig"/>
</bean>
{code} 

The patch shows the changes that are necessary to allow this.

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


[jira] Resolved: (AMQ-1768) Allow configuration of ActiveMQConfiguration in ActiveMQComponent with Spring

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

Rob Davies resolved AMQ-1768.
-----------------------------

    Resolution: Fixed

Fixed by SVN revision 663689

> Allow configuration of ActiveMQConfiguration in ActiveMQComponent with Spring
> -----------------------------------------------------------------------------
>
>                 Key: AMQ-1768
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1768
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 5.1.0
>         Environment: JDK5, Windows XP, Camel 1.4-SNAPSHOT
>            Reporter: Andreas Kuhtz
>            Assignee: Rob Davies
>             Fix For: 5.2.0
>
>         Attachments: amq-XXXX.patch
>
>
> Because ActiveMQComponent overwrites the getConfiguration() of JmsComponent and declares the return value of type ActiveMQConfiguration instead of JmsConfiguration the configuration via xml fails.
> Therefore the following configuration is not valid.
> {code:xml} 
> <bean id="jmsConfig" class="org.apache.activemq.camel.component.ActiveMQConfiguration">
>   <property name="connectionFactory" ref="jmsConnectionFactory"/>
>   <property name="concurrentConsumers" value="1"/>
>   <property name="exceptionListener" ref="jmsExceptionListener" />
> </bean>
> <bean id="activemq" class="org.apache.activemq.camel.component.ActiveMQComponent" destroy-method="stop" >
>   <property name="connectionFactory" ref="jmsConnectionFactory" />
>   <property name="taskExecutor" ref="myTaskExecutor" />
>   <property name="usePooledConnection" value="true" />
>   <property name="configuration" ref="jmsConfig"/>
> </bean>
> {code} 
> The patch shows the changes that are necessary to allow this.

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


[jira] Assigned: (AMQ-1768) Allow configuration of ActiveMQConfiguration in ActiveMQComponent with Spring

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

Rob Davies reassigned AMQ-1768:
-------------------------------

    Assignee: Rob Davies

> Allow configuration of ActiveMQConfiguration in ActiveMQComponent with Spring
> -----------------------------------------------------------------------------
>
>                 Key: AMQ-1768
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1768
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 5.1.0
>         Environment: JDK5, Windows XP, Camel 1.4-SNAPSHOT
>            Reporter: Andreas Kuhtz
>            Assignee: Rob Davies
>             Fix For: 5.2.0
>
>         Attachments: amq-XXXX.patch
>
>
> Because ActiveMQComponent overwrites the getConfiguration() of JmsComponent and declares the return value of type ActiveMQConfiguration instead of JmsConfiguration the configuration via xml fails.
> Therefore the following configuration is not valid.
> {code:xml} 
> <bean id="jmsConfig" class="org.apache.activemq.camel.component.ActiveMQConfiguration">
>   <property name="connectionFactory" ref="jmsConnectionFactory"/>
>   <property name="concurrentConsumers" value="1"/>
>   <property name="exceptionListener" ref="jmsExceptionListener" />
> </bean>
> <bean id="activemq" class="org.apache.activemq.camel.component.ActiveMQComponent" destroy-method="stop" >
>   <property name="connectionFactory" ref="jmsConnectionFactory" />
>   <property name="taskExecutor" ref="myTaskExecutor" />
>   <property name="usePooledConnection" value="true" />
>   <property name="configuration" ref="jmsConfig"/>
> </bean>
> {code} 
> The patch shows the changes that are necessary to allow this.

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