Thursday, January 13, 2005

WDSC: How to build a Java Web application calling RPG

WDSC: How to build a Java Web application calling RPG: "It makes a great deal of sense, and usually saves a ton of money in the short term and long term, to leverage your existing, proven business application logic by reusing those host applications (RPG, Cobol, etc.) in your e-business applications. IBM's WDSC tools offer the fastest, easiest way to Web-enable your existing applications for e-business.
The Web Interaction wizard in WDSC is a great tool that Web-enables any type of iSeries server application or Java bean easily. If you're building a Java Web application for users or a Web services application, this tool is key to creating those applications rapidly.
There are many alternatives to using the Web Interaction wizard for creating calls to RPG programs in Web applications. Many of the ones outside of WDSC require buying a special tool OR having a very high Java development skill level. Within WDSC, you could also use the Program Call bean wizard to create a program call bean and write your own JSP and Java code to invoke the Program Call bean and return the response, but that would also be more work.
Other options include using TCP sockets to call a host program or JDBC Stored Procedures. IF you need to return a result set to your Web page to navigate a set of rows, then Stored Procedures is definitely the right answer.

We use both Stored procedures and program call beans frequently in Web applications. The Web Interaction wizard can use both easily to build Web applications that call iSeries server programs.
"

No comments:

Post a Comment