Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Sat Nov 18, 2017 4:41 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Code migration, calling Java from RSW RB
PostPosted: Tue Apr 09, 2013 5:22 am 
Offline

Joined: Tue Apr 09, 2013 12:45 am
Posts: 7
Location: UK
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


Top
 Profile  
Reply with quote  
 Post subject: Re: Code migration, calling Java from RSW RB
PostPosted: Tue Apr 09, 2013 5:31 am 
Offline
User avatar

Joined: Wed May 10, 2006 2:42 pm
Posts: 2985
Location: Germany
You can execute java classes with shell class or with our MBS Real Studio Java plugin.

Greetings
Christian

_________________
See you in Orlando, Florida for Real World 2013
More details and registration here:
http://www.realsoftware.com/community/realworld.php


Top
 Profile  
Reply with quote  
 Post subject: Re: Code migration, calling Java from RSW RB
PostPosted: Tue Apr 09, 2013 8:17 am 
Offline

Joined: Tue Apr 09, 2013 12:45 am
Posts: 7
Location: UK
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group