Well, Flex is a presentation layer, so you really can't just have a "Flex" object in Java. You could create a Flex instance on your jsp pages, you could even communicate back and forth with Flex and Java sending objects between the two, but I am still unsure what you are trying to accomplish by your explaination. Though from what little you have said I am guessing the answer is no.
Hi Warrenef, you can send java objects back and forth using BLAZEDS or LCDS, they are buch of jar files that communicate in AMF, for more info please google the above.
Sorry for the late reply, I just jopined the group.
No, you cannot 'call' (i.e. invoke a method of) a Flex object from Java, although you can do the opposite (call Java methods from Flex) quite easily with any of the available integration libraries (BlazeDS, Livecycle Data Services, Granite DS, WebOrb or Exadel Flamingo).
What you CAN do is send (async) messages from Java to Flex that can trigger some sort of action on a Flexmessage listener object. I believe all of these libraries I listed above support messaging in addition of RPC.
Here's a good tutorial on how this works in practice:
Comments
Can you explain this a bit better? Flex and Java communicate very well, but I am not sure what you are trying to accomplish.
From Java, I would like to be able to call a Flex as an object. Can I do that?
Well, Flex is a presentation layer, so you really can't just have a "Flex" object in Java. You could create a Flex instance on your jsp pages, you could even communicate back and forth with Flex and Java sending objects between the two, but I am still unsure what you are trying to accomplish by your explaination. Though from what little you have said I am guessing the answer is no.
Hi Warrenef, you can send java objects back and forth using BLAZEDS or LCDS, they are buch of jar files that communicate in AMF, for more info please google the above.
thanks
Pradeep
Sorry for the late reply, I just jopined the group.
No, you cannot 'call' (i.e. invoke a method of) a Flex object from Java, although you can do the opposite (call Java methods from Flex) quite easily with any of the available integration libraries (BlazeDS, Livecycle Data Services, Granite DS, WebOrb or Exadel Flamingo).
What you CAN do is send (async) messages from Java to Flex that can trigger some sort of action on a Flexmessage listener object. I believe all of these libraries I listed above support messaging in addition of RPC.
Here's a good tutorial on how this works in practice:
http://www.adobe.com/devnet/flex/articles/intro_fms.html
Hope this helps.