You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by netflexity <mf...@netflexity.com> on 2007/11/08 14:08:51 UTC
JMS component with JCA processor for Weblogic
1. I would like to know if this what I am looking for. I have the following
flow: jms->bean(db save)
Right now, if bean fails to save message to db, message is lost.
Will JCA put message back on a queue?
2. Anybody has any kind of sample of such a setup?
Thank a lot!
--
View this message in context: http://www.nabble.com/JMS-component-with-JCA-processor-for-Weblogic-tf4770779s12049.html#a13646590
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: JMS component with JCA processor for Weblogic
Posted by David Holroyd <da...@badgers-in-foil.co.uk>.
On Thu, Nov 08, 2007 at 09:21:02AM -0800, netflexity wrote:
> David, who placed and how those objects in JNDI (smx/BootstrapContext,
> smx/ResourceAdapter)?
I added references to the existing beans, in $SMX/conf/jndi.xml
...
<entry key="java:comp/env/smx/BootstrapContext" value-ref="bootstapContext"/>
...
etc.
ta,
dave
--
http://david.holroyd.me.uk/
Re: JMS component with JCA processor for Weblogic
Posted by netflexity <mf...@netflexity.com>.
David, who placed and how those objects in JNDI (smx/BootstrapContext,
smx/ResourceAdapter)?
Thanks.
-Max
David Holroyd wrote:
>
> On Thu, Nov 08, 2007 at 05:08:51AM -0800, netflexity wrote:
>>
>> 1. I would like to know if this what I am looking for. I have the
>> following
>> flow: jms->bean(db save)
>> Right now, if bean fails to save message to db, message is lost.
>> Will JCA put message back on a queue?
>
> It's possible.
>
>> 2. Anybody has any kind of sample of such a setup?
>
> I posted an example xbean.xml configuration for a JMS service unit here,
>
>
> http://www.nabble.com/Solved%3A-Handling-unreliable-binding-components-p13558245s12049.html
>
> In the receiving component, I did something along the lines of
>
> try {
> doStuff(...);
> } catch (TemporaryFailureException e) {
>
> ((TransactionManager)getContext().getTransactionManager()).setRollbackOnly();
> } catch (PermanentFailureException e) {
> ..generate a fault..
> }
>
> to explicitly rollback. There is a rollbackOnError attribute that I saw
> mentioned somewhere too, but I didn't try that yet.
>
>
> ta,
> dave
>
> --
> http://david.holroyd.me.uk/
>
>
--
View this message in context: http://www.nabble.com/JMS-component-with-JCA-processor-for-Weblogic-tf4770779s12049.html#a13651476
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: JMS component with JCA processor for Weblogic
Posted by David Holroyd <da...@badgers-in-foil.co.uk>.
On Thu, Nov 08, 2007 at 05:08:51AM -0800, netflexity wrote:
>
> 1. I would like to know if this what I am looking for. I have the following
> flow: jms->bean(db save)
> Right now, if bean fails to save message to db, message is lost.
> Will JCA put message back on a queue?
It's possible.
> 2. Anybody has any kind of sample of such a setup?
I posted an example xbean.xml configuration for a JMS service unit here,
http://www.nabble.com/Solved%3A-Handling-unreliable-binding-components-p13558245s12049.html
In the receiving component, I did something along the lines of
try {
doStuff(...);
} catch (TemporaryFailureException e) {
((TransactionManager)getContext().getTransactionManager()).setRollbackOnly();
} catch (PermanentFailureException e) {
..generate a fault..
}
to explicitly rollback. There is a rollbackOnError attribute that I saw
mentioned somewhere too, but I didn't try that yet.
ta,
dave
--
http://david.holroyd.me.uk/