PDA

View Full Version : Spring and LZX javarpc


rollatwork
10-18-2004, 12:13 PM
I've recently migrated my Spring application to serve up an XML "dataset" to a Laszlo view.

However, I'd much rather have my lazlo client talk directly to my Spring app via javarpc.

Has anyone had any experience with this?

Regards,
Roll

dasgrafix
10-25-2004, 10:20 AM
Roll,

I'm trying to use Spring in conjunction with Laszlo. I was wondering if you did any work in regards to creating a View Template for Laszlo based off the org.springframework.web.servlet.view.AbstractTempl ateView? I know they have an implementation of Velocity and FreeMarker, but I was wondering if you attempted to create a Laszlo View at all?

Regards,
Yasir

mikestephen
11-04-2004, 06:29 AM
I think Laszlo+Spring+Hibernate would be a great
combination.

I've looked into the Laszlo code a little, and it seems that with javarpc you only have the option
of invoking a request scope object, a session scope
object, or a static class.

I think what would be great would be if you could
somehow invoke a spring-exposed hessian or burlap
service from laszlo, as both those protocols support
a richer set of type-mappings than soap or javarpc,
eg. they support complex object types, lists, maps,
dates etc.

Unfortunately I think this would involve not just
creating new laszlo client-side components, but also
server-side lps classes.

Anyone figured out how to do anything like this yet?

lipe
11-17-2004, 11:49 AM
Iīm no expert, but I think that by doing this you would be running over MVC.

Why donīt you guys simply serve the objects from Spring to the control tier and have Laszlo requesting these objects from the controller?

Client-server architecture is scary.