FLEX with java

I have an java object which returns a map and its a stand
alone application how can i call java object in a flex application.
any sample code is really helpfull for me.
Thanks in advance
Poorna.

BlazeDS is your best bet. Try this tutorial,
http://www.flexlive.net/?p=92

Similar Messages

  • Flex with Ruby or Flex with Java

    Hi,
    I need to use SNMP/SLP protocols in my application.
    So i have plan to develop the Applcation using Flex and Ruby or Flex and Java(HttpServices). In future the applicaiton may need enhanced.
    please any one of you help me , which one is the bset way to develop the applcation.
    Thanks,
    Ravi

    I would go with whatever backend is more familiar to the developers and to the ones who will have to updates the application.

  • Flex with Java - DB data access

    Hello, folks,
    I am developing a Java application and realized that I need
    some advice. My application is simple:
    I have a MSSQL server, tomcat 5.5 ,flex data services.
    In my application , i have two combo boxes.. country, town..
    i have populated the country combobox with the values from
    DB(country table) obtained using the fill(List ListArgs) in
    Assembler Class.
    Now, based on the country selected in have to populate my
    town combobox from (town table)
    How can i populate the town combobox from the DB based on the
    country code?
    Is there any function to pass the selected index and populate
    the town combo box..????
    My code is as below:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" >
    <mx:DataService id="ds" destination="quick-search-country"
    autoCommit="false" autoSyncEnabled="false"/>
    <mx:DataService id="tds" destination="quick-search-town"
    autoCommit="false" autoSyncEnabled="false"/>
    <mx:ArrayCollection id="cntry_list"/>
    <mx:ArrayCollection id="town_list"/>
    mx:Panel layout="absolute" backgroundColor="#c6daf5"
    verticalCenter="0" horizontalCenter="0">
    <mx:Form id="SearchForm">
    <mx:TabNavigator >
    <mx:Canvas label="Hotel" width="339" height="234"
    backgroundColor="#ffffff">
    <mx:Label x="10" y="91" text="Country :" alpha="0.12"
    />
    <mx:ComboBox x="93" y="89" fontSize="10" id="Country"
    dataProvider="{cntry_list}"
    labelField="countryName"
    creationComplete="ds.fill(cntry_list)"
    change="tds.getItem(Country.selectedItem)" prompt="United
    Kingdom" >
    </mx:ComboBox>
    <mx:Label x="10" y="126" text="Town / City :"
    fontFamily="Georgia" alpha="0.12"/>
    <mx:ComboBox id="town" x="94" y="124" fontSize="10"
    dataProvider="{town_list}"
    labelField="townName" prompt="London WC1" >
    </mx:ComboBox>
    </mx:Canvas>
    </mx:TabNavigator>
    </mx:Form>
    </mx:Panel>
    </mx:Application>
    this is my main.mxml . I have CountryAssembler to fill the
    country combo and a DAO class . Have a Town assembler..
    Please advice me on how to populate the town combo based on
    country selected from the DB...
    I am really stuck up... and also dont have any documentation
    on Flex data services with Java support..
    please give me some suggestions on this.
    Thanks in Advance,
    Ambili

    Hi Mete,
    Thanks for ur reply , Mete. Your reply helped me a lot. Am
    using FDS 2.0.
    I have a doubt in combo box area itself.
    I have two tables by name country_list and town_list
    country_list consists of identity column , country_name and
    country_code
    town_list has identity column, country_code, town_code and
    town_name
    Normally while we use combobox in jsp, we have key value
    pairs for combo box..
    For eg:- if we have a Country combo , we have the country
    name(United States) as text displayed and its country code (US) as
    key.
    So if i select the United States , i will be returned with
    the value 'US' so that i can use it in query directly as
    Select town_name, town_code from town_list where country_code
    ='US'
    But while using flex , am not able to retieve the
    country_code from country combo. its only returning the text and
    the id.
    Here am forced to write a nested query as follows
    Select town_name, town_code from town_list where country_code
    =( Select country_code from country_list where country_name='United
    States')
    Is there any way to get the country_code as key while i
    select the country from country combo .
    And also how to keep 'United States' as selected during the
    intial load of the page.
    <mx:ArrayCollection id="cntry_list"/>
    <mx:ComboBox x="93" y="89" fontSize="10" id="Country"
    dataProvider="{cntry_list}"
    labelField="countryName"
    creationComplete="ds.fill(cntry_list)"
    prompt="Select Country" />
    please give me some suggestions on this.
    Thanks in Advance,
    Ambili

  • Flex with JAVA - Query?

    Dear Experts,
    I would like to develop one small CRM Product using JAVA Programming Language, However which concepts of Java to be used for development is still on it's way to Identify. recently I heared of Adobe Flex concept and have done enough research to explore the use and it's quite interesting.
    I though to Use Adobe Flex (Flash Builder) as an User Interface (UI) for my application for attractive look and feel, where as business logic should be in JAVA program. UI has to receive User commands from front-end and process to back-end application logic for processing.
    Can anybody kindly advise on bellow of my doubts:
    1. Is Flex Professional user License is just enough to build my application or anyother components to buy to integrate with JAVA/J2EE Code i.e. Live Cycle Services?
    2. Use of Live Cycle Services and it's Cost per User/CPU?
    3. Validity period of Flex Builder License (Life time or Specific period)
    4. How can I get more detailed information on Product, Services etc., from Adobe and it's contact number. as I'm in India.
    Kindly advise on my above queries and it would be a great help.. Many Thanks in advance.
    Best regards,
    Srujan

    Hi,
    Please fallow following link
    http://www.adobe.com/devnet/flex/articles/flashbuilder_blazeds.html
    thanks,
    atul ([email protected])

  • Adobe Flex with Java webdynpro

    Hello,
    I like to use Adobe flex applications for my webdynpro java projects which then later I can use in portals. I need some learning materials for that. I was looking from google but I haven't found many sources. if you guys can help me out then It would be great.
    Regards,
    NK

    Hi Bala,
    Adobe Flex is not similar to Java Webdynpro. You can get more information from the Adobe Webpage and also a trial version. Adobe Flex is part of Visual Composer Compiler capabilities. At SAP TechEd in Munich was an interessting demo of rendering webdynpro with Flex during the Demo Jam. For more information you can download the Demo Jam Video <a href="http://www.sapteched.com/emea/activities/videos/DemoJam.wmv">here.</a>
    Best Regards,
    Marcel

  • Login security in flex with Java

    Hi ,
    I am looking for login secruity with session in flex.
    Thanks,
    Alok

    If you want to use Java as the back end, you have BlazeDS and
    LiveCycle Data services to make your programming simpler. BlazeDS
    and LCDS will allow you to invoke the Java classes from the Flex
    application. For more details on BlazeDS and LCDS visit the URLs
    below.
    http://www.adobe.com/products/livecycle/dataservices/
    http://opensource.adobe.com/wiki/display/blazeds/BlazeDS
    Hope this helps.

  • Flex with java compilation

    hi
    i have done flex project which contains a videoplayer and some informations.
    i have used j2ee server using lcds.
    when i run a build.xml file that time the following error occurs
    Buildfile: E:\Documents and Settings\Kavi Priya\Adobe Flash Builder 4\VideoPlayer\build.xml
    Trying to override old definition of datatype resources
    prepare:
        [mkdir] Created dir: E:\Documents and Settings\Kavi Priya\Adobe Flash Builder 4\VideoPlayer\build
        [mkdir] Created dir: E:\Documents and Settings\Kavi Priya\Adobe Flash Builder 4\VideoPlayer\build\WEB-INF
        [mkdir] Created dir: E:\Documents and Settings\Kavi Priya\Adobe Flash Builder 4\VideoPlayer\build\WEB-INF\classes
        [mkdir] Created dir: E:\Documents and Settings\Kavi Priya\Adobe Flash Builder 4\VideoPlayer\build\html
         [copy] Warning: META-INF\MANIFEST.MF modified in the future.
         [copy] Warning: WEB-INF\flex\messaging-config.xml modified in the future.
         [copy] Warning: WEB-INF\flex\proxy-config.xml modified in the future.
         [copy] Warning: WEB-INF\flex\remoting-config.xml modified in the future.
         [copy] Warning: WEB-INF\flex\services-config.xml modified in the future.
         [copy] Warning: WEB-INF\lib\backport-util-concurrent.jar modified in the future.
         [copy] Warning: WEB-INF\lib\cfgatewayadapter.jar modified in the future.
         [copy] Warning: WEB-INF\lib\commons-codec-1.3.jar modified in the future.
         [copy] Warning: WEB-INF\lib\commons-fileupload-1.2.1.jar modified in the future.
         [copy] Warning: WEB-INF\lib\commons-httpclient-3.0.1.jar modified in the future.
         [copy] Warning: WEB-INF\lib\commons-io-1.4.jar modified in the future.
         [copy] Warning: WEB-INF\lib\commons-logging.jar modified in the future.
         [copy] Warning: WEB-INF\lib\concurrent.jar modified in the future.
         [copy] Warning: WEB-INF\lib\flex-messaging-common.jar modified in the future.
         [copy] Warning: WEB-INF\lib\flex-messaging-core.jar modified in the future.
         [copy] Warning: WEB-INF\lib\flex-messaging-opt.jar modified in the future.
         [copy] Warning: WEB-INF\lib\flex-messaging-proxy.jar modified in the future.
         [copy] Warning: WEB-INF\lib\flex-messaging-remoting.jar modified in the future.
         [copy] Warning: WEB-INF\lib\mxmlc.jar modified in the future.
         [copy] Warning: WEB-INF\lib\xalan.jar modified in the future.
         [copy] Warning: WEB-INF\web.xml modified in the future.
         [copy] Warning:  modified in the future.
         [copy] Warning: META-INF modified in the future.
         [copy] Warning: WEB-INF modified in the future.
         [copy] Warning: WEB-INF\classes modified in the future.
         [copy] Warning: WEB-INF\flex modified in the future.
         [copy] Warning: WEB-INF\lib modified in the future.
         [copy] Warning: WEB-INF\src modified in the future.
         [copy] Copying 24 files to E:\Documents and Settings\Kavi Priya\Adobe Flash Builder 4\VideoPlayer\build
         [copy] Copied 9 empty directories to 1 empty directory under E:\Documents and Settings\Kavi Priya\Adobe Flash Builder 4\VideoPlayer\build
         [copy] Warning: AC_OETags.js modified in the future.
         [copy] Warning: assets\namastecue.flv modified in the future.
         [copy] Warning: history\history.css modified in the future.
         [copy] Warning: history\history.js modified in the future.
         [copy] Warning: history\historyFrame.html modified in the future.
         [copy] Warning: icons\16calendar.gif modified in the future.
         [copy] Warning: icons\16chat.gif modified in the future.
         [copy] Warning: icons\16clock.gif modified in the future.
         [copy] Warning: icons\16dairy.gif modified in the future.
         [copy] Warning: icons\16files.gif modified in the future.
         [copy] Warning: icons\16mail.gif modified in the future.
         [copy] Warning: icons\16minus.gif modified in the future.
         [copy] Warning: icons\16minus.png modified in the future.
         [copy] Warning: icons\16news.gif modified in the future.
         [copy] Warning: icons\16next.gif modified in the future.
         [copy] Warning: icons\16pad.gif modified in the future.
         [copy] Warning: icons\16percent.gif modified in the future.
         [copy] Warning: icons\16percent.png modified in the future.
         [copy] Warning: icons\16plus.gif modified in the future.
         [copy] Warning: icons\16plus.png modified in the future.
         [copy] Warning: icons\16previous.gif modified in the future.
         [copy] Warning: icons\16previous.png modified in the future.
         [copy] Warning: icons\16tag.gif modified in the future.
         [copy] Warning: icons\16tag.png modified in the future.
         [copy] Warning: icons\32calendar.gif modified in the future.
         [copy] Warning: icons\32calendar.png modified in the future.
         [copy] Warning: icons\32chat.gif modified in the future.
         [copy] Warning: icons\32chat.png modified in the future.
         [copy] Warning: icons\32clock.gif modified in the future.
         [copy] Warning: icons\32clock.png modified in the future.
         [copy] Warning: icons\32dairy.gif modified in the future.
         [copy] Warning: icons\32dairy.png modified in the future.
         [copy] Warning: icons\32files.gif modified in the future.
         [copy] Warning: icons\32files.png modified in the future.
         [copy] Warning: icons\32mail.gif modified in the future.
         [copy] Warning: icons\32mail.png modified in the future.
         [copy] Warning: icons\32minus.gif modified in the future.
         [copy] Warning: icons\32minus.png modified in the future.
         [copy] Warning: icons\32news.gif modified in the future.
         [copy] Warning: icons\32news.png modified in the future.
         [copy] Warning: icons\32next.gif modified in the future.
         [copy] Warning: icons\32next.png modified in the future.
         [copy] Warning: icons\32pad.gif modified in the future.
         [copy] Warning: icons\32pad.png modified in the future.
         [copy] Warning: icons\32percent.gif modified in the future.
         [copy] Warning: icons\32percent.png modified in the future.
         [copy] Warning: icons\32plus.gif modified in the future.
         [copy] Warning: icons\32plus.png modified in the future.
         [copy] Warning: icons\32previous.gif modified in the future.
         [copy] Warning: icons\32previous.png modified in the future.
         [copy] Warning: icons\32tag.gif modified in the future.
         [copy] Warning: icons\32tag.png modified in the future.
         [copy] Warning: icons\Thumbs.db modified in the future.
         [copy] Warning: icons\alternative_energy.gif modified in the future.
         [copy] Warning: icons\alternative_energy.png modified in the future.
         [copy] Warning: icons\butterfly.gif modified in the future.
         [copy] Warning: icons\butterfly.png modified in the future.
         [copy] Warning: icons\cloud.gif modified in the future.
         [copy] Warning: icons\forward.png modified in the future.
         [copy] Warning: icons\icon_profile_graduate.gif modified in the future.
         [copy] Warning: icons\icon_profile_graduate.png modified in the future.
         [copy] Warning: icons\icon_profile_man_emp.gif modified in the future.
         [copy] Warning: icons\icon_profile_man_emp.png modified in the future.
         [copy] Warning: icons\icon_profile_woman_emp.gif modified in the future.
         [copy] Warning: icons\icon_profile_woman_emp.png modified in the future.
         [copy] Warning: icons\icon_progress.gif modified in the future.
         [copy] Warning: icons\icon_progress.png modified in the future.
         [copy] Warning: icons\idea_icon.gif modified in the future.
         [copy] Warning: icons\idea_icon.png modified in the future.
         [copy] Warning: icons\imagelast1.png modified in the future.
         [copy] Warning: icons\leaf.gif modified in the future.
         [copy] Warning: icons\leaf.png modified in the future.
         [copy] Warning: icons\mute.png modified in the future.
         [copy] Warning: icons\next .png modified in the future.
         [copy] Warning: icons\pause.png modified in the future.
         [copy] Warning: icons\pause_grey.png modified in the future.
         [copy] Warning: icons\pausenew.png modified in the future.
         [copy] Warning: icons\play.png modified in the future.
         [copy] Warning: icons\play_big.png modified in the future.
         [copy] Warning: icons\play_grey.png modified in the future.
         [copy] Warning: icons\playicon.png modified in the future.
         [copy] Warning: icons\prev.png modified in the future.
         [copy] Warning: icons\repeat.png modified in the future.
         [copy] Warning: icons\replay.png modified in the future.
         [copy] Warning: icons\rewind.png modified in the future.
         [copy] Warning: icons\save_fuel.gif modified in the future.
         [copy] Warning: icons\stop.png modified in the future.
         [copy] Warning: index.html modified in the future.
         [copy] Warning: playerProductInstall.swf modified in the future.
         [copy] Warning:  modified in the future.
         [copy] Warning: assets modified in the future.
         [copy] Warning: history modified in the future.
         [copy] Warning: icons modified in the future.
         [copy] Copying 89 files to E:\Documents and Settings\Kavi Priya\Adobe Flash Builder 4\VideoPlayer\build\html
    build:
        [javac] Warning: vid\DAOException.java modified in the future.
        [javac] Warning: videocue\videoServiceDAO.java modified in the future.
        [javac] Warning: videocue\videoVO.java modified in the future.
        [javac] Compiling 3 source files to E:\Documents and Settings\Kavi Priya\Adobe Flash Builder 4\VideoPlayer\build\WEB-INF\classes
    BUILD FAILED
    E:\Documents and Settings\Kavi Priya\Adobe Flash Builder 4\VideoPlayer\build.xml:79: Unable to find a javac compiler;
    com.sun.tools.javac.Main is not on the classpath.
    Perhaps JAVA_HOME does not point to the JDK.
    It is currently set to "E:\Program Files\Adobe\Adobe Flash Builder 4\jre"
    Total time: 500 milliseconds
    how i rectify this problem
    regards
    athi

    Hi,
    Please fallow following link
    http://www.adobe.com/devnet/flex/articles/flashbuilder_blazeds.html
    thanks,
    atul ([email protected])

  • Using Flex Performance Profiler for Profiling Flex  with Java Applications

    Hi , I am planning to use Flex Profiler to profile my Application .
    I have developed a sample Application using Flex MXML ,some ActionScript classes for Events and Cairngorm , Java , Oracle as database and Blazeds . 
    Can i use Flex Performance Profiler to Profile my Application . ?? I am asking this question as i ad read the below line from Adobe site and My Application includes java Methods 
    "You can use the profiler to profile ActionScript 3.0 applications " Can anybody please tell me What does this mean ?? and can i use the Flex Performnace Profiler . Please suggets me .

    Thanks Karl for the prompt response .
    I am making a call to a Java Method from my Action Script function , or getting data from Java Method into the ActionScript function .
    So my question  is , will the Flex Profiler will be applicable in this case as it internally calls Java Methods .

  • Communicate flex with java offline

    Hi, i have a java desktop application and a flex desktop application.
    I want to incude the java proyect into the flex proyect, without blazeDS or any other service.
    I need it to be offline. Is it possible?
    Thanks!

    Hi,
    Please fallow following link
    http://www.adobe.com/devnet/flex/articles/flashbuilder_blazeds.html
    thanks,
    atul ([email protected])

  • Flex with Jboss

    Hi Friends
    I'm developing Flex with java using Blaze-DS under the
    Spring MVC. I've problem in using Jboss, Based on BlazeDS
    Installation guide
    http://opensource.adobe.com/wiki/display/blazeds/Installation+Guide
    configure the jboss with Flex.There is no problem with Flex running
    in Jboss but it couldn't establish connection and business logic
    with java, The Jboss server couldn't through any errors. These same
    war file run under the tomcat server. So please help me to solve
    this problem.
    Thanks&Regrads
    Prakasam

    I don't have any experience with Spring MVC but I was using
    JBoss with Blaze-DS without a problem.
    so my next question is, can you make a echo to work??
    eg, make a function that returns the input string back to the
    flex client.
    Ries

  • How to use Flex with EJB3?

    Anybody know how to integrate Flex with Java?
    I have a EJB3 project with JPA etc...
    Have to use Eclipse with Flex plugin or can i use Flex Builder and Eclipse only for java classes? (preferring the second option)
    I'm getting crazy, because need this for my college work, too fast as possible.
    Please any explanation or sample.
    Thanks everyone.

    Matt you say, i do not need to write servlet, create wsdl...
    But if i dont do this, my Java Business Rules will be visible to client ?
    If yes...
    1- I need to write Servlet to use HTTP protocol to connect with Flex, then create wsdl of my EJB3.
    2- This wsdl will create client side of my application, then i create my Flex interface normally using HTTP Blaze DS ?

  • Problem with java and flex web service

    Hi,
    I have a basic web service written in java using jax ws 2.1
    ri. I need to call it from Flex using the WebService class
    Annotations for the java web method :
    @WebMethod
    public void Login(
    @WebParam(name="server") String serverURL,
    @WebParam(name=AUTHENTICATE_HEADER,header=true,mode=WebParam.Mode.INOUTHolder<Authenticate Header>
    authHeader)
    When I try and call the service from Flex , it can't find the
    login method and attempts to call it fail. If I set the web service
    to RPC based using @SOAPBinding , the method is found but then
    there are issues with the authentication header.
    What do I need to do to get flex web services communicating
    succesfully with java ?
    Are there are any known compatibility issues ? Or guidelines
    for going about this ?
    Any help would be appreciated

    well Shay,
    i've used JDev's tools to developer and to deploy the web service: the war and ear files are automatically generates you to the end of the process.
    I have included all the files java and the compiled classes, but I do not have files jar.
    But don't works: if i create only one java class with all code inside then it works fine!!
    Daniele

  • Flex and Java on Desktop

    Hi
    We are having this requirement , we want to develop a
    application using flex for adobe AIR runtime which will communicate
    with java in the desktop, we are not having any servers here, so
    flex application want to communicate with java classes with out the
    help of any server so I can't use httpservice, webservice or
    remoting .
    I like to know the ways to communicate from flex 3.0(Adobe
    AIR) to java files (java takes care of splitting PowerPoint
    files and converting it into serious of jpeg files, and
    creating ppt files from the objects returned from flex ).
    Is there any other way to communicate form between flex and
    java in the desktop ??? please give inputs
    Thiru

    Hi,
    you could use XMLSocket or Socket classes depending on the
    type of communication you want to stablish.
    I have been testing this for a while although not for a
    project.
    However my impression is that you need to install the AIR app
    which is self-extracted and installed, but in second hand, you have
    to install the Java app, that acts as a server, and it must be
    executed every time your AIR app is, and the other way around.
    Untill now I haven't got any idea on doing this without too
    much work, but you can take a look at the Merapi project.
    Manu

  • Unable to map actionscripting with java nested objects

    Hi Experts...,
    Im a newbie in flex and actionscripting.....
    Im unable to map nested java classes and objects with my front end flex application using actionscript....I have searched everywhere almost to my knowledge on the net but failed to find a fix...,
    im having serious trouble reffereing to attributes of an object using another object( which by the way happens to be the parent object).
    Im using hibernate and springs to do the DB transactions....,
    Please help me out with this issue.....
    Thanks for all the help and support in advance....

    Again, I don't work with Java and you should ask Java-related question in Flex (or Java) forum.
    Java or not - you need to package your server side language specific object into something that AS understands (text, XML, AMF object) and load this data into AS via, perhaps, URLLoader. Or you can open socket. Then you parse this data with AS3 code in SWF.

  • Flex with any ORM - Writing Model classes and action scripts redundant?

    Hi,
    I am using Hibernate with Flex. I have all my model classes
    as POJOs. Now if i have to access these POJOs directly from flex, I
    need to write action script reference classes for all my POJO model
    classes. Since mapping POJOs with action script reference classes
    is so mechanical, i am wondering if there is any tool to read all
    the properties from the POJO's and convert them to action script
    reference classes automatically. Is there any way that this can be
    automated?
    Thanks in advance.
    Chandu.

    If you use Granite Data Services, there's something called
    "gas3" (I think is the name). You may be able to use it even if you
    don't use Granite.
    I didn't care for learning how to use it (plus it uses
    Groovy, more needless stuff to learn I guess), so I can't say how
    well it works. I just wanted a simple custom ant task that
    generates ActionScript classes for my Java classes. So I ended up
    making my own. It's definitely not trivial but it's not that hard
    if you're very good with Java and reflection.

Maybe you are looking for

  • Airport Extreme no longer sees my Canon PIXMA MX 700

    I have used my Airport Extreme to print wirelessly with my Canon PIXMA MX 700. 2 Macbooks and 1 PC Windows Vista have successfully done so for several months. I just upgraded to Leopard, and now Airport can't see the Canon; the other Macbook came wit

  • ME58 Hangs

    HI We are on ECC 5.0. When I run ME58 and try to convert Scheduling Agreement assigned PRs into Schedule Lines, system hangs in the following context: There is not enough open qty in Scheduling Agreement. It should be giving an error message and exit

  • Every time I go to the iTunes app it boots me off

    When I go into the iTunes app, I click on the area to view all songs and as soon as my iPod downloads all of the songs the app stops and it takes me back to the home page for my iPod. Any fixes for this?? I just bought and loaded a new iTunes card an

  • No photos in Photostream in iphoto

    When I try to look at my photostream in iPhoto (v 9.3.2) it tells me that there are no photos there. However: - on my iPhone and iPad I see my last 1000 photos in photostream - on my Mac, photos are automatically getting transferred into new events (

  • SharePoint - Changed SQL Server but DPM still References Old One

    Hello I have changed my SQL Server for SharePoint 2010 from Server1 to Server2. Everything is working OK. So I need to re-setup DPM as it is referencing the old instance. I have uninstalled the protection agent for SharePoint on my Web Front End. I h