Make an existing Java webapp Flex-compatible

Hi,
I am aware that the kind of help I'm after can probably be
found somewhere, either on these forums or by googling... I just
can't find it.
My situation is as follows: I have an existing Java webapp
running on Tomcat5, and I would like to make the relevant changes
to that back end so that it can be accessed using Flex.
Knowing nothing about Flash myself and being purely a Java
developer... where can I start ?
I have tons of Java beans and the DAO logic that goes with
them already implemented, what I'm lacking is a way to make those
"available" to a Flex application. From what I have been reading,
AMF would be the best way to have Flex and Java communicate, but as
I said I don't know how to start working on that integration.
How do I "flexify" an existing Java webapp running on its own
Tomcat ?
Any help will be greatly appreciated, I'm completely new to
all this.

I would get FDS, or the latest version which is now
re-branded as LiveCycle
Data Services (LCDS) and look at a RemoteObject example. The
basic idea is
that you have facade classes in /WEB-INF/classes (or in a jar
in /WEB-INF/lib)
of your flex.war file and then you configure destinations
with the "remoting
service". The Flex client code can use the RemoteObject API
to access these
destinations. A channel is used by the client and server to
exchange information
and the translation from ActionScript to Java is handled for
you. You can
map custom typed ActionScript classes to your Java beans
using the special
[RemoteClass(alias="...")] metadata and as long as you have
public getter/setter
properties that match on the client and server, and a public
no-args constructor
on both ends, the types should be automatically
interconvertable.
There should be lots of websites out there that discuss this
too as it's
quite a popular way to get Flex to talk to Java.

Similar Messages

  • [svn] 2494: Make DependencyChecker Java 1.4 compatible.

    Revision: 2494
    Author: [email protected]
    Date: 2008-07-15 13:34:46 -0700 (Tue, 15 Jul 2008)
    Log Message:
    Make DependencyChecker Java 1.4 compatible. Basically just comment out generics, switch for-loop styles from 1.5 syntax, and add some casts. Had to change the build file so it'll target java 1.4 to support asserts.
    This change should be merged to all 3.x branches but not into trunk.
    QE: No
    Doc: No
    Bugs: -
    Reviewer: Jono
    Modified Paths:
    flex/sdk/branches/3.0.3/build.xml
    flex/sdk/branches/3.0.3/tools/dependencychecker/flex/tools/dependencychecker/DependencyCh ecker.java
    flex/sdk/branches/3.0.3/tools/dependencychecker/flex/tools/dependencychecker/FrameworkSwc DependencyRules.java
    flex/sdk/branches/3.0.3/tools/dependencychecker/flex/tools/dependencychecker/nodes/DefNod e.java
    flex/sdk/branches/3.0.3/tools/dependencychecker/flex/tools/dependencychecker/nodes/DepNod e.java
    flex/sdk/branches/3.0.3/tools/dependencychecker/flex/tools/dependencychecker/nodes/Depend encyNode.java
    flex/sdk/branches/3.0.3/tools/dependencychecker/flex/tools/dependencychecker/nodes/Librar iesNode.java
    flex/sdk/branches/3.0.3/tools/dependencychecker/flex/tools/dependencychecker/nodes/Librar yNode.java
    flex/sdk/branches/3.0.3/tools/dependencychecker/flex/tools/dependencychecker/nodes/Script Node.java

    If you think it is the GC, then you can verify,
    confirm, and then tweak (use other GCs):
    http://java.sun.com/docs/hotspot/
    That's why i was asking how to switch back to 1.4.1 behaviour.
    Which gc was default in 1.4.1? how do I set the same with 1.4.2?
    Also make sure you are using -server, if the Server
    VM is not the default one.
    You should say which ones; nobody is psychic in this
    forum :)For previous results, the following options were used:
    -Xconcurrentio -Xrs
    -> HttpUrlConnection (sun) with no options
    -> java 1.4.1 24% > 100ms
    -> java 1.4.2 53% > 100ms
    -> HttpUrlConnection (sun) with option -server
    -> java 1.4.2 41% > 100ms
    -> HttpUrlConnection (sun) with options -server -Xconcurrentio -Xrs
    -> java 1.4.1 10% > 100ms
    -> java 1.4.2 30% > 100ms

  • BlazeDS configuration with coldfusion/java No destination 'testClass' exists in service flex.messaging.services.RemotingService"

    Hi
      I have an application which requires interaction with both coldfusion and java.I have taken the configuration files from the blazeDS turnkey project and added it to my application.My application server is  coldfusion  deployed in a weblogic.I was able to call coldfusion from my flex but whenever i try making java calls i get the following error
    [RPC Fault faultString="No destination 'testClass' exists in service flex.messaging.services.RemotingService" faultCode="Server.Processing" faultDetail="null"]
    services-config file is as follows
    <?xml version="1.0" encoding="UTF-8"?>
    <services-config>
        <services>
            <service-include file-path="remoting-config.xml" />
            <!--<service-include file-path="proxy-config.xml" />
            <service-include file-path="messaging-config.xml" />-->
        </services>
        <security>
            <login-command class="flex.messaging.security.JRunLoginCommand" server="JRun"/>
            <!-- Uncomment the correct app server
            <login-command class="flex.messaging.security.TomcatLoginCommand" server="Tomcat"/>
            <login-command class="flex.messaging.security.WeblogicLoginCommand" server="Weblogic"/>
            <login-command class="flex.messaging.security.WebSphereLoginCommand" server="WebSphere"/>
            -->
            <!--
            <security-constraint id="basic-read-access">
                <auth-method>Basic</auth-method>
                <roles>
                    <role>guests</role>
                    <role>accountants</role>
                    <role>employees</role>
                    <role>managers</role>
                </roles>
            </security-constraint>
            -->
        </security>
        <channels>
            <!--  CF Based Endpoints -->
            <channel-definition id="my-cfamf" class="mx.messaging.channels.AMFChannel">
                <endpoint uri="http://localhost:7002/flex2gateway/" class="flex.messaging.endpoints.AMFEndpoint"/>
                <properties>
                    <polling-enabled>false</polling-enabled>
                    <serialization>
                        <instantiate-types>false</instantiate-types>
                    </serialization>
                </properties>
            </channel-definition>
            <channel-definition id="cf-polling-amf" class="mx.messaging.channels.AMFChannel">
                <endpoint uri="http://{server.name}:{server.port}{context.root}/flex2gateway/cfamfpolling" class="flex.messaging.endpoints.AMFEndpoint"/>
                <properties>
                    <polling-enabled>true</polling-enabled>
                    <polling-interval-seconds>8</polling-interval-seconds>
                    <serialization>
                        <instantiate-types>false</instantiate-types>
                    </serialization>
                </properties>
            </channel-definition>
            <channel-definition id="my-cfamf-secure" class="mx.messaging.channels.SecureAMFChannel">
                <endpoint uri="https://{server.name}:{server.port}{context.root}/flex2gateway/cfamfsecure" class="flex.messaging.endpoints.SecureAMFEndpoint"/>
                <properties>
                    <polling-enabled>false</polling-enabled>
                    <serialization>
                        <instantiate-types>false</instantiate-types>
                    </serialization>
                </properties>
            </channel-definition>
            <!--  Java Based Endpoints -->
            <channel-definition id="java-amf" class="mx.messaging.channels.AMFChannel">
                <endpoint uri="http://localhost:7002/flex2gateway/amf" class="flex.messaging.endpoints.AMFEndpoint"/>
            </channel-definition>
            <channel-definition id="java-secure-amf" class="mx.messaging.channels.SecureAMFChannel">
                <endpoint uri="https://{server.name}:{server.port}{context.root}/flex2gateway/amfsecure" class="flex.messaging.endpoints.SecureAMFEndpoint"/>
            </channel-definition>
            <channel-definition id="java-polling-amf" class="mx.messaging.channels.AMFChannel">
                <endpoint uri="http://{server.name}:{server.port}{context.root}/flex2gateway/amfpolling" class="flex.messaging.endpoints.AMFEndpoint"/>
                <properties>
                    <polling-enabled>true</polling-enabled>
                    <polling-interval-seconds>8</polling-interval-seconds>
                </properties>
            </channel-definition>
            <!--
            <channel-definition id="java-http" class="mx.messaging.channels.HTTPChannel">
                <endpoint uri="http://{server.name}:{server.port}{context.root}/flex2gateway/http" class="flex.messaging.endpoints.HTTPEndpoint"/>
            </channel-definition>
            <channel-definition id="java-secure-http" class="mx.messaging.channels.SecureHTTPChannel">
                <endpoint uri="https://{server.name}:{server.port}{context.root}/flex2gateway/httpsecure" class="flex.messaging.endpoints.SecureHTTPEndpoint"/>
            </channel-definition>
            -->
        </channels>
        <logging>
            <target class="flex.messaging.log.ConsoleTarget" level="Error">
                <properties>
                    <prefix>[BlazeDS] </prefix>
                    <includeDate>false</includeDate>
                    <includeTime>false</includeTime>
                    <includeLevel>false</includeLevel>
                    <includeCategory>false</includeCategory>
                </properties>
                <filters>
                    <pattern>Endpoint.*</pattern>
                    <pattern>Service.*</pattern>
                    <pattern>Configuration</pattern>
                    <pattern>Message.*</pattern>
                </filters>
            </target>
        </logging>
        <system>
           <!-- <manageable>false</manageable>-->
            <!--
            <redeploy>
                <enabled>true</enabled>
                <watch-interval>20</watch-interval>
                <watch-file>{context.root}/WEB-INF/flex/services-config.xml</watch-file>
                <watch-file>{context.root}/WEB-INF/flex/proxy-config.xml</watch-file>
                <watch-file>{context.root}/WEB-INF/flex/remoting-config.xml</watch-file>
                <watch-file>{context.root}/WEB-INF/flex/messaging-config.xml</watch-file>
                <watch-file>{context.root}/WEB-INF/flex/data-management-config.xml</watch-file>
                <touch-file>{context.root}/WEB-INF/web.xml</touch-file>
            </redeploy>
             -->
        </system>
    </services-config>
    remote-config.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <service id="remoting-service"
        class="flex.messaging.services.RemotingService"
        messageTypes="flex.messaging.messages.RemotingMessage">
        <adapters>
            <adapter-definition id="cf-object" class="coldfusion.flash.messaging.ColdFusionAdapter" default="true"/>
            <adapter-definition id="java-object" class="flex.messaging.services.remoting.adapters.JavaAdapter"/>
        </adapters>
        <default-channels>
            <channel ref="my-cfamf"/>
        </default-channels>
        <destination id="ColdFusion">
            <channels>
                <channel ref="my-cfamf"/>
            </channels>
            <properties>
                <source>*</source>
                <!-- define the resolution rules and access level of the cfc being invoked -->
                <access>
                    <!-- Use the ColdFusion mappings to find CFCs, by default only CFC files under your webroot can be found. -->
                    <use-mappings>false</use-mappings>
                    <!-- allow "public and remote" or just "remote" methods to be invoked -->
                    <method-access-level>remote</method-access-level>
                </access>
                <property-case>
                    <!-- cfc property names -->
                    <force-cfc-lowercase>false</force-cfc-lowercase>
                    <!-- Query column names -->
                    <force-query-lowercase>false</force-query-lowercase>
                    <!-- struct keys -->
                    <force-struct-lowercase>false</force-struct-lowercase>
                </property-case>
            </properties>
        </destination>
    <destination id="testClass">
            <properties>
                    <source>TestClass</source>
            </properties>
    <adapter ref="java-object" />
            <channels>
                <channel ref="java-amf"/>
            </channels>
        </destination>
        <destination id="testClass2">
            <properties>
                    <source>TestClass2</source>
            </properties>
      <adapter ref="java-object"/>
            <channels>
                <channel ref="java-amf"/>
            </channels>
        </destination>
    </service>
    Can anyone please tell me where i m  going wrong.Is that because i m using flex2gateway for java calls?.I used it since it was how it has been configured in the turnkey project for coldfusion.I have replicated the file as it was there and since it is using flex2gateway even for javaEndpoints i felt we could use the same.
    regards
    Sidd

    Thanks for the reply. Yes, I did compile all the Java and it
    works OK with a simple Java program. It just will not work in a
    Flex application.
    The java classes are:
    RRA:
    package blah.myPackage;
    import java.util.List;
    import java.util.Collection;
    import flex.data.DataSyncException;
    import flex.data.assemblers.AbstractAssembler;
    class RRA extends AbstractAssembler
    public Collection fill( List fillParameters )
    RRS service = new RRS();
    return service.getSome();
    RRS:
    package blah.myPackage;
    import java.util.ArrayList;
    import java.util.List;
    import java.sql.*;
    import flex.EORS.*;
    class RRS
    public List getSome()
    ArrayList list = new ArrayList();
    String str = "bob";
    RR rr = new RR(str);
    list.add(rr);
    return list;
    RR:
    package blah.myPackage;
    class RR
    private String name;
    public RR() { }
    public RR(String name)
    this.name = name;
    public String getName()
    return this.name;
    public void setName(String name)
    this.name = name;
    I started with something that retrieved data from a database
    but watered it down just to try and get some kind of communication
    between Flex and Java.

  • Retrieving existing Java session

    Hi,
    i'm running a web application in java.  The webapp contains JSP pages which contain a Flex application.
    The Flex app is configured to communicate with the Java on the server side, via BlazeDS.
    I'm able to call Java services fine but unfortunately, when i do this, BlazeDS creates a new instanciation of Java classes instead of checking if there already is an existing one.
    So my question is is it possible, through BlazeDS, to retrieve an existing java session and existing java class instances?
    Thank you in advance for your insight
    Best regards
    Pier

    I still don't understand because your questions sounds too easy...
    All you need to do is change your
    public void main (String[] args)
    To
    public void main_progname(String[] args)
    and call it from a servlet.
    You can create 'args' from values from request.getParameter(<string>);
    That's all there is to it.
    Mike
    --- Tom DelGiudice <[email protected]> wrote:
    I am hoping to use the bulk of exisiting java
    programs in a step wise
    transition to total replacement with weblogic JSP
    and servlets. At first I
    would create the front end with weblogic jsp using
    the java programs for the
    business logic. Then I plan to build any new
    business logic with JSP
    servlets, and EJB still using the old java
    applications. Eventually the
    java apps would be phased out. A total renovation
    would be the right way to
    go, but today's IT management prefers small short
    term successes even if the
    total cost is greater. I hope this gives you the
    info you need to give me
    some insight. Thanks for your response Thomas
    DelGiudice"Mike Reiche" <[email protected]> wrote:
    >
    Please explain a little more why they need to be integrated into WL.
    Is there something
    specific in WL that you wish to use?
    Mike
    "Thomas DelGiudice" <[email protected]> wrote:
    Can anyone tell me how I can integrate existing java programs into weblogic.
    I hope to integrate these programs without converting them into beans
    or
    servlets.
    Thanks in advance Thomas DelGiudice

  • Use Sun Java Studio 2 with Existing Java Application

    I have started using Sun Java Studio 2 and having fun and little difficulty creating a new Java web application from scatch. My question is where do I find information on Java Studio configuration to allow Java Studio to load up and modify Java server pages/forms in an existing Java application that I did not write?
    The Java application has been created with Javabeans and using BEA Weblogic version 7, with a SQL-Server 2000 database backend.
    Below is a bit of code out of one of the main Java forms.
    <%@ page buffer="256kb" autoFlush="false" errorPage="../../common/system/error.jsp"
    import="psdi.jsp.beans.*, psdi.jsp.common.*, psdi.jsp.app.wotrack.*, psdi.jsp.util.* , psdi.mbo.* , psdi.util.* "%>
    I have looked around and have not found what I need to setup in Java Studio to allow me to load up a form and view it in the Visual designer, I keep getting errors on the psdi. references and cannot load up any pages.
    I see on the server install ia folder under the main root <DIR> called <apps>, and inside the <apps> folder is a folder called <jsp> and in the <jsp> folder are sub folders for each main module within the application with all the related .jsp files. I have been manually editing the .jsp files using Windows Notpad and saving the changes. Then I rebuild the .ear file and my changes work fine. Since I have a lot of changes to make there has to be a better way than using Notpad.
    My hope is somewhere is a point-by-point document on what to so I can use Sun Java Studio 2 to make my changes in a visual IDE.
    Any assistance would really be appreciated.

    Hi Giri,
    Yep, this I know,b ut when I do I get errors messages and am looking for some form of point-bypoint instuction that better explains how to setup up custom libraries in Sun Java Studio, custom tags, etc.

  • Using existing java servlet as web portlet?

    I have an existing java servlet that I am trying to use as a web portlet. When I log into portal and run the page I have placed my web portlet on, the header shows up, but not the data.
    I don't fully understand the provider.xml file (especially the renderer part), so my provider.xml file could be wrong:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <?providerDefinition version="2.0"?>
    <provider class="oracle.portal.provider.v1.http.DefaultProvider">
    <session>true</session>
    <portlet class="oracle.portal.provider.v1.http.DefaultPortlet" version="1">
    <id>1</id>
    <name>XSLSample</name>
    <title>XSL-XML Conversion</title>
    <description>performs xml conversion</description>
    <timeout>100</timeout>
    <timeoutMessage>Portlet timed out</timeoutMessage>
    <acceptContentType>text/html</acceptContentType>
    <renderer class="oracle.portal.provider.v1.RenderManager">
    <showPage class="oracle.portal.provider.v1.http.Servlet20Renderer">
    <servletClass>XSLSample</servletClass>
    </showPage>
    </renderer>
    </portlet>
    </provider>
    This is my servlet code:
    import org.w3c.dom.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.util.*;
    import java.io.*;
    import java.net.*;
    import oracle.xml.parser.v2.*;
    * This file gives a simple example of how to use the XSL processing
    * capabilities of the Oracle XML Parser V2.0. An input XML document is
    * transformed using a given input stylesheet
    public class XSLSample extends HttpServlet
    * Transforms an xml document using a stylesheet
    * @param args input xml and xml documents
    public void init(ServletConfig config) throws ServletException
    super.init(config);
    public void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException
    doGet(request, response);
    public void doGet (HttpServletRequest request,
    HttpServletResponse response)
    throws ServletException, IOException
    DOMParser parser;
    XMLDocument xml, xsldoc, out;
    URL xslURL;
    URL xmlURL;
    try
    // Parse xsl and xml documents
    parser = new DOMParser();
    parser.setPreserveWhitespace(true);
    // parser input XSL file
    xslURL = createURL("e:/testxsl.xsl");
    parser.parse(xslURL);
    xsldoc = parser.getDocument();
    // parser input XML file
    xmlURL = createURL("e:/testxml.xml");
    parser.parse(xmlURL);
    xml = parser.getDocument();
    // instantiate a stylesheet
    XSLStylesheet xsl = new XSLStylesheet(xsldoc, xslURL);
    XSLProcessor processor = new XSLProcessor();
    // display any warnings that may occur
    processor.showWarnings(true);
    processor.setErrorStream(System.err);
    // Process XSL
    DocumentFragment result = processor.processXSL(xsl, xml);
    // create an output document to hold the result
    out = new XMLDocument();
    // create a dummy document element for the output document
    Element root = out.createElement("root");
    out.appendChild(root);
    // append the transformed tree to the dummy document element
    root.appendChild(result);
    // print the transformed document
    out.print(response.getOutputStream());
    catch (Exception e)
    e.printStackTrace();
    } //END OF DOGET
    // Helper method to create a URL from a file name
    static URL createURL(String fileName)
    URL url = null;
    try
    url = new URL(fileName);
    catch (MalformedURLException ex)
    File f = new File(fileName);
    try
    String path = f.getAbsolutePath();
    // This is a bunch of weird code that is required to
    // make a valid URL on the Windows platform, due
    // to inconsistencies in what getAbsolutePath returns.
    String fs = System.getProperty("file.separator");
    if (fs.length() == 1)
    char sep = fs.charAt(0);
    if (sep != '/')
    path = path.replace(sep, '/');
    if (path.charAt(0) != '/')
    path = '/' + path;
    path = "file://" + path;
    url = new URL(path);
    catch (MalformedURLException e)
    System.out.println("Cannot create url for: " + fileName);
    System.exit(0);
    return url;
    I had to add a "doPost" to my servlet because I was getting the jserv error "Post is not supported by this URL", but that is the only thing I have changed. Do I have to use some of the "portlet" classes in my servlet? (The servlet works fine standalone in ie, just won't output anything on my portal page.)
    Any ideas will be appreciated.

    The problem is in the following line:
    out.print(response.getOutputStream());
    Portlets (unlike servlets) cannot output to a n OutputStream, but only to a PrintWriter.
    I had a similiar problem trying to output a chart. My solution was to output the chart to a file, then reference the chart by outputting a HTML img tag from the portlet, which referred to the file in the src attribute.
    null

  • Update existing Java Mapping in NWDS

    Hi,
    I need to update the existing Java Mapping. I downloaded the existing mapping from imported archive and modified it in NWDS but it is giving lots of errors regarding missing libraries(JARs).
    I just need to do a small change in code.
    Can anyone suggest how to compile it and creat a JAR and which i can upload back as an imported archive?
    Thanks in Advance.
    Regards,
    Bharat

    Hi,
    Make sure that you have the below jars or else you can find them in your XI server.
    aii_adapter_xi_svc.jar,aii_af_cci.jar,aii_af_cpa.jar,aii_af_mp.jar,aii_af_ms_api.jar,aii_af_ms_spi.jar,aii_af_svc.jar,aii_af_trace.jar,aii_map_api.jar,aii_mt_rt.jar,aii_util_xml.jar,aii_utilxi_misc.jar
    Then import these jars to Project Explorer section --> Properties --> Java Build Path --> Libraries --> Add External Jars  in NWDS.
    Compile the code.
    For making a jar file run this command from the command prompt.Input file are the source code file and the .class file.
    jar cf jar-file input-file(s)
    Regards,
    Ramkiran

  • Issues in mapping objects from java to flex - using flex4

    Hi,
    I have a class in java which i want to send to flex4 using BlazeDS as middleware. There are a few issues that i am facing and they are:
    When sending the object across (java to flex), the properties with boolean data type having value as true gets converted to properties with value as  false. Even after setting the value to true it still comes as false on flex side. Can't understand why this is happening.
    When sending the list of object containing property with boolean data type, the object on flex side does not show those properties at all. As of there were no boolean properties in that object.
    Last but not the least, When sending List<ContractFilterVO> contractFilterVOs to flex using remote call, the result typecasted to ArrayCollection does not show the holding objects as ContractFilterVOs but as plain default Object though having all the properties send, except the boolean one mentioned in above points. Basically it is not able to typecast the objects in arraycoolection but the same objects gets typecasted when sent individually.
    In all the above points i am using Remote Service through BlazeDS for connectivity with Java. I have done a lot of this stuff in Flex 3 but doing it for the first time in flex 4, is there anything that Flex 4 needs specific. Below is the pasted code for reference purpose.
    Flex Object
    package com.vo
         [RemoteClass(alias="com.vo.ContractFilterVO")]
    public class ContractFilterVO{
         public function ContractFilterVO(){
         public var contractCode:String;
         public var contractDescription:String;
         public var isIndexation:Boolean;
         public var isAdditional:Boolean;
    * Rmote Part of code
    var remoteObject:RemoteObject = new RemoteObject();
    remoteObject.destination="testService";
    remoteObject.addEventListener(ResultEvent.Result,handleResult);
    public function handleResult(event:ResultEvent):void{
         var contarctFilterVOs:ArrayCollection = event.result as ArrayCollection; //Point 2&3 probelem, if list sent form java
         var contarctFilterVO:ContractFilterVO= event.result as ContractFilterVO; //Point 1 probelem, if only single Object of type ContractFilterVO sent form java
    Java Object
    package com.vo
    public class ContractFilterVO implements Serializable 
         public function ContractFilterVO(){
         private static final long serialVersionUID = 8067201720546217193L;
         private String contractCode;
         private String contractDescription;
         private Boolean isIndexation;
         private Boolean isAdditional;
    I don't understand what is wron in my code on either side, it looks syntactically right. It would be great anyone could help me point out my mistake here. Waiting for right solutions...
    Thanks and Regards,
    Jigar

    Hi Jeffery,
    Thanks for your reply, it did solve my query @ point 3 as well as point 2 where the objects in arraycollection were not geting converted and boolean properties did not appear when list of an objects were received. And hey, i did have public functions for properties defined java class, just forgot to mention here in post, sorry for that.
    The solution you gave was right, but than what if i have a VO which has multiple List of objects coming from Java, than i would have to create an instance of each type of object on flex side this is too tedious, is'nt it? Is there any better solution... out there.
    And jeffery do you some tricks up your sleeve for this Boolean issues to that i am facing in point 1... Still struggling with this one...
    Anyone out there would be more than welcome to point my mistake, if any and provide tips/tricks or solutions...
    Thanks again to Jeffery...
    Waiting for more solutions sooner...
    thanks and Regards,
    Jigar

  • How to move a money value from java to Flex

    According to
    http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDo cs_Parts&file=00001103.html
    I can pass a Double, Float, Long, Short, BigDecimal or the primative equivalent types from java to Flex and they will be converted into a number.
    My testcase says that only BigDecimal actually shows up on the Flex side.
    Am I missing something or is there a problem in BlazeDs/Flex somewhere?
    Bill Tims
    P.S. If you would like my sample code, I'll be glad to post it.

    Pete
    After looking at it I see why you were confused. Here is the Java object, the receiving Flex object, and the debug info from the SystemOut.log out of JBos 4.2. All of this is using Java 1.6 and Flex 3.0. I'm using the December, 2008 BlazeDs jar files.
    The variable bCd is being serialized as BCd. If I change it to bcd, everything works fine. We also tested this with php->flex and that works fine, which suggests the problem is in Blaze.
    public class Test2 implements Serializable{
    private static final long serialVersionUID = 1805176418478176484L;
    private String abc = "abc";
    private String bCd = "bcd";
    public Test2() {
    public String getAbc() {
    return abc;
    public void setAbc(String abc) {
    this.abc = abc;
    public String getBCd() {
    return bCd;
    public void setBCd(String cd) {
    bCd = cd;
    ============================================================
    package jdbcTables.businessdelegate {
    import mx.rpc.soap.types.*;
    import org.slsot.mis.jdbc.*;
    [RemoteClass(alias="org.slsot.mis.value.inquiry.Test2")]
    [Bindable]
    public class Test2
    public var abc:String;
    public var bCd:String;
    } /* Test2*/
    =============================================================
    12:24:22,084 INFO [STDOUT]-btims [BlazeDS]03/03/2009 12:24:22.084 [Endpoint.General] Channel endpoint slsot-amf received request.
    12:24:22,084 INFO [STDOUT]-btims [BlazeDS]03/03/2009 12:24:22.084 [Endpoint.AMF] Deserializing AMF/HTTP request
    Version: 3
    (Message #0 targetURI=null, responseURI=/4)
    (Array #0)
    [0] = (Typed Object #0 'flex.messaging.messages.RemotingMessage')
    operation = "callFunction"
    source = null
    destination = "accessor"
    timestamp = 0
    headers = (Object #1)
    DSEndpoint = "slsot-amf"
    DSId = "nil"
    clientId = null
    timeToLive = 0
    messageId = "9530B236-243F-4965-4252-CD944C3430F1"
    body = (Array #2)
    [0] = "Test"
    [1] = "test2"
    [2] = (Array #3)
    12:24:22,084 DEBUG [Accessor]-btims Begin Test.test2()
    12:24:22,099 DEBUG [Security]-btims t2=org.slsot.mis.value.inquiry.Test2@1b89df3
    12:24:24,678 DEBUG [Accessor]-btims End Test.test2()
    12:24:24,678 INFO [STDOUT]-btims [BlazeDS]03/03/2009 12:24:24.678 [Service.Remoting] Adapter 'java-object' called 'org.slsot.mis.Accessor.callFunction(java.util.Arrays$ArrayList (Collection size:3)
    [0] = Test
    [1] = test2
    [2] = java.lang.Object[] (Array length:0)
    12:24:24,693 INFO [STDOUT]-btims [BlazeDS]03/03/2009 12:24:24.693 [Service.Remoting] Result: 'org.slsot.mis.value.inquiry.Test2
    abc = abc
    BCd = bcd
    12:24:24,693 INFO [STDOUT]-btims [BlazeDS]03/03/2009 12:24:24.693 [Endpoint.AMF] Serializing AMF/HTTP response
    Version: 3
    (Message #0 targetURI=/4/onResult, responseURI=)
    (Externalizable Object #0 'DSK')
    (Typed Object #1 'org.slsot.mis.value.inquiry.Test2')
    abc = "abc"
    BCd = "bcd"
    1.236104664693E12
    (Byte Array #2, Length 16)
    (Byte Array #3, Length 16)
    (Byte Array #4, Length 16)

  • Adobe pro 8: how to make an existing secure encrptyed form unfillable after editing

    Hello,
    as the discussion topic says.
    adobe pro 8: how to make an existing secure encrptyed form unfillable after editing?  Is it even possible to do in adobe pro 8?
    For work there's a secure and encrptyed form.  I want to write in the form and save it so it will be unfillable / uneditable.
    this form is not created by myself, and already secure and encrypted.
    I am aware that in other recent adobe pro versions on how to do this, since they have a " save as a copy" function in the file menu. (adobe 8 doesnt have)
    I've also tried printing as a PDF, but due to encryption of the form, that doesn't come out great.
    Upgrading to a recent version of adobe pro is not an option.
    I've also tried exporting as a picture files and then recombinding them to a pdf.  I dont like this method and find it time consuming.
    If possible please inform me of a way to solve this problem , step by step with adobe pro 8's features.
    or
    show me the equivalent method to how recent versions "save a copy" of a secure encrypted form on adobe pro 8.
    Thanks in advance for reading this thread and helping.

    Well after you use save a copy, and the security is disabled, you could then re enable security features and disable editing of the form.
    EDIT: I just tested , with a PDF is in secure mode, even using a "save a copy" feature wouldn't work.
    Would finding a program to desecure the pdf be a possible option?
    Or is there a way to copy the form (with all it's editable fields) and paste it as an unsecure pdf?
    You would then be able to make new security features.
    thanks for replying and viewing this problem.

  • Can you make an existing document into a .pdf file?

    can you make an existing document into a .pdf file? I used to use pdf factory before my system recovery. I do not want to reinstall that program. Can I do this in Acrobat Reader 7?

    Adobe sell Acrobat (in various versions) to do this.
    Aandi Inston

  • HT201343 How can I make my 2013 Mac Pro been compatible with airplay & mirroring display

    How can I make my 2013 Mac Pro been compatible with airplay &amp; mirroring display ?
    Thanks for any help !

    2013 Mac Pro would be compatible
    http://support.apple.com/kb/ht5404

  • How can i use C/Javascript/php/Java in flex?

    can i embed these language into my flex project?
    since i have to check harddisk space, free memory remain. Also, i need to check the pixel of photos before the photos becoming bitmapdata
    please help~

    saipanBETTY0509 wrote:
    Subject: How can i use C/Javascript/php/Java in flex?
    can i embed these language into my flex project?
    You can't.  Why do you want to do this?
    saipanBETTY0509 wrote:
    since i have to check harddisk space, free memory remain. Also, i need to check the pixel of photos before the photos becoming bitmapdata
    I think what this means is "I want to check to see how much hard disk space is available.  Also, I need to check the pixel dimensions of an image."
    Is that right?
    There is no way in the Flash Player (as far as I know) that you can determine the amount of free disk space.  However, in AIR you can use air.File.applicationStorageDirectory.spaceAvailable to determine the storage space available in the application storage directory.
    As far as determining the dimensions of an image, there are plenty of good resources out there on that.  Maybe this one will be helpful to you?
    http://www.yswfblog.com/blog/2008/12/22/flash-10-experiments-the-warholizer-loading-and-pr ocessing-local-images/
      -Josh

  • Server/Data Push Form Java to Flex.

    Hi All ,
       In my application ( Flex3 + Java Struts) i am using RPC (HttpService) calls only . Recently i read the article about
      DATA PUSH FROM JAVA TO FLEX WITHOUT PAGE REFRESHING USING SERVER PUSH.
    Can anybody tell me more about this , how to use this in my application.
    Thanks in Advance....

    Did not worked that much with those but I know there are some embedded example
    that comes along with the blazeDS download.
    The DB is embedded but you can have a rough idea. alsoe there are some
    turtorials and odcs for both of them, Google is your friend. Also google for
    James Ward's blog and Christophe Coenraets, they have posts about this.
    C

  • Send error from Java to Flex

    I need to throw errors from Java and to receive them in Flex.
    My idea is using xml with error id and message, and maybe the Flex
    component which should show the error.
    Is there any other way to do it? Another interaction between
    Java and Flex?
    Thanks in advance
    Tuli-O

    XML wrapping error info written to response when java code
    throws and having a common component on the flex to handle this
    situation -- maybe on the fault event.

Maybe you are looking for