...

Adobe Flex with Java

venkatesh.d
07-30-2009, 08:48 AM
Hi,
I am new to Adobe flex. I want to develop desktop application which has Flex UI and Java at the backend.It will be a desktop application(Adobe AIR). We dont have any webserver or application server and all classes reside in jar file.
I have tried with JavaFx but UI in JavaFx is not that good.
I would like to know how to invoke Java functions from flex? Please guide me to any tutorial.

All the classes and POJOs will remain in jar file only because its a pure desktop application which should be able to run even it there is no internet connection and no webserver or user's machine.

Regards,
Venky

Inigoesdr
07-30-2009, 11:23 AM
Search (http://www.lmgtfy.com/?q=flex+invoke+java)

wac
07-30-2009, 02:19 PM
You may want to investigate ExternalInterface. If java can invoke methods on the flash player, then it can issue requests to its ExternalInterface and Flex can invoke java via ExternalInterface. I did this for C# and I know it can be done in javascript as well. If worst comes to worst, you can have Java -> JNI -> C# -> Flex and back

I suggest you google java and flex. There's bound to be a better, more direct way

Inigoesdr
07-31-2009, 12:10 AM
I suggest you google java and flex.
You mean like this?
Search (http://www.lmgtfy.com/?q=flex+invoke+java)
:thumbsup:
There's bound to be a better, more direct way
Yeah, the first few links in the search I posted showed how you can do it directly-ish. Using BlazeDS with Tomcat is about as direct as you can get for this task. :(

wac
07-31-2009, 02:44 AM
Yeah,
It was wishful thinking that perhaps one would be able to find something that didn't require BlazeDS because he was talking about not having a webserver.
I'm surprised that someone hasn't found a more direct way to do this, seeing as it seems so easy in C#

Inigoesdr
07-31-2009, 04:25 AM
I'm kind of curious what kind of implementation you would require this for. Other than using Web Services, why would you need to do this? I can't think of an example at the moment.

wac
07-31-2009, 04:30 AM
Looks like he has a regular java desktop application, but want's to use Flex for the UI because its easier than writing the UI in Java.

Our company was doing something similar, except the application was in C#. There was a whole bunch of really cool looking Flex based UI and developing and using them was faster than doing the same thing in C# (or Java)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum