tags:

views:

1312

answers:

3

Hi,

I want to pass an object from my Flex application back to my Java app. Im looking at either passing to a Serlet or passing via a DAO as an object.

Any recommendations?

+1  A: 

How are you connecting to java? are you using AMF?

Generally speaking, passing as an object would be the best solution overall because you probably will be using that object in your flex application anyway.

Ryan Guill
at the moment im using web services component or httpservice to connect to java. I want to pass the object to my webservice to do an update on my table. do you recommend AMF for this?
combi001
I would. Like dirk mentions, look at remote objects and optionally you could look at LCDS for connecting flex to java. Either way, connecting to the dao directly seems like the best choice.
Ryan Guill
+1  A: 

Look at RemoteObjects.

dirkgently
Your link is pointing to this post.
Maksim
D'oh! Sorry about the mixup. Fixed now.
dirkgently
+4  A: 

Check out Adobe's BlazeDS . It provides the middleware to pass objects from flex to java, and vice-versa. It lets you use the RemoteObject and Messaging abstractions in flex.

marketer
Yeah, I forgot that they renamed it BlazeDS; this is what I was talking about when I said LCDS
Ryan Guill