-
1. Re: JMS binding vs JCA binding with JMS endpoint
wsimons Feb 22, 2015 4:02 PM (in response to ozkin)https://abhirockzz.wordpress.com/2015/01/19/mdb-jms-and-vice-versa/
http://www.ibm.com/developerworks/websphere/library/techarticles/1009_boruwa/1009_boruwa.html
http://www.developerfeed.com/understanding-jca-implementation-and-deployment-weblogic
you can use jca technology with jboss, weblogic and websphere it can help with old legacy software
and it is tied to the container
here is the wizard directions http://docs.oracle.com/cd/E19509-01/820-6204/jbidevjmsjca_id/index.html
-
2. Re: JMS binding vs JCA binding with JMS endpoint
ozkin Feb 23, 2015 12:55 PM (in response to wsimons)Thanks for the links. I understand that JCA is useful for integrating with legacy systems and whatnot, and that it can be used with different containers.
But my question was specifically about JCA binding with JMS endpoint in Switchyard.
There is also a pure JMS binding in Switchyard. So, if one needs to use asynchronous messaging and the requirement is JMS then what to prefer for the implementation: JMS binding or JCA+JMS binding?
-
3. Re: JMS binding vs JCA binding with JMS endpoint
wsimons Feb 23, 2015 3:39 PM (in response to ozkin)Max
I will try to answer your question the best I can....Which is better plain jms or jca?
It really is a matter what your requirements are....
For example suppose you were a software company that wanted to develop custom
software?
Than you would consider jca-weblogic, websphere, jboss because it works
Here is my two cents.....
Frankly, I love jbpm or bpmn(I love architectural patterns -workflow ) and it seems to me switchyard is following closely what spring activiti so yes jca ra because it makes life easier for my messages
I want something heavy weight to control my messages, a container active mq etc
I believe a system should be able to help you perform system diagnostics.etc , checking to see how bad my code is...or where can I improve...cars, water heaters, have that capacity. I need all the help
I can get....Plain jms just
does not seem to offer anything even close that...I hate flying blind...
jca is the way to go
.
By the way, I really don't think their is right answer to your question it is really a matter of opinion
and your requirements.
anyway....... thank you for allowing to voice my opinion....It is strictly a matter of taste. .
-
4. Re: JMS binding vs JCA binding with JMS endpoint
igarashitm Feb 24, 2015 3:30 AM (in response to ozkin)Hi Max,
If you don't have any specific reason to use JCA binding, then 1st option for you is camel-jms (I would not call it "plain JMS" though, as it's using camel-jms and depends on spring-jms underneath). Internally JCA inbound is using JCA inflow manner unlike camel-jms is just using ConnectionFactory. For outbound JCA also uses ConnectionFactory and no significant difference functionally. Note that JCA is not only for JMS and the Endpoint/Processor is pluggable, so you can implement your own.
hth,
Tomo
-
5. Re: JMS binding vs JCA binding with JMS endpoint
ozkin Feb 24, 2015 3:58 AM (in response to ozkin)Thanks William and Tomo. You provided useful insights.
I will have to look deeper into JCA (to check those extra stuff it provides on top) but for now it seems camel-JMS is good enough for us for the existing requirements.
-
6. Re: JMS binding vs JCA binding with JMS endpoint
jorgemoralespou_2 Feb 24, 2015 9:12 AM (in response to ozkin)One advantage of JCA should be pooling and transaction support out of the box per the JCA spec, as well as security, which I dont know how easy would be with the JMS component. But maybe I'm wrong and igarashitm might correct me.
-
7. Re: JMS binding vs JCA binding with JMS endpoint
kcbabo Feb 24, 2015 7:46 PM (in response to jorgemoralespou_2)Jorge and Tomo have already hinted at this, but just to be clear : the JCA gateway is integrated with JBoss AS / EAP / Wildfly for message inflow, which means it's managed by the underlying container. If you are looking at tight integration and configuration for inflow via JBoss AS configuration, then it's a good option for that. The camel-jms component will have more flexibility in terms of Camel-specific options, but everything will be configured through Camel (including thread pools and whatnot).
There's no correct answer here. If you don't care about any extra options that camel-jms provides, I would go with JCA. If you want those options or just feel more comfortable configuring messaging through Camel config, go with camel-jms.
-
8. Re: JMS binding vs JCA binding with JMS endpoint
igarashitm Feb 24, 2015 8:19 PM (in response to jorgemoralespou_2)Connection pooling and XA transaction is served by resource adapter itself, and you can receive that benefits if you just use the XA ConnectionFactory exposed by the resource adapter. And there is a authentication facility on plain JMS ConnectionFactory, which is available via camel-jms property.
-
9. Re: JMS binding vs JCA binding with JMS endpoint
igarashitm Feb 24, 2015 8:23 PM (in response to kcbabo)TBH, I would go with JCA too, just because I don't like spring-jms. Sometimes it's hard to debug into spring world if I hit a problem (especially transaction related problem). But as I wrote some code for JCA binding, I think my opinion here is not fair