my dog learned polymorphism
The moose likes Flex and the fly likes flex java communication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Flex
Bookmark "flex java communication" Watch "flex java communication" New topic

flex java communication

Kowshik Nandagudi
Ranch Hand

Joined: Dec 09, 2010
Posts: 57
Hi I wanted to know the process of java and flex communication in apache tomcat. I have the following things now

1) Flex mxml file
2) java file.

I need to make a war of flex application and ear of java file communicate using that?

Can anybody explain ?

Thanks in advance
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42959
Flex does have HTTP communication facilities, doesn't it? So it could access a servlet that's part of the Java web app.
Siddhesh Deodhar
Ranch Hand

Joined: Mar 05, 2009
Posts: 118
Hi Kowshik,

Flex provides three mechanisms to communicate with applications like Java/PHP.
They are
1) Http Service
2) Web Service
3) Remote object calling

Http Service is useful when you want to communicate with Servlet.
Remote object service is useful when you wan to to call POJO's available on server side.

I have tried both by referring tutorials available on Adobe flex site/ Documentation.
Check following links for overview

Good, Better, Best, Don't take rest until, Good becomes Better, and Better becomes Best.
Sidd : (SCJP 6 [90%] )
I agree. Here's the link:
subject: flex java communication
It's not a secret anymore!