WebSphere J2EE 应用与遗留系统的交互开发
在 WebSphere J2EE 应用开发中,与遗留系统的交互是一个重要的环节。本文将介绍如何使用数据队列和 MQSeries 来实现与遗留系统的交互。
1. 使用数据队列与遗留系统交互
在 OrderPlacement EJB 中添加了 writeDataQueue 方法,该方法用于将订单信息放入数据队列,以便 RPG 程序读取和打印。此方法由 placeOrder 方法调用,且不会添加到远程接口,只能由 OrderPlacement EJB 的方法调用。
private void writeDataQueue(String wID, int dID, String cID, float oID) throws
Exception {
AS400 as400 = new AS400("localhost", "*current", "*current");
CharacterFieldDescription as4CustomerID = new
CharacterFieldDescription(new AS400Text(4), "customerID");
PackedDecimalFieldDescription as4DistrictID = new
PackedDecimalFieldDescription(new AS400PackedDecimal(3,0), "districtID");
Characte
超级会员免费看
订阅专栏 解锁全文

被折叠的 条评论
为什么被折叠?



