Remote object (Java) - intercomm Data Service (Java)

Hello

I was wondering how to make my remote Java application communication (message exchange) object to my implementation of Java data service.

The scenario is this: my Flex client application must connect to a 3rd person resource, which requires authentication. I was thinking of using a destination of the remote object that will perform the authentication of the user. It will store a session object valid (Java) to be used later to perform various reportoire to this 3rd party resource.

At one point, during the same session of Flex browser, a data destination Service needs be accessible, which will link to the 3rd party resource. Well, for this operation, I don't want the user to authenticate again on the resource party 3rd, as a valid session exists and stored by the implementation of the remote Java object.

The question is: how my class of Java Data Service will be able to speak with the class remote Java object, to get that 3rd party session to oppose (which is also a very complex Java object) and use it to connect to the 3rd party resource?

Thank you.

Had... it's by the attributes of the session... Robert

Tags: Adobe LiveCycle

Similar Questions

  • Remote objects do not support Java integers

    Another a - cha with the help of flex... it becomes bad enough... :(

    Integers do not cross over Java in ActionScript3, the use of remote objects. Strings of working on a large, all the rest are not. Where can I report this bug?

    After further research, it turns out that flex 3 is still in ALPHA and is not ready for the general public. You simply can not get reproducible results when you use Flex / Java / JBoss / BlazeDS under any form without code change.

    Flex leaves just, no errors, no nothing. 10%, there is no work (return of remote objects), the rest of the time, it isn't, it returns empty objects.

    Would be great if this was tested prior to release.

  • Should I return the JSON object or object java SOA?

    Hi gurus,

    A question that I hope makes sense - can SOA return a JSON object JAVA object, not XML?

    Thank you

    Anatoliy


    First "SOA" is not a thing, so it's difficult to give a Yes or no

    This is a technical product feature if it will be possible to expose data in xml/json/etc. formats

    When we look at the Oracle portfolio, we have a preview for example Oracle SOA Suite and Oracle Service Bus (other Oracle products can do the same thing).

    With these two products, you will be able to represent your data in other formats in addition to XML.

    some links to help you get started.

    https://blogs.Oracle.com/jeffdavies/entry/using_json_with_oracle_service

    http://Biemond.blogspot.nl/2010/05/HTTP-binding-in-SOA-Suite-11g-PS2.html

    http://javaoraclesoa.blogspot.nl/2012/12/receiving-JSON-requests-in-Oracle-BPEL.html

    Oracle Service Bus can also store Java objects in jms queues, so, like, that you can carry your data too.

    http://www.xenta.nl/Blog/2011/09/01/Oracle-service-bus-processing-Java-object-messages-with-JMS-transport/

    Hope it will be a little helpful

  • Empty data service returns an object

    Hello

    I'm calling from the flex data service to load my data grid. In debugging, I see the arrraycollection in the fill method is returned empty. Here are the details...



    My .java file has the same name with the game and have access to functions that are set by my assembler of java class.
    I'm calling other methods of filling and they seem to work except this one, well...

    The problem was that the name of the destination 'codecoverage' was identical to that of one of the packages where my .java file was there. Changed this name and things started working...  :-)

  • sending objects java to create a flex chart

    Anyone know the best practice to transfer data from a database to generate a flex chart?

    I have a Java class axis with these variables:

    String ID;
    Date of departure;
    End date;
    int min;
    int max;
    int incr;
    String title;
    Signal chain;
    String type;
    List of data;

    And the list is an array of points defined in a class called DataPoint:

    public Date point1;
    public long point2;

    I pass an array of Axis objects to the Flex application and try converting it to actionscript object:

    package factory.data {}
    [Bindable]
    [RemoteClass(alias="factory.data.Axis")]
    public class AxisObject {}

    public var ID:String;
    public var: Start Date;
    public var: End Date;
    public var min:int;
    public var max: int;
    public var incr:int;
    public var title: String;
    public var signal: String;
    public var type: String;
    public var: data table;
    }

    and I for example accesses the title, but is unable to get the array of data point in the chart. Moreover, when I debug it gives me the following errors:

    ReferenceError: Error #1056: cannot create factory.data.AxisObject endDate property.
    ReferenceError: Error #1056: cannot create dataList to the factory.data.AxisObject property.

    Thanks for any help you can offer.

    It seems that your Java class properties have expanded by default. Please make sure that the getters and setters for the properties are public and follow Java beans, naming conventions. Can you also try to create a DataPoint class in the Flex application and map it to the respective Java class. One more thing, it is that can you change the type of variable 'data' in the Flex application to collection ArrayCollection.

    I hope this helps.

  • Disaggregation of data in a remote object

    Currently I have a graph that gets its data by using a connection to the remote object. The graph currently shows a month value of data. Now, I need to get these weekly monthly data. The client prefers to have distributed data acroos four cards weekly instead of a single monthly chart. The customer would then simply click a button "Next" or "Previous" to scroll through the cards.

    I know that I just changed the (CFC) function that calls for the data to return only a weeks worth of data, but I don't want to make a call to separate data, whenever the user clicks 'Next' or 'previous '.

    Is there a way to enter all data of all month and then divide into sets of weekly data within the app?

    I found this one. If I add an hSlider with thumbs I put the inches with just a couple of functions. Basically when the user clicks on buttons, a function is called that transmits a predetermined how many ticks value to move.

    The HSlider has a property called 'values' which is all thumbs. With the help of a few simple functions that they can easily be manipulated.

    Setting the visible property of the slider to 'false' will keep focused on all navigation buttons.

  • ADFBC change - automatic updating using PUSH - Data Service entity Active?

    Hi all

    Jdev Version: 11.1.1.7.1

    Summary of the problem: I have a table in the user interface based on a line of open readonly SQL base tickets showing VO. The queue will be worked by several people of support at the same time. So, it is ideal that the queue Auto - refreshes to collect a ticket from the table in the user interface if someone else picked up the ticket & closed. The UI is equipped with filters - so think the option is to push to an activeOutputText and then refresh the table UI using PPR.

    Ofcourse Poll is an option - but am inclined to PUSH as it seems most optimal.

    But the documentation around the use of live data for ADFBC is very confusing. Most of the examples out there talking about external data sources or a direct change in DB as an event in a first time - not a change of entity as an event trigger object. I have a few queries-

    1. is JMS the only way by which the changes of the entity object can be listened to or is there any other mechanism?

    2. on the binding of the tree on the definition of the page, we see ChangeEventPolicy with an option like "push." When is it useful?

    3. any good example of simple use ADFBC with live data?

    4. is my hypothesis on the af: poll be bad valid? Leave the configured push with "long-polling" is much better than a 'af:poll '.

    Thanks in advance!

    1. is JMS the only way by which the changes of the entity object can be listened to or is there any other mechanism?

    I guess you can use any type of mechanism to queue, JMS is 'natural' because that is part of Java EE (so it is included in the Java EE as Weblogic servers)

    2. on the binding of the tree on the definition of the page, we see ChangeEventPolicy with an option like "push." When is it useful?

    It is used in combination with the active data

    3. any good example of simple use ADFBC with live data?

    http://technology.AMIS.nl/2012/06/19/notifying-ADF-applications-of-database-changes-fast-and-lean-using-Active-data-service-for-server-to-client-push-part-two/

    4. is my hypothesis on the af: poll be bad valid? Leave the configured push with "long-polling" is much better than a 'af:poll '.

    Well, that depends on the number of users, refresh rate...

    But for your use case, push is probably much better than af: poll

    Have you thought about putting your VO readonly to the module of the shared application (to the level of the application): Sharing of Instances of the Application Module View (this was also supported for notifications of changes unnecessary db)?

    Dario

  • ArrayCollection collection do not fill after calling first Data Services

    I am filling a collection ArrayCollection using a call for data by the following code:

    [
    Bindable]
    
    public var srv:RemoteObject;
    
    var acCountries:ArrayCollection; 
    
    if
    
    
     (srv == null){srv = 
    new RemoteObject();srv.destination = 
    
    "trip"; }
    acCountries = srv.getAllCountries.lastResult;
    srv.getAllCountries();
    
    
    
    

    ArrayList is not populted during the first call.  The java backend data service method is called, but the ArrayCollection collection is not populated until the time of the second (or third) the code is executed.

    I tried to walk through the debugger, but it is unclear what I does not initialize correctly.

    Hello

    Try to use the below approach instead of the adopted approach.

    [

    Bindable]

    public var srv:RemoteObject;

    private function getAllCountries():void

    {

    var acCountries:ArrayCollection;

    if (srv is Nothing)

    {

    SRV =

    new RemoteObject;

    SRV.destination =

    'journey';

    }

    srv.addEventListener (ResultEvent.RESULT, countriesResultHandler);

    srv.addEventListener (FaultEvent.FAULT

    countriesfaultHandler);

    srv.getAllCountries ();

    }

    private function countriesResultHandler(result:ResultEvent)

    {

    Check here the result by debugging object and replace the threshold accordingly

    acCountries = result.countries;

    }

    private function countriesfaultHandler(fault:FaultEvent)

    {

    Alert.Show)

    "Error: ' + fault.message);

    }

    In the approach you used you bind the data to the ArrayCollection collection by making use of the lastResult object.

    But you use the below line and send the result at the same time...

    acCountries = srv.getAllCountries.lastResult;

    srv.getAllCountries ();

    Here you don't know when the acCountries arraycollection collection will be linked to the lastResult object. Given that it is an asynchronous operation for the first time that you control the acCountries arraycollection collection you have all the data. Her approach always better and good use of event handlers in response as the way I used so that you will know exactly when took place the answer/result and if no fault or so.

    If this post answers your question or assistance, please mark it as such.

    Hope this will make things clear...

    Thank you

    Jean Claude Chari

  • Flex Data Services integrated into Oracle Web Service Proxy

    I am trying to invoke a service proxy web created with Oracle JDeveloper IDE via Flex Data Services.
    I created an assembler class and defined actionscript objects that are required to serialize web service data and then call the dataservice with the id provided in the datamanagement.config file.

    When I try to debug the application, the class of the assembler is not affected, I added a breakpoint in the class, but on beforehand the exception is already thrown.

    Appears in the following stackTrace:
    [Flex] Order receipt: TCCommand [Cmd: 0, MethodName: null, TrxID: 3.0]
    [Flex] Has started the transaction using jndi name: java: comp / UserTransaction
    [Flex] Transaction committed
    [Flex] Response of the AMF financial/RTMP serialization
    Version: 3
    (Order method = _error (0) trxId = 3)
    (Print object #0 'flex.messaging.messages.ErrorMessage')
    rootCause = null
    destination = "dossierCreation".
    headers = (1 item)
    correlationId = "823B7A23-8463-0D24-0D39-A7FF8080B3A7."
    faultString = "there is an error unhandled on the server. javax/xml/rpc/ServiceFactory.
    messageId = "DF26CC97-B619-EAB1-191F-3FF02B998D49."
    faultCode = "Server.Processing".
    timeToLive = 0.0
    extendedData = null
    faultDetail = null
    clientId = "DF26CC00-580E-7285-F10F-720471C6BBE5".
    timestamp = 1.192524481046E12
    body = null

    I found the problem, I had to configure JOTM in my tomcat server to allow transactions.

  • BB Simulator, get: "unable to connect to the selected Mobile Data Service, please try again later."

    I run MDS firstly, it seems well, window is open. But when I run the Simulator, in my case 8300. I get error when you try to access any web resource: unable to connect to the selected Mobile Data Service, please try again later.

    I've initially tried to do this on win7 and moved to xp, which solved my problem of MDS, but I still can't get networking funciton on the Simulator. All that I'm missing? Need to make

    Had, it works with the help of Michael on StackOverflow.

    On Win7.

    (1) uninstalled java and things bb.

    (2) fresh installed JDK 6 with the SDK

    (3) path added to jdk/bin to the path environment variable

    (4) downloaded Simulator runing 4.2 os No 4.5

    (5) installed MDS and Simulator in folder BlackBarry under C: /, runing administrator installation

    (6) powershell started as an administrator

    (7) sailed to MDS folder via powershell run.bat and executed

    8) sailed to BB Simulator via powershell folder and run 8300.bat (downloaded 8300 simulator)

  • What "vsphere client lib" or "data-services - 1.0.0" jar file to use in client plugin vsphere-web

    My client plugin project vsphere web contains the two files jar "vsphere-client-lib" or "data-services - 1.0.0. These two jars has many common classes with identical or different method signatures. I used the DataException class in my code that uses the signature of the method of the vsphere client file - lib.jar.

    When I build the project, then sometimes data-services - 1.0.0 jar file gets loaded first and so, build becomes due to a lack of signature of the method.

    I need to know why there are so many classes common to these two pots?

    Can we use only single (also available in the sdk directory) jar of vsphere-client-lib pot instead of data-services - 1.0.0 jar in plugin?

    We can achieve all features using vsphere-client-lib pot instead of data-services jar file - 1.0.0.

    Simply compile your Java with client/vsphere-Java code - lib.jar.  I don't know why you use data-service - 1.0.0 (and where you found it). It is not part of the SDK and is not the doc or samples.

  • [Problem] Get data (MySQL + PHP Zend AMF) Data/Services

    Hello

    IM using Zend AMF PHP in Flash Builder 4 to access a MySQL database.

    I have a few methods in php automatically generated by Zend AMF.

    My methods is to manipulate a chart of accounts.

    A method to get all the accounts etc...

    I put the getAllAccounts method data in a datagrid.

    But Im making a login system and I have a method with a parameter: getAccountByName ($name)

    I need to know, how I can put this method in the AC code example...

    I need to know if already, there is an account with 'X' name and for that, I need to run getAccountByName.

    Someone help me?


    Thank you

    Renan.

    I don't know if you use the built-in tools of FB4 to hang your services or write your ActionScript by hand, but one approach is to use a RemoteObject and a CallResponder.  (If you use the built-in tools, you can probably tap into the existing remote object that was generated by FB and simply create a new CallResponder).

    If you are coding by hand, it would be something like:

    var tempRemoteObject:RemoteObject = new RemoteObject;

    tempRemoteObject.source ("THE NAME OF YOUR PHP SERVICE');

    I guess you already have your xml services configuration file up

    var tempCallResponder:CallResponder = new CallResponder();

    tempCallResponder.addEventListener (ResultEvent.Result, allAccountsLoaded);

    then call your php through your remote object method and assign it to your answering machine call

    tempCallResponder.token = tempRemoteObject. getAccountByName("X");

    private void allAccountsLoaded(event:ResultEvent):void {}

    here your data returned through "event.result";

    }

    Thus, for example, if you had a user login text entry components named 'userLoginTxt' and 'passwordTxt' with a 'login' button it would be something like:

    private function login (): void {}

    tempCallResponder.token = tempRemoteObject. getAccountByName (userLoginTxt.text, passwordTxt.text);

    }

    who calls your method of php and send your two settings (userLogin and password), which of course runs the query on the database and returns a result.

    There is probably an easier way to do using the tools integrated to FB, but I usually manually code a bunch of stuff.  in any case, it's a way to call/send data to your service.

  • Objects of personalized data and Qs Contact deleted

    We have a lot of custom data objects mapped to members of our contact base. If we remove a contact from the contact database, I'm guessing that the CDO remains, but it is mapped is no longer. Is this correct? And what happens to the mapping If the contact is added to the contact database? Don't mapping reappear, or is this something we need to do manually?

    Thank you.

    The LCO will remain if a contact is deleted.  If return the contact, that contact has a new id and does not automatically remap.  You must remap it or have a data service that will pick up a game map the folder manually.

  • Updating of the Data Services loses configured enter/return types

    v 4.0.1

    I have several configured data services (all PHP services).  I have about 20-25 functions defined in all 6 services, but 4 functions will surely lose the enter/return types configured each time a manual refresh or auto data occurs.  For example, I have a function:

    saveOrder(OrderHeader:Object,_LineItems:Object):Object

    When I right click and 'configure the Types of entry... '. ", and then"configure return Type... ". "I can set the appropriate without any error types.  I get so I expect the function definition:

    saveOrder(OrderHeader:OrderHeaderFlex,_LineItems:LineItemFlex[]):Boolean

    My ACE and PHP code seem to have errors, I've tested successfully this function repeatedly.  However, if I right-click and choose "Refresh" on my name of service or the service itself, the function returns the definition of the unknown.  He will go even after the automatic update, which produces from time to time.  I can configure the types of data and then immediately, click Refresh and this function will return to the unknown, even if there has been absolutely no code changes.  I have other services and functions in the same project (some that use the same types of data involved above) who do not have this behavior.

    Even when these functions "lose" data type configuration, my project will still compile and affected functions will work as expected.

    This occurs because of a bug in Zend. See the bug related to FB and the bug of zend.

    FB-27016

    ZF-10365

    -blandine

  • Flex Builder 4 Data Service (PHP) integration

    Hello

    Preface:

    a database of existing MySQL (Bioographies of Artists) has created a form of dataservice

    When I call the functions from the tab "Data Services" of Flash Builder 4 they work flawless. (add, delete, update)

    Assume that the next object of value has been created:

    'Artists_biography '.

    I am now trying to call service through Actionscript as follows:

    var updateObject:Artists_biography = new Artists_biography();
          updateObject.biography_de = contentToSave;
          updateObject.biography_id = biography_id;
          updateObject.artists_id = artist_id;
    updateArtists_biographyResult.token = artistsbiographyService.updateArtists_biography(updateObject);
    

    I get this:

    Error: Could not find the data for the value service: valueObjects::Artists_biography

    I also tried to use the valueObject mxml like this:

    < valueObjects:Artists_biography id = "updateObject" / >

    Even the created forms automatically produce this error

    Any hint why this happens?

    Help * please *.

    Hello

    When the PHP sample is generated from the database, data management is enabled by default on the entity of this service (in your case, it is Artists_biography).

    In this case, the update of "Artists_biography" method only accepts managed server valueObjects.

    There are 2 options if you want to use updateArtists_biography in FormGen

    1. remove the update method in assistant management of the data. Context, click feature and click on "Enable data management" and delete the "update" method

    or

    2. use the result of the getItemById operation. Cast in a valueObject, modify and transmit as an argument to the updateArtists_biography.

    -Rahma

Maybe you are looking for

  • Can I program the keyboard to function as back &amp; front key in Firefox

    I changed my keyboard and mouse for a USB combo Logitech MK250 wireless and my mouse has no buttons next and previous.It would be nice to program the button arrow left back and right-arrow to pass if possible.

  • iTunes is not rearrange playlists alphabetically

    The updated iTunes changed the way are arranged playlists? In the past (i.e. for as long as I can remember), playlists are automatically sorted in alphabetical order. Now who does no more. The playlists of new everything simply appear at the bottom o

  • Pavilion 15 laptop e009ax

    Hi all Just looking for help with my new laptop e009ax.  I'm unable to update Windows 8.1 even after the help of online support.  Looking for other forums, it seems that there is a problem with the bluetooth driver / Ralink RT3290 wireless.  I can do

  • Error 0x8004231F when you try to run back to the top

    I tried some things proposed for this error msg, but my HP Recovery is still red - only 8,01 MB of 5.09 GB free space.  The msg comes not long after the backup starts.  There is nothing in the trash and I uninstalled nearly all unused files.

  • "web platform customizations.

    Whatever it is: "The custom settings for platform customization Web configuration. What means?I googled for info but found nothing that really explains where it comes from, or what it does on my computer. What is - it related to and where it comes fr