Newbie question about Logical Data services

Lets say we want to create a Logical Data Service that will retrieve data from several web-services and aggregate the results. When a client requests data from the logical data service, a number of webservices will get invoked. Response time of these webservices can be different. We do not want to keep the client app waiting for long.. so is it possible to define a cut-off time in data service after which client gets results obtained till that point? Alternatively, does ALDSP provide support for clients that could poll a data-service to check for results of a previously submitted query?
Will appreciate your help in understanding capabilities of ALDSP and approach taken by you in similar situations.

to define a cut-off time in data service after which client gets results obtained till that point?See the fn-bea:timeout() function in the ALDSP documentation. It will do exactly what you want for web-services. Note that adding the function to a query will of course alter the query plan - which will have little/no effect for web-services - but for database access, may prevent some optimizations.
In DSP 3.0, you will be able to use the hasNext()/next() form of the mediator api and the client will only block while the first and subsequent items are being retrieved.
If you want to call DSP asynchronously - I believe ALSB allows you to create an asynchronous proxy service (JMS, for instance)

Similar Messages

  • Newbie question about livecycle data services es

    Hi all.
    i've downloaded the LiveCycle ES2 VMware virtual appliance, setup it up on a esxi server, workspace, content space, all are up and running, but here comes my question, how do i install livecycle data services in there?how do i set it up to start working with the rest?
    i've read the documentation on how to install, but i'm a bit confused.
    can anyone give me any pointers about this?
    help would be appreciated
    thanks in advance

    1) In Workbench ES2 create a process to create a new user. If you need to create a group there is also a service to create group. Create a short-lived process using the Avoka service > Create User operation. The Create User operation has the inputs depicted below.
    2) Create a process variable called 'newUserXml' of type 'xml' and declare the variable as input. Ideally, create a schema for the xml.
    3) The Create User operation has a single output, a string containing the user ID. Create a process variable called 'userID' of type 'string' and declare the variable as output.
    3) Save, check-in, and deploy the process.
    4) To test the process, invoke the process from the Workbench. For the input variable, plug data into an xml structure such as this...
    <NewUser>
    <Login/>
    <Password/>
    <CommonName/>
    <CanonicalName/>
    <Description/>
    <Email/>
    <Initials/>
    <OrgName/>
    <Address/>
    <Telephone/>
    </NewUser>
    5) If the test succeeds, you are ready to create the Flex application. If not, figure out why.
    6) Build a Flex app. Once you deployed the process, the remoting endpoint is automatically created and can be accessed by Flex. Here is a stub.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="initChannelSet()">
    <mx:Script>
    <![CDATA[
    import mx.messaging.channels.AMFChannel;
    import mx.messaging.ChannelSet;
    import mx.rpc.events.ResultEvent;
    import mx.rpc.events.FaultEvent;
    private function initChannelSet():void {
    var cs:ChannelSet= new ChannelSet();
    cs.addChannel(new AMFChannel("my-amf","http://localhost:8080/remoting/messagebroker/amf"));
    ro.channelSet = cs;
    private function submitRequest():void {
    var newUser:XML = new XML(getXmlData());
    ro.setCredentials("administrator","password");
    ro.invoke({newUserXml:newUser});
    private function remotingResultHandler(event:ResultEvent):void {
    var userID:String = event.result.userID;
    private function remotingFaultHandler(event:FaultEvent):void {
    Alert.show(event.fault.faultDetail.toString());
    private function getXmlData():String {
    var xmlStr:String = "<NewUser>"
      + "<Login>" + login.text + "</Login>"
      + "<Password>" + password.text + "</Password>"
      + "<CommonName>" + commonName.text + "</CommonName>"
      + "</NewUser>>";
      return (xmlStr);
    ]]>
    </mx:Script>
    <mx:RemoteObject id="ro" destination="MyApplication/processes/CreateNewUser"
       result="remotingResultHandler(event)" fault="remotingFaultHandler(event)"/>
    <mx:VBox>
       UI goes here...
       <mx:Button label="Submit" click="submitRequest()"/>
    </mx:VBox>
    </mx:Application>
    Steve

  • A question about: Logical data and Physical data

    Dear all,
    please anyone tell me, can datas in logical entity(view) be imported/exported into the Physical entity(table)?
    In fact, I have two tables to store datas now, but our client changed their requirements: they want to make them into a single table to store these datas. you know, if we do these, many codings/designing works must be done(changed), so I want to create a view to implement their requirments, but this will cause aother problem, coz these datas will be import/copy into the other database in the future, I did not have any experience in importing/exporting, so can you tell me?
    My English maybe poor, can you understand what is my problem?
    thanks.
    Pionner.

    When you move from (0,0) to (0,Y), only the second axis will rotate. Therefore, no pulse will be sent will be sent from encoder 1 to your DAQ card. A possible work around is to use breakpoints which will allow you to send a pulse when certain positions are reached. For more information on this, please refer to the attached example.
    Attachments:
    RTSI_with_DAQ_Modulus_Breakpoint_(on-board_re-enable).vi ‏196 KB

  • Newbie question about extracting data from events

    HI
    i am sure there is a simple solution to this, but I am getting frsutrated  trying to extract useful data from an event:
    I have set up and event listner, whatching for CHANGE on a HorizontalList
    so far so good, event handler called when a list item is clicked, and the event is passed, but what is the syntax for getting the in particular the columnIndex, which can tantalising be seen as part of the event in debug.
        public function ShowGroupTab(event:Event):void{
                var a:Number =event.target.columnIndex;
    causes this runtime error:
    ReferenceError: Error #1069: Property columnIndex not found on mx.controls.HorizontalList and there is no default value.

    First it would be better to cast your event in the proper class. In this case the event is a ListEvent. ListEvent extends Event so your code will work but be harder to maintain.
    Your problem is that you're trying to access the columnIndex property on the event.target instead of the event itself. The event.target is the component on which the action was performed, here it's a HorizontalList, and the list does not have a columnIndex property.
    Try this :
    public function showGroupTab(event:ListEvent):void{
         var a:int= event.columnIndex;

  • User Defined Transaction in Logical Data Service

    Hi
    I have few physical data services created from database store procedures. I've corresponding logical services for each of the physical data services.
    Now I've created a logical data service that calls 2 store procedures & trying to update this 2 store procs in a single transaction.
    Also I dont have a read operation in my logical data services. In this case both store proc. should take part in a single transaction & should commit or rollback as per success/failure.
    I tried testing this scenario & it fails. ALDSP was able to update first store proc. but there was an error in second store proc. so it should have rollback the entire transaction.
    Is there any way that we can have user defined transaction in logical data service?
    My Scenario:
    InsertData(RequestA,RequestB) as response
    res1 := call First Store Proc (RequestA) ;
    res2 := call Second Store Proc (RequestB);
    response := res1 + res2
    So my question was is it possible to define user transaction before making calls & have commit/rollback define around it.
    Apprecaite for your help!
    Thanks
    Pash

    I have assumed that you realize you need XA drivers for this. What is the exception you see? Something about "mixed outcome"?
    But in the case of store procedure, we cant drag & drop physical ds into logical ds. Why?Since your stored procedure updates, it should be defined in the physical ds as a "procedure" not a "function" - it sounds like it is. (procedure means it will update, function means it will not - not that it is a "stored procedure"). Because it updates it cannot be called by an xquery function because xquery is by definition read-only. It can only be called directly from the client, or from another procedure (which is XQSE, not Xquery). If you created a logical ds with a "procedure" - you could drop your procedure into that.
    created a new library procedure in which i am calling 2 physical ds assuming it will be executed in a single transaction. But it does not. Please verify.
    But it does not. Please verify.I won't verify it because it is not correct. It should be treated as though it is one transaction. And barring the bugs with JNDI/data source names and multi-data sources, I do not know how how it would not be. So either there is a misunderstanding or a new bug.
    Either way you need to open a case with customer support to resolve this. When you open your case, the more information you provide them with (i.e the smallest possible dataspace that will reproduce the problem along with DML to create the stored procedures and the tables that they use, and also any/all exceptions/stack traces and server logs).
    - Mike
    ps. there are no means to explicitly create a transaction in ODSI.

  • Question about tranferring data from iPhone 3gs to iPhone 4

    I just had a couple quick questions about transferring data from my old phone from my new iPhone 4. The reason i am wondering is because i am worried about whether i will encounter any problems when doing so.
    First off i have already sold my phone today, i reset all data and settings from the phone and gave it to my buddy so its gone. I did a full sync and backup yesterday so all the necessary files should be on my computer(windows 7). Now, im basically wondering if i will run into any problems if i restore my iphone 4 from a backup. My 3gs was running 3.1.2 on att. Now i know IDEALLY i would have updated it to iOS 4 before backing it up and used the newest version of itunes, but i did not. Does anyone think this will be a problem for me?
    Now with that out of the way, my biggest fear is losing my old data(text messages and notes mainly because i am a pack rat for those type of things) so id like to be SURE that none of my old backups will be deleted in any scenario. The reason i dont just restore it right now is because i want my new phone to be as clutter free as possible. I am going to be putting on here only the apps that i used often and would basically like to transfer over the BARE minimum; texts, notes, and highly used apps... So i guess my main question is can you transfer over only certain things like texts and notes after setting up the phone as a new phone. And if i were to set up the phone as a new phone what would happen to my old backups? Would i be able to selectively restore?
    Im afraid that it might not be a possibility to transfer only certain things even though it should be.. i should be able to select a text messages folder and put it on my new phone and be done with it... But anyway i dont want to rant. Can anyone explain to me how this all will work?
    ULTIMATE GOAL: Transfer only texts, notes, certain apps(and their data) and NOTHING ELSE.
    MOST IMPORTANT THING: Not losing texts and notes. I can deal with putting all the old **** on my new phone and cluttering/slowing it down if i NEED to.
    Thank you in advance, sorry for the long post.

    If the most important thing for you is keeping old text messages, notes, and voicemail, then you'll need to sync the phone from your existing backup. I know of no other way to access those items.
    Once you have synced to the new phone, check that you have those items that were important. Then you can reconnect your phone to iTunes, and change the sync settings to remove the apps or other items you no longer want to keep on the phone.
    iPhone backups are stored by iTunes; you can see them by opening your iTunes preferences, clicking on "Devices" and then looking in the window. You can delete old backups from here. I don't know how you can open/read the backups though.
    I don't expect you'd have any problems syncing from your old phone's backup, but it's definitely an either/or situation. Since you got rid of the old phone already, it's too late to email yourself your notes, or copy the text messages. Your previous backup is your only solution.

  • I want to question about the official service at the service center of Sony.

    I want to question about the official service at the service center of Sony.
    long since I like the models and items sony. from start playstation, cameras, camcorders up, I've ever had. and a new camera that I bought two years ie compact cameras Sony Cybershot DSC H200. as of a month ago, a camera was having problems in lenses that would not close. and setting the automatic mode to move by itself. I came to the Sony Service Center in Makassar, precisely on Jl. Shop Pengayomann A5 / 05 (0411) 442340.
    operator initially said only two weeks to work on my camera. but this week has been more dau even want to go in a month tomorrow, dated July 9, no news from the service center. and I kept the call to the office service. as well as assorted reasons. there are no spare parts or technical constraints, and the last one I call to his office, he said the factory spare part is damaged. imported directly from Singapore. I think, ko new spare part it can be damaged before using that? how the quality of this Sony spare part? ugly? not good? why?
    I was disappointed with this situation, where soon it will Eid, want to return home as well to Java. but the camera has not been settled workmanship?
    nah, roughly what is the solution of the Sony plagued with this problem? please help, because he did not know to whom to complain. operator had just said: it's up to the father alone.
    once again I asked for his help. solution. if you can before Eid arrived.
    Thank you,
    AD. Rusmianto

    Hi awwee107, 
    Welcome to the Sony Community! 
    We have forwarded your query to the relevant team for their further assistance and someone from local CC will contact you.
    Thanks!
     

  • Using a schema from a different Logical Data Service

    Is it possible to use a schema from a different Logical Data Service in a new Logical Data Service? I want to maintain just one version of the schema.

    when I try and associate a schema type the 'Select Schema Type' dialog appears. On there the scope is set to project. Next to it is 'All projects', is there a way I can get that ungreyed?I don't think so. I assume that is a remnant from ALDSP 2.x when we had the notion of an ALDSP application that contained multiple ALDSP projects and there was visibility across projects (actually just folders) in the same application.
    can I use a schema associated with another dataspace projectNo. The contents of a dataspace are not accessible from outside the the dataspace other than what is provided by the APIs. And although the schemas could be accessed via catalogservices, this isn't a standard protocol (like http://) and therefore schema processors wont' be able to use them.
    You could host your schemas in a web-application and expose them via http. Create a Dynamic Web Project and put your schemas where the content gets served from (i.e. alongside index.html), and then they would be accessible via http://<yourserver>:<port>/yourWebApp/yourSchema.xsd. All the schemaLocation in the imports would need to be relative. It would probably be easier to create your schema-hosting application first, then build your dataservices.

  • Error while executing logical data service:XP0006

    Hi,
    <br><br>
    I have one physical dataservice which is caps.ds based on oracle database. I created one method in caps.ds by name gatCap(String param). basically this method will fetch the data from the database based on input parameter. This method is working fine in physical data service.<br>. Now I created one logical dataservice named as Test.ds from this physical dataservice. I added one method getCaps(string param) method in Test.ds. Noe if i try to test this method in workshop I am getting the following error.<br><br>.System error
    weblogic.xml.query.exceptions.XQueryTypeException: ld:NewDSProj/Test.ds, line 26, column 5: {err}XP0006: "element {ld:NewDSProj/Caps}Caps { {http://www.w3.org/2001/XMLSchema}anyType }": bad value for type element {ld:NewDSProj/Test}Test { {http://www.w3.org/2001/XMLSchema}anyType }*<br><br>
    Even in Query Plan also it is showing TypeError in red color.
    <br><br>
    I am attaching the capa.ds, Test.ds and required .xsd file and server log file for your reference.
    <br>Any suggestiins please...
    <br><br>
    Regards,
    Suresh Varma.

    Hi<br>I changed the return type in Test.ds to caps.xsd. It is working fine. Thank you.<br><br>
    Now I have the following data services.<br>
    1.MRM_RESPONSE.ds--which is created from java method.This java method will read the data from xml.<br>
    2.Caps.ds--which is created for Oracle data base.<br>
    Now I created one logical data service named as Test.ds with function newFunction(String param).My intention is i want consolidated output from both physical data services based on join condition. I have the state field in both physical data services. So the output of newFunction() in Test.ds should be combination of caps and MRM_RESPONSE.<br> In Query plan for newFunction() I am not getting any error. But if I try to test I am getting the following error.<br>System error
    weblogic.xml.query.exceptions.XQueryTypeException: {bea-err}TYPE003 [{bea-err}TYPE003a]: Runtime Type Mismatch: got an xdt:untypedAtomic value<br>.
    I am attaching latest code and server log file for your reference. In the attached zip file NewSchemas is the schemain schemas project.JavaClient contains java method.
    <br>
    Thanks& Regards,
    Suresh Varma.

  • Problems with logical data service

    This is related to thread 837141 (Problems creating physical data service to relational table)
    I have been able to create the logical data service that uses the physical service (mentioned above).
    However when I try to create a library function to update (shown below)
    declare function lper:update($new as element(per:Persistance2)) as xs:boolean {*
    * let $changed :=*
    * for $n in $new*
    * let $old := lper:read($new/Project, $ew/Property)*
    * return*
    * fn-bea:replace-value(fn-bea:changed-element($old), "Value", $n/Value)*
    _let $return := {color:#ff0000}pper:update{color}($changed)_*
    * return fn:true()*
    WorkSpace Studio gives the following error (for the line underlined above, and the function in red)
    *{bea-err}FUNC002: Illegal use of side-effect procedure {ld:Physical/Persistance2}update with arity 1. Side-effect procedures cannot be invoked from a side-effect free context*
    Any idea why?

    functions, by definition, do not have side-effects. So calling something that had a side-effect (procedure) is not allowed.
    You need to create a library procedure.
    Your
    declare function lper:update($new as element(per:Persistance2)) as xs:boolean {*
    needs to be
    declare procedure lper:update($new as element(per:Persistance2)) as xs:boolean {*
    - mike
    Edited by: mikereiche on Dec 12, 2008 5:10 PM

  • Logical Data Service

    Hi all,
    I´m trying to create a phsysical data service that uses two physical data services (one Store procuredure and one table).
    I what two create a join clause between my strore procedure and my table, but i got this error message:
    +"cannot create relationship from/to any Data service other than entity data service.+
    +One or both of the data services chosen are not and entity Data SErvice"+
    What I need to do is:
    I have A AND B values as input to my logical data service.
    I need to use A and B value to get another value C in my physical data service( type: Relational Table).
    C will be physical data service (type Store Procedure) input data. The return of this procedure will be mapped in (XSD) file that represents my entity.
    Does anybody can help me?

    If I understand correctly, your need to satisfy conditions on parameters A and B with your table, so you can extract C as a result from the table and use it as a parameter in your stored procedure to return the result of the stored procedure.
    In XQuery this kind of join looks loosely like this:
    for $t in ns1:TABLE()
    where $t/column1 eq $A
    where $t/column2 eq $B
    return
    for $s in ns2:STOREDPROC($t/C)
    return
    &lt;myresulttype&gt;
    &lt;field1&gt;{fn:data($s/column1)}&lt;/field1&gt;
    &lt;/myresulttype&gt;
    The error message you have indicates that you are trying to create a relationship function. While it is possible to express joins through relationships, you can also do joins using the Query Map editor.
    The chapter "[Create Your First Data Services|http://download.oracle.com/docs/cd/E13162_01/odsi/docs10gr3/datasrvc/Create%20Your%20First%20Data%20Services.html#CreateYourFirstDataServices-CreatingaLogicalDataService]" describes how to create a join graphically using the Query Map. The only difference in your case is that you would map your join line (Explained in "Setting up a Join Condition" in the docs) would be mapped to the parameter of the stored procedure.
    Edited by: alexkotopoulis on Jan 16, 2009 1:56 PM
    Edited by: alexkotopoulis on Jan 16, 2009 1:57 PM

  • Question about displaying data

    Based on the search criteria I need to show some info. with check box on each item, but it might retrun upto fifty items (between 1 to 50 items). Should I create checkbox/output text dynamically or how do I handle this scenario? In the jspx how do I loop it and display? Thank you.

    hi user13094256
    See my reply in your other forum thread with the same question
    at Question about displaying data
    regards
    Jan Vervecken

  • Question about get web service result in actionscript and convert data format

    Hi, All
    I have question about how to get dataset from web services
    and put it in tree structure. I have 2 questions about this:
    1, How can I get data correctly in actionscript?
    I have no problem to get data by
    <mx:ArrayCollection id="acFolder"
    source="{mx.utils.ArrayUtil.toArray(MyGServices.getFolder.lastResult)}"
    />
    And display in datagrid.
    But when I try to use
    public function
    handleFolderContents(event:mx.rpc.events.ResultEvent):void{
    arData=mx.utils.ArrayUtil.toArray(event.result);
    acData=new ArrayCollection(arData);
    input.text=acData.getItemAt(0).id;
    Seems I can’t get data, it always say:
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    2, how to convert data format
    I get data from web service and want to convert it to tree
    structure, as mention below:
    I get:
    <Array>
    <id>111</id>
    <Name>Production1</Name>
    </Array>
    <Array>
    <id>222</id>
    <Name>Production2</Name>
    </Array>
    Convert to:
    <mx:XMLList id="treeData">
    <node>
    <node label="Production1" data="111">
    <node label="Production2" data="222"/>
    </node>
    </node>
    </mx:XMLList>
    Please help me.
    Thanks.

    First, don't specify the package path in the argument
    declaration. Instead import the event object:
    import mx.rpc.events.ResultEvent;
    The docs state this emphatically.
    Second, try "lastResult", in place of "result":
    arData=mx.utils.ArrayUtil.toArray(event.lastResult); // I am
    not positive about this. I maybe recall reading that result was ok
    for the event object, but maybe not.
    Finally, why do you want to convert the xml? You certainly
    could, but it would be a manual process, recursively reading the
    existing xml nodes and building the new structure, but again, why?
    Just use a labelFunction if necessary to display the nodes as
    you wish.
    Tracy

  • ALDSP , Logical Data service to PhysicalData service mapping

    Hi ,
    Need help to find out the way how to find the mapping between the Logical Dataservice to physical service using config file .
    I have requirement like depend on the Region ( Parameter) need to connect to the database . How do we achive this using an xml file ( means dynamic which out a code change ) .
    for ex:
    Think we have 3 regions names ( DAO ,APJ ,CCC). I have created 3 Physical data services for each region (which will point to 3 diff databases).
    then In the logical service I have logic like this
    If( region =='DAO')
    call the DAO Physical Srvice
    If(region == 'APJ')
    call the APJ Physical Srvice
    If(region == 'CC')
    call the CCC Physical Srvice
    So if I have to point the region 'DAO' to the APJ physical service then it required a code change . how we can avoid this hard coded mapping . Is there any way to define the region and the physical service mapping in the xml file so that if any change is required it will be a change in xml file itself with out a code change .
    Please help me . This is little bit urgent .
    Thanks in advance .
    Thanks & Regards
    Sarath

    It seems that if you are adding more regions and physical data services you will need to modify your dataspace anyway to add the new physical data services.
    Please post your ODSI/ALDSP questions on the ODSI forum - Data Service Integrator

  • Sql developer: question about exporting data

    Hi,
    we're recently working with sql-developer. i've got a question about how we can export query results to txt/csv files for use in other applications.
    First a problem: if we start a query that looks like this:
    select * from
    select * from A where start_date = &date
    ) a,
    select * from B where start_date = &date
    ) b
    where a.name = b.name
    Sql-developer asks twice to input a value for the variable 'date', although it's the same variable and it's supposed to have the same value.
    We solve this by making a script:
    first we define the variable, then we put the query.
    When we start the script, the query runs ok and sql developer asks to input the value for the variable once.
    But now the result of the query is shown in the script output. The script output seems to be limited in number of lines and difficult to export.
    So my question is: what's the best way to export query results to txt/csv files, avoiding the problem mentioned above?
    i hope there is a solution where we can use a single query or script.
    Thanks in advance!

    Using bind variables like ":date" should solve the problem of being asked twice for the same thing.
    Executing the query normally (F9), gives you the export options you require through the context menu inside the Results grid.
    Regards,
    K.

Maybe you are looking for

  • Memory Problem with Oracle10g R2 and red Hat linux  2.4.21-37.EL

    Hi All. i've a 64Bit red Hat Linux 2.4.21-37.EL , 5GB Ram , 3GB Swap Space. Oracle10g R2. i've 2 prodection database each is having 1400MB of SGA. when i check the free meory it shows only 12mb of ram is free..why..? and in swap space it's only 200mb

  • Lumia 1020 call cut outs after Black update

    My calls have problems after Black update. Either reciever can not hear me or I can not hear him for long periods. Tested SIM in other phone on same net on same location and seems to be Nokia problem.

  • Gt645m not supported for ray tracing?

    Hello guys recently i bought a laptop with 645m GPU its MSI c61 was having 2nd thought of buying the other laptop which has 650m because of $250 difference and when searched for the both GPU specs its almos the same so i just bought gt645m instead an

  • Can't Drag Icons

    I'm working in OS X 10.2.8 and all of a sudden the icons on my desktop won't move. Also, cannot use selection tool to move objects when working in Illustrator CS2 or Corel Draw. I've read all the posts listed here and tried every suggestion to no ava

  • Adobe Premier Elements10 installation on iMac fails

    Why does the installation crash?  Photoshop Elements installed with no problem. I get:  Your installation encountered errors. Please try restarting your system and installing again. (I did this - it still fails) Exit Code: 7 -------------------------