This is not just specific to Torque, but if you are planning to deploy
your applets in an Intranet (no firewall issues), you can use the Torque
classes inside your applet (I know they can be used in standalone apps, so I
suppose they can be used inside applets), in this way your applet will
communicate with your DB using JDBC.
You have to be careful regarding the scalability of this approach, since
each applet will use one DB connection at least, you can run out of them very
quickly.
andres
Jason Grant wrote:
> I have an number of applets that are served up via turbine/velocity
> templates, and require access to the getters/setters on my [nested]
> Torque om objects. My first reaction is to write a parallel set of bean
> classes for passage to the applets via serialization - this way, the
> applets do not see Torque interfaces. A problem with this approach
> however, is that the marshalling code for om<->bean conversion promises
> to be tedious to write and maintain.
>
> I suppose I could also write an ant task to generate the code for me
> (like TorqueObjectModelTask), however this seems like overkill too.
>
> Is there a less painful way to make Torque data available to the applets?
>
> Thanks.
>
> J.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
=============================================
Andres G. Portillo D.
Software Engineer
Veratech (www.veratech.com.mx)
=============================================
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]