简体   繁体   English

使用JCA CCI连接的最佳方法-替代Spring CCI支持

[英]Best way to use JCA CCI connections - Alternative to Spring CCI Support

In our project we have a requirement to connect to IBM IMS and get data. 在我们的项目中,我们需要连接到IBM IMS并获取数据。 Many of the existing applications are done it through code more coupled with IMS. 许多现有的应用程序通过与IMS结合使用的代码来完成。

In one of the application we are using Spring CCI support and providing the CCIConnectionFactory to the JDBCTemplate and using it in a relational (kind of) manner. 在其中一个应用程序中,我们正在使用Spring CCI支持,并将CCIConnectionFactory提供给JDBCTemplate并以关系(某种)方式使用它。

However we are building a new application which is not using Spring framework. 但是,我们正在构建一个不使用Spring框架的新应用程序。 We are making use of JAVA CDI and it's aspects. 我们正在使用JAVA CDI及其方面。 But to integrate it with IMS through CCI I can see Spring is the best option. 但是要通过CCI将其与IMS集成,我可以看到Spring是最佳选择。 Anyone have experienced on this CCI connections? 任何人都对此CCI连接有经验吗? What way is the best you think? 您认为最好的方法是什么? And any other frameworks in Java you are familiar with - apart from Spring's support? 除了Spring的支持之外,您还熟悉Java中的任何其他框架吗?

Appreciate your help and input. 感谢您的帮助和投入。

I had the same question 5 Month ago and it was very hard to collect information about jca. 5个月前,我有同样的问题,很难收集有关jca的信息。 If your project works with wildfly or jboss take a look on my inbound-ra-example project. 如果您的项目适用于wildfly或jboss,请查看我的inbound-ra-example项目。 At first you must know what kind of resource adapter (RA) you need, inbound or outbound. 首先,您必须知道入站或出站需要哪种资源适配器(RA)。 In short, an inbound RA acts as a server for external data and send the data to a message driven bean. 简而言之,入站RA充当外部数据的服务器,并将数据发送到消息驱动的Bean。 An outbound RA is called from an EJB via a connection factory and initiate the connection to the external information system. 通过连接工厂从EJB调用出站RA,并启动与外部信息系统的连接。 Read the readme.md of my example project. 阅读我的示例项目的readme.md。 The inbound RA is much more difficult as an outbound RA. 入站RA与出站RA相比要困难得多。 Generate the skeleton of your ra with the ironjacamar codegenerator. 使用ironjacamar代码生成器生成ra的骨架。 I described the process in my example project. 我在示例项目中描述了该过程。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM