 




<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: RPG Program calling Java</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/rpg-program-calling-java/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/rpg-program-calling-java/</link>
	<description></description>
	<lastBuildDate>Sun, 19 May 2013 03:14:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rpg-program-calling-java/#comment-69482</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Mon, 26 Oct 2009 06:26:33 +0000</pubDate>
		<guid isPermaLink="false">#comment-69482</guid>
		<description><![CDATA[There does need to be some clarification. The question title is about &quot;calling Java&quot;. The question text asks how to &quot;call this JSP&quot;. Which is it?

Tom]]></description>
		<content:encoded><![CDATA[<p>There does need to be some clarification. The question title is about &#8220;calling Java&#8221;. The question text asks how to &#8220;call this JSP&#8221;. Which is it?</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: michelledavidson</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rpg-program-calling-java/#comment-46973</link>
		<dc:creator>michelledavidson</dc:creator>
		<pubDate>Wed, 22 Jun 2005 09:18:01 +0000</pubDate>
		<guid isPermaLink="false">#comment-46973</guid>
		<description><![CDATA[Jason Hickmott also sent us these comments:

&quot;The short answer is that a RPG program cannot call a JSP. You can construct a URL with parameters and parse the resulting HTML. I have done this recently in Java. In my case, the external application was designed to work this way. Usually this kind of solution is bad because it is similar to screen scraping. When the UI is changed, your application will break. My RPG is a little bit rusty so I?m not sure if there is an API for constructing URLs. Perhaps the IBM XML parser could be used to parse the HTML?

&quot;Instead of a brittle HTML parsing solution and if your company can provide a Java resource, then perhaps you may wish to consider the following. A Java application can have different types of clients. The UI with its JSPs is one of them; your RPG application is another. An RPG program cannot directly invoke a Java class in a J2EE application. Instead you must go RPG -&gt; Java ?&gt; J2EE. The plain Java bit in the middle is deployed onto an AS/400. An example of this is the Business Delegate pattern (http://java.sun.com/blueprints/corej2eepatterns/Patterns/BusinessDelegate.html). All you need to do in your RPG application is call the Java methods as subprocedures.&quot;

-- Michelle Davidson, editor, Search400.com]]></description>
		<content:encoded><![CDATA[<p>Jason Hickmott also sent us these comments:</p>
<p>&#8220;The short answer is that a RPG program cannot call a JSP. You can construct a URL with parameters and parse the resulting HTML. I have done this recently in Java. In my case, the external application was designed to work this way. Usually this kind of solution is bad because it is similar to screen scraping. When the UI is changed, your application will break. My RPG is a little bit rusty so I?m not sure if there is an API for constructing URLs. Perhaps the IBM XML parser could be used to parse the HTML?</p>
<p>&#8220;Instead of a brittle HTML parsing solution and if your company can provide a Java resource, then perhaps you may wish to consider the following. A Java application can have different types of clients. The UI with its JSPs is one of them; your RPG application is another. An RPG program cannot directly invoke a Java class in a J2EE application. Instead you must go RPG -&gt; Java ?&gt; J2EE. The plain Java bit in the middle is deployed onto an AS/400. An example of this is the Business Delegate pattern (<a href="http://java.sun.com/blueprints/corej2eepatterns/Patterns/BusinessDelegate.html" rel="nofollow">http://java.sun.com/blueprints/corej2eepatterns/Patterns/BusinessDelegate.html</a>). All you need to do in your RPG application is call the Java methods as subprocedures.&#8221;</p>
<p>&#8211; Michelle Davidson, editor, Search400.com</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 6/9 queries in 0.032 seconds using memcached
Object Caching 282/285 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-19 11:00:26 -->