JCA sample implementations

守給你的承諾、 提交于 2019-11-30 11:09:53

问题


I need to develop a JCA adapter and am looking for some references. I searched on Amazon, and found only 2 JCA books and one of them has pretty bad comments. So I guess that left me with only one book to refer to.

So I would like to know if there is any sample implementation of JCA adapter that will help my development. I searched on Google but managed to find some very simple examples only. Thanks in advance.


回答1:


When I developed adapter I used example from JBoss. I believe this is the link:

http://docs.jboss.org/jbossas/docs/Server_Configuration_Guide/4/html/An_Overview_of_the_JBossCX_Architecture-A_Sample_Skeleton_JCA_Resource_Adaptor.html

Good luck. Be ready to have the hard days! :(




回答2:


Inbound sample at google code: http://code.google.com/p/jca-sockets/

Other outbound on javaworld: Build your own J2EE Connector Architecture adapter

Hope they could help.

As Alex said, 'Have the hard days!':)




回答3:


The link that Alex provided seems to be a useful sample implementation. But I couldn't find the source code at the link mentioned in that document.

With the help of Google, I found source codes of that sample JCA adapter at below link. In case if there is anyone looking for the same thing, I posted it here.

http://lists.jboss.org/pipermail/jboss-cvs-commits/2006-November/011464.html




回答4:


You can also consider Adam Bien's connectorZ.

If you want something more specific to Jboss you may consider Red Hat's Iron Jacamar, which is Jboss JCA implementation. There are releases compatible with JCA 1.0, 1.5, 1,6 and 1.7 with each one being backwards compatible. The download includes also a sample directory with 4 simple examples. Also at Iron Jacamar you can find a very interesting code generator and a plugin for eclipse, both of which are able to generate complete JCA adapter skeletons.




回答5:


I had also big problems to find examples and documentation. I wrote a small tcp server inbound resource adapter example for wildfly10 and EE7. I used this examples as a base for my questions in this forum. I described in the readme.md the use of the Iron Jacamar JCA source generator. This tool is very useful. I put also useful documentation links to the end of the description.



来源:https://stackoverflow.com/questions/4385373/jca-sample-implementations

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!