|
Hi I have been working on a project where the business logic is in RPGLE, I have been using 2 approches for it, One is when i need to call a RPG program from java, I use PCML and it is failry easy to do so. But other one is where i have to create a PDF file on AS400, which is not possible using RPG. So i am using java to create pdf file, and for communication between RPG and java i am using DataQ, I have defined a seperate subsystem on AS400, where in i submit a java program which is listening to a incoming dataq, RPG program sends some parameters to this incoming dataq, As soon as the java programs gets this message in dataq it does the processing and create a pdf file on IFS folder of AS400, and sends a message back in Outgoing dataq which is a keyed dataq and the key is the job number of the RPG program calling it(job number is part of message in incoming dataq) the RPG program is now listening to outgoing dataq, as soon as it gets a message with the key as the job number.It reads this message and does further processing. Originally i was using direct call from RPG to Java but there are some problems if you do reclaim resource , and the process is also slow. I hope i am clear of what i am doing, and helps u Ashish --- "Bartell, Aaron L. (TC)" <ALBartell@xxxxxxxxxxxxxx> wrote: > > The recent discussions ("Strategic Java Usage", > "Mixed RPG/Java > Performance", "EJB versus RPG/COBOL") have peaked my > interest immensely, > thanks for everyone's comments! > > I am working on a Java/RPG solution that will be > used to get our iSeries > machines into an HTTP SOA (Service Oriented > Architecture) type model. I > have created web services with RPG programs, but > parsing XML just isn't > RPG's forte, even with IBM's parser and my wrapper > that I wrote for it. > > I have recently been looking at having Java do all > HTTP communication and > XML parsing and once an XML document had been parsed > into the appropriate > "object" it would then be passed to a "Mediator" > that would decide what RPG > business logic program needed to be called based on > the XML's envelope > contents. The kind of XML documents I am talking > about are anything from > simple requests like "getItem" to something quite > large like > "PurchaseOrderRequest". > > Being that I need to pass large amounts of data from > Java to RPG I have been > looking for different ways that both can easily talk > to each other. The > model I am planning on using for this is to write > the parsed information to > a "smart" User Space for the RPG program to pick up > after the Java program > has notified it that there is something available. > By "smart" User Space I > simply mean I have come up with my own method of > defining an object sort of > structure within the User Space. Each set of data > in the User Space is > prefixed with the name of that chunk of data and the > size that it takes up. > Here is the code for the "smart" user space that I > have built: > http://mowyourlawn.com/files/UsrSpc/USRSPCFN.RPGLE > along with an example: > http://mowyourlawn.com/files/UsrSpc/USRSPC.RPGLE > > The things that I am wondering about are if this is > an efficient method that > may give me performance problems in the future. Or > should I go to a > different method like socket connections? Any > insight on how to make this > Java/RPG relationship work beautifully would be > greatly appreciated. I hope > I have explained what I am trying to do, it is > basically what others have > stated in the most recent discussions. > > TIA, > Aaron Bartell > _______________________________________________ > 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. > __________________________________ Do you Yahoo!? Yahoo! Mail - More reliable, more storage, less spam http://mail.yahoo.com
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.