|
> Unfortunately, I'm the only guy in our shop that's touching it so we've got > "support" issues. I had that same scenario at my previous employer. At the time nobody wanted to pick up Java, so I went the RPG route (that's why I wrote the XML parser wrappers and RPGMail on my site mowyourlawn.com). By the time I got done getting everything working in RPG (because there weren't any tools out there to do it) the doors for Java were much more open. There were comments in this thread from others that were more or less stating "Go with a Service Oriented Architecture". That is the way to go if you must include both RPG and Java. Don't ever let your RPG instantiate Java, but instead invoke a light weight Java web service that is running in Tomcat on your iSeries (for example). Use bvstools.com's GETURI or scottklement.com's HTTPAPI to invoke the web service from RPG. If you are introducing Java anyway I would sit down with your IT manager and have a heart to heart about the direction of your technology. You can spin your wheels a long time using a hammer (RPG) on a screw (XML). I learned that the hard way :-( HTH, Aaron Bartell On 5/19/05, Larry Ducie <Larry_Ducie@xxxxxxxxxxx> wrote: > Hi Aaron, Paul, Joe Sam, > > I'm quite wiling to write an all-java app. Unfortunately, I'm the only guy > in our shop that's touching it so we've got "support" issues. The gusy are > happy as long as the NEP is wrapped in RPG. (go figure!) So I am quite > willing to rewrite as necessary. > > Joe Sam, > > Regarding my incompatible statements - The main program sits on a data queue > and retrieves an XML path. It is bound to two service programs: > > SV1 - this handles the transformation from XML to SQL statements via JNI > calls. The result is placed in a Stream file. This returns the file path of > the result file. > > SV2 - this is SQLRPGLE and is passed the file path of the result file. It > then reads the file line-by-line and executes the inserts via dynamic SQL. > > I'm perfectly happy to convert to an all-java app (I have the time) but you > may have to guide me a little. > > The main thing is that the guys want the NEP to be running in the same > subsystem as all of our other NEPS, it needs to be sitting on a data queue, > and that's practically it. > > Any code snippets using data queues and native JDBC would be nice - I can > handle the other "java" stuff. > > Also, how do I throw an exception back up to the wrapping Native app? > > Your help in this would be extremely welcome. > > TIA > > Larry Ducie > > -- > This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) > mailing list > To post a message email: JAVA400-L@xxxxxxxxxxxx > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/mailman/listinfo/java400-l > or email: JAVA400-L-request@xxxxxxxxxxxx > Before posting, please take a moment to review the archives > at http://archive.midrange.com/java400-l. > >
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.