Hi Janak,

Thanks for advice, but when I write custom coder, I have problem
how to put, for example JasperPrint object, to the IObjectOutputStream  
in metode writeObject, or how to get JasperPrint object from 
IObjectInputStream in metode readObject  custom reader object.

JasperReports product has utilities JRLoader and JRSaver which
work with streams, but those streams are java.io streams.
ULC is not attached with those streams.

Thence I tried put JasperPrint object directly to IObjectOutputStream 
Object through methode writeObject (JasperPrint implements Serialisable)
and get it directly from IObjectInputStream object through readObject
methode, but in this case, occures error: StackOverflowError. 
I tried it in DevelopmentRunner ULC 6.1.1.

Source code for custom coder I attached with this mail.

Thanks fo advice.

Anton Levcik  CIS Bratislava, Slovakia





-----Original Message-----
From: Janak Mulani [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 19, 2006 1:15 PM
To: Anton Levcik
Cc: '[EMAIL PROTECTED] Com'
Subject: RE: [ULC-developer] Transfer serialisabled data using invokeUI

Hi Anton,

Yes, this is possible.

You will have to write a Coder for the class whose instance you want to send
to the client as an argument to invokeUI() call.

Please see sections 3.4.4 and 4.4 of the ULC Extensions Guide.

Once you have written a Coder you will have to register it with the
CoderRegistryProvider on the client and server.

The CoderRegistryProviders are specified as parameters to the ULC client
(Applet param or JNLP param) and ULC server (servlet param).

For the DevelopmentRunner use setClientRegistryProviderClassName() and
setServerRegistryProviderClassName() APIs.

Thanks and regards,

Janak

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Anton Levcik
Sent: Wednesday, October 18, 2006 3:41 PM
To: '[EMAIL PROTECTED] Com'
Subject: [ULC-developer] Transfer serialisabled data using invokeUI


Hi,

It is possible write extension so that I may transfer serialisabled data
from server to client side
using invokeUI methode?

I like to integrate Jasper Reports to ULC client and I know it using
transfer files between
server and client. But it would be better use output stream on the server
side and
transfer design or report to the viewer using input stream to the client
side.
I see possible solution to write custom coder for Serialisable type. It si
possible?

Thanks for advice

            Levcik Anton  CIS Bratislava  Slovakia


Attachment: JasperReportCoder.java
Description: Binary data

Reply via email to