Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New to the CF scene
    Join Date
    Jul 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Adobe Flex with Java

    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

  • #2
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,647
    Thanks
    2
    Thanked 406 Times in 398 Posts

  • #3
    wac
    wac is offline
    Regular Coder wac's Avatar
    Join Date
    Sep 2002
    Location
    Cary, North Carolina, USA
    Posts
    359
    Thanks
    2
    Thanked 0 Times in 0 Posts
    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
    Wayne Christian

  • #4
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,647
    Thanks
    2
    Thanked 406 Times in 398 Posts
    Quote Originally Posted by wac View Post
    I suggest you google java and flex.
    You mean like this?
    Quote Originally Posted by Inigoesdr View Post

    Quote Originally Posted by wac View Post
    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.

  • #5
    wac
    wac is offline
    Regular Coder wac's Avatar
    Join Date
    Sep 2002
    Location
    Cary, North Carolina, USA
    Posts
    359
    Thanks
    2
    Thanked 0 Times in 0 Posts
    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#
    Wayne Christian

  • #6
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,647
    Thanks
    2
    Thanked 406 Times in 398 Posts
    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.

  • #7
    wac
    wac is offline
    Regular Coder wac's Avatar
    Join Date
    Sep 2002
    Location
    Cary, North Carolina, USA
    Posts
    359
    Thanks
    2
    Thanked 0 Times in 0 Posts
    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)
    Wayne Christian


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •