Real Software Forums
http://forums.realsoftware.com/

Code migration, calling Java from RSW RB
http://forums.realsoftware.com/viewtopic.php?f=20&t=47547
Page 1 of 1

Author:  contentengineer [ Tue Apr 09, 2013 5:22 am ]
Post subject:  Code migration, calling Java from RSW RB

Background: We are looking to accelerate application development/deployment and are considering migrating some applications from both Tomcat/JSP and Java based batch code bases into Real Studio Web. As with all these projects prioritisation is key.

One challenge we have is migrating report functionality. Currently developed using JasperReports library, with many different reports. These are generated using Java "console" application and run by a Task Scheduler. To avoid refactoring all the report designs to Real Reports we are planning to modularise so that the actual report generation (about 10 lines of Java) can be kept in Java for the time being. One reason being that we cannot find how to run Real Reports from within Real Studio Web... the Report class appears to be missing!

Is it a simple method to invoke an external executable/Java code from Real Studio Web? And pick up the return (a pdf file) and send to the browser?

We can then look at re-factoring into Real Reports at later time.

Many thanks

Author:  MonkeybreadSoftware [ Tue Apr 09, 2013 5:31 am ]
Post subject:  Re: Code migration, calling Java from RSW RB

You can execute java classes with shell class or with our MBS Real Studio Java plugin.

Greetings
Christian

Author:  contentengineer [ Tue Apr 09, 2013 8:17 am ]
Post subject:  Re: Code migration, calling Java from RSW RB

Thanks Christian for the quick response.

We may also test a simple TCPReportServer to wrap the report generation class/method: take report name and parameters from the InputStream; and push the PDF (byte[]) out via OutputStream on the socket/connection.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/