Home > AS/400 News > Q&A: Pluta touts benefits of RPG over Java
AS/400 News:
EMAIL THIS
QUESTION & ANSWER

Q&A: Pluta touts benefits of RPG over Java

By Debra Tart, assistant editor
06 Oct 2004 | Search400.com

Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   

Joe Pluta has been on the RPG soapbox lately. The founder and chief architect of Pluta Brothers Design, an Illinois-based company that takes iSeries legacy systems and adapts them to work with newer technologies, has been evangelizing the benefits of the programming language. Why such a focus on a language that some people would call outdated? Assistant editor Deb Tart caught up with him during iSeries DevCon 2004 in New Orleans last week to find out.

Joe, you've been doing a lot of evangelizing for RPG lately. Why is that?
Pluta: It's because I think that the i5/iSeries is the best platform for running business logic and RPG is the best language for writing it.

Joe Pluta
Joe Pluta

But what about browser-based interfaces? Isn't RPG limited to those 24x80 green screens?
Pluta: Not at all. Without knowing the first thing about Java, you can still write RPG-CGI programs that provide a Web interface to your programs. And then, as you begin to pick up Java knowledge, you can gracefully move to servlets and JavaServer Pages. The ultimate design for browser-based applications, in my mind, is message-based business logic servers written in RPG, which communicate with servlets and JSPs for the UI.

Do you really need servlets? Can't you just use JSPs?
Pluta: Technically, yes, but that's the old architecture which we call Model I JSP design. The "new" style, which we unimaginatively call Model II JSP, is much more like the sort of programming we're used to: fill a buffer, display a panel, let the user enter data, process the data. The only difference is that we use a JSP instead of a display file, and a servlet instead of an RPG program.

So does that mean rewriting everything in Java?
Pluta: Absolutely not. In fact, that's the last thing you should think about doing. While some businesses may find it makes business sense to eventually move to a pure Java solution, it's clearly not the right answer for everyone.

What if pure Java makes business sense? Should businesses just convert their RPG to Java?
Pluta: If pure Java is the ultimate endpoint, you should go there in stages: rewrite your user interface, separate your application flow from your business logic, encapsulate your database in servers, rewrite your application controllers, and finally rewrite your database servers. This is a multi-stage process that, properly managed, can be done without disrupting your business.

What about Web services?
Pluta: Web services are a great concept, even though the implementation is still a little quirky. And while currently it's easiest to write the Web services communications using Java, that doesn't mean you can't call an RPG program to read the data on one end of the Web service and process it on the other.

"While some businesses may find it makes business sense to eventually move to a pure Java solution, it's clearly not the right answer for everyone." -- Joe Pluta

So, you're really anti-Java then. Right?
Pluta: Not at all. My company has not one but two commercially successful Java-based products: CPYSPLFPDF and PSC/400. Java is a great tool for certain things -- user interfaces are one example. It's just like my stance on SQL: I love SQL when used correctly, and I get frustrated when smart people insist on using it where it doesn't belong.

How can you tell when SQL belongs or doesn't?
Pluta: Well, common sense can help. If you're processing sets of records at one time and doing the same thing to all of them, or if you're trying to read, sort and summarize data from a file with ad hoc filtering and ordering, then SQL is definitely the correct choice. For single record access (the traditional CHAIN operation in RPG), native I/O far outperforms SQL. For more information including benchmark results, go to the iSeries Application Architecture Initiative Web site.

If you want to write applications that use RPG and JSPs together, how do you get started?
Pluta: Well, participating in labs and presentations such as the ones provided at DevCon or COMMON conferences can provide that sort of information. Check out one of my labs, or labs by any of the other great conference presenters, from Don Denoncourt to Jon Paris to Jim Mason. They cover topics ranging from advanced Web Services to advanced RPG techniques to WebFacing. And no matter which approach is best suited for your business, you'll find someone to explain it.

What are your recommendations for people just starting out in the world of Web application development?
Pluta: I suggest learning WDSC and seeing all the great things it can do. From creating Web sites to writing RPG programs, WDSC does it all, and it allows you to test your browser-based applications right on your desktop.


Tags: Application DevelopmentiSeries Java programmingRPG iSeries programmingWeb-enablingWebWeb DevelopmentVIEW ALL TAGS

Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
Application Development
iSeries calling an .exe
Top 10 programmer tips
Formatted work job scheduler
Convert system date and time
Mixing free format code with embedded SQL
SQL update a field in one file from a field in another file
Webcasts for iSeries programmers
Programming advice from the pros
Easy code copying via the drag and drop method
Setting FTP time-outs

iSeries Java programming
Groovy programming on IBM i
EGL Rich UI on IBM i: Do you Dojo?
Programming for the Web on the IBM i, what is possible
Database performance comparisons on IBM i
Database drivers on the i: MySQL vs. IBM Toolbox
How to: Output SQL script to a text file from an AS/400
Application modernization for the iSeries: Why bother?
JDBCODBC functionality -- Java to Excel for complex workbooks
Necessity leads to iSeries Watchdog development
Accessing AS/400 data using Excel ODBC drivers
iSeries Java programming Research

RPG iSeries programming
Migrating from RPG to EGL on IBM i
Allow access to data from a stored procedure result set using COBOL or RPG
EGL Rich UI on IBM i: Do you Dojo?
Programming for the Web on the IBM i, what is possible
A taste of COMMON: ILE, IBM releases, Web applications and new products
Documenting nested program structures on the AS/400
How to: Sort arrays using RPGIV
How to: Create an RPGLE array
How to use an embedded SQL statement and display the result in a subfile
Eight steps for creating program documentation using AS/400 utilities

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
Report Program Generator  (Search400.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary




iSeries Application Development: CL, COBOL, RPG, VB, ILE, Java
HomeNewsTopicsITKnowledge ExchangeTipsBlogsAsk the ExpertsMultimediaWhite PapersProducts
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts