java JCA 示例实现

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4385373/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-30 06:07:43  来源:igfitidea点击:

JCA sample implementations

javajca

提问by K Hein

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.

我需要开发一个 JCA 适配器并且正在寻找一些参考资料。我在亚马逊上搜索,发现只有 2 本 JCA 书籍,其中一本的评论非常糟糕。所以我想这让我只有一本书可以参考。

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.

所以我想知道是否有任何 JCA 适配器的示例实现可以帮助我的开发。我在谷歌上搜索,但只找到了一些非常简单的例子。提前致谢。

采纳答案by AlexR

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

当我开发适配器时,我使用了 JBoss 的示例。我相信这是链接:

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

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! :(

祝你好运。准备好度过艰难的日子吧!:(

回答by u290629

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

谷歌代码的入站示例:http: //code.google.com/p/jca-sockets/

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

javaworld 上的其他出站:构建您自己的 J2EE 连接器架构适配器

Hope they could help.

希望他们能提供帮助。

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

正如亚历克斯所说,'辛苦了!':)

回答by K Hein

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.

Alex 提供的链接似乎是一个有用的示例实现。但是我在该文档中提到的链接中找不到源代码。

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.

在 Google 的帮助下,我在以下链接中找到了该示例 JCA 适配器的源代码。如果有人在寻找同样的东西,我把它贴在这里。

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

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

回答by garfield

You can also consider Adam Bien's connectorZ.

您还可以考虑 Adam Bien 的 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.

如果您想要更具体的 Jboss,您可以考虑 Red Hat 的Iron Jacamar,它是 Jboss JCA 实现。有与 JCA 1.0、1.5、1,6 和 1.7 兼容的版本,每个版本都向后兼容。下载还包括一个带有 4 个简单示例的示例目录。同样在 Iron Jacamar,您可以找到一个非常有趣的代码生成器和一个 eclipse 插件,它们都能够生成完整的 JCA 适配器框架。

回答by Jochen Buchholz

I had also big problems to find examples and documentation. I wrote a small tcp server inbound resource adapterexample for wildfly10 and EE7. I used this examples as a base for my questions in this forum. I described in the readme.mdthe 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.

我在查找示例和文档方面也遇到了很大的问题。我为wildfly10和EE7编写了一个小型tcp服务器入站资源适配器示例。我用这个例子作为我在这个论坛上提问的基础。我在readme.mdIron Jacamar JCA 源生成器的使用中进行了描述。这个工具非常有用。我还在描述的末尾放置了有用的文档链接。