Thank you Guillaume,
But it seams I am using seda and still sends the same message:
Conf/servicemix.xml
<beans xmlns:sm="http://servicemix.apache.org/config/1.0">
<!-- the JBI container -->
<sm:container id="jbi"
rootDir="./wdir"
MBeanServer="#mbeanServer"
installationDirPath="./install"
deploymentDirPath="./deploy"
dumpStats="true"
statsInterval="10"
flowName="seda"
transactionManager="#transactionManager">
<sm:activationSpecs>
</sm:activationSpecs>
</sm:container>
<bean id="transactionContextManager"
class="org.jencks.factory.TransactionContextManagerFactoryBean"/>
<bean id="transactionManager"
class="org.jencks.factory.GeronimoTransactionManagerFactoryBean" />
<!-- JMX server and connector -->
<bean id="mbeanServer"
class="org.springframework.jmx.support.MBeanServerFactoryBean"/>
<bean id="registry" class="mx4j.tools.naming.NamingService"
init-method="start">
<property name="port" value="61699"/>
</bean>
<bean id="serverConnector"
class="org.springframework.jmx.support.ConnectorServerFactoryBean"
depends-on="registry">
<property name="objectName" value="connector:name=rmi"/>
<property name="serviceUrl"
value="service:jmx:rmi:///jndi/rmi://localhost:61699/jmxrmi"/>
<property name="threaded" value="true"/>
<property name="daemon" value="true"/>
<property name="environment">
<map>
<!-- Uncomment the following line to enable authentication for
jmx
<entry key="jmx.remote.authenticator"
value-ref="jmxRemoteAuthenticator" />
-->
</map>
</property>
</bean>
<bean id="jmxRemoteAuthenticator"
class="mx4j.tools.remote.PasswordAuthenticator">
<constructor-arg>
<bean factory-method="getInputStream"
factory-bean="jmxRemotePasswords" />
</constructor-arg>
</bean>
<bean id="jmxRemotePasswords" factory-method="getResource"
factory-bean="resourceLoader">
<constructor-arg value="classpath:passwords.txt"/>
</bean>
<bean id="resourceLoader"
class="org.springframework.core.io.DefaultResourceLoader" />
<!-- message broker -->
<bean id="broker" class="org.apache.activemq.xbean.BrokerFactoryBean"
depends-on="mbeanServer">
<property name="config" value="classpath:activemq.xml"/>
</bean>
<bean id="jmsFactory"
class="org.apache.activemq.pool.PooledConnectionFactory">
<property name="connectionFactory">
<bean class="org.apache.activemq.ActiveMQConnectionFactory">
<property name="brokerURL" value="tcp://localhost:61616"/>
</bean>
</property>
</bean>
</beans>
My App. conf. file
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:sm="http://servicemix.apache.org/config/1.0"
xmlns:db="urn:colorado:cse:soa:disbursement"
xmlns:pa="urn:colorado:cse:soa:person"
xmlns:em="urn:colorado:cse:soa:email"
xmlns:usr="urn:colorado:cse:soa:user">
<classpath>
<location>.</location>
</classpath>
<sm:serviceunit id="jbi">
<sm:activationSpecs>
<sm:activationSpec componentName="DisbursementService"
destinationService="db:DisbursementService"
destinationOperation="db:createDisbursement">
<sm:component>
<bean
class="org.apache.servicemix.components.jms.JmsServiceComponent">
<property name="template">
<bean class="org.springframework.jms.core.JmsTemplate">
<property name="connectionFactory" ref="jmsFactory"
/>
<property name="defaultDestinationName"
value="colorado.cse.disbursement.source" />
<property name="pubSubDomain" value="false" />
</bean>
</property>
</bean>
</sm:component>
</sm:activationSpec>
<sm:activationSpec componentName="PersonService" service="pa:Person"
endpoint="person" interfaceName="pa:Person">
<sm:component>
<bean class="gov.colorado.cse.person.component.PersonComponent">
<property name="businessObject"><ref
local="personBusinessObject"/></property>
</bean>
</sm:component>
</sm:activationSpec>
<sm:activationSpec componentName="UserService" service="usr:User"
endpoint="user" interfaceName="usr:User">
<sm:component>
<bean class="gov.colorado.cse.user.component.UserComponent">
<property name="businessObject"><ref
local="userBusinessObject"/></property>
</bean>
</sm:component>
</sm:activationSpec>
<sm:activationSpec componentName="EmailService"
service="em:Email" endpoint="email" interfaceName="em:Email">
<sm:component>
<bean class="gov.colorado.cse.email.component.EmailComponent">
<property name="sender" ref="eCseEmailSender"/>
</bean>
</sm:component>
</sm:activationSpec>
</sm:activationSpecs>
</sm:serviceunit>
....
<bean id="jmsFactory"
class="org.apache.activemq.pool.PooledConnectionFactory">
<property name="connectionFactory">
<bean class="org.apache.activemq.ActiveMQConnectionFactory">
<property name="brokerURL" value="tcp://localhost:61616" />
</bean>
</property>
</bean>
</beans>
>>> [EMAIL PROTECTED] 04/17/06 5:15 PM >>>
Redelivery only occurs if you use xa transactions on the jca flow and
the transaction is rolled back. In this case, the exact same message
will be redelivered by ActiveMQ (this can be configured). Else you
will have to resend the exchange "manually" using the
JbiContainer#resendExchange(MessageExchange) method.
Cheers,
Guillaume Nodet
On 4/17/06, Ricardo Barretto <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I am developing an application very similar to the bpel-bpe example,
> but if at one point of the process I get an exception, the preceding
> different messages will be like if servicemix is trying to reprocess
the
> faulty one. I would say this part of the "Reliable Message" provided
by
> ActiveMQ, but is there a way to discard this message? And what
happens
> with the new messages I sent?
>
>
> Thank you in advance, Ricardo
>
>
>