How to use AMFPHP Objects in Flex

Hi,
I have been successful in getting amfphp to return PHP objects, the question now is how can I make Flex aware of the objects?
I am invoking a remote object and the objects are returned as a result. Can they be used directly or should I use XML?

Hmm, your code seems a bit to complicated. Here's what I do:
The RemoteObject:
<mx:RemoteObject id="PHPGateway" source="yourAMFPHPClassName.ThePHPFile" destination="amfphp" showBusyCursor="true">
    <mx:method name="theFunctionYouWantToCall" result="myFunctionResultHandler(event)" fault="myFunctionFaultHandler(event)"/>
</mx:RemoteObject>
Observations:
1. yourAMFPHPClassName is the name of the folder in amfphp\services that contains the PHP classes.
2. ThePHPFile is the PHP class file (without the extension) in the yourAMFPHPClassName folder.
3. You need the <mx:method name="..." .../> to define the function in the PHP class you want  to call. The theFunctionYouWantToCall must be the exact name of the function in the PHP class (case sensitive).
The ActionScript part:
//THE BELOW EXAMPLE ONLY WORKS IF THE PHP FUNCTION RETURNS A SINGLE VALUE
//This means the PHP function has a return statement like this: return $value; or return "Test";
private function myFunctionResultHandler(event:ResultEvent):void
var PHPResult:String=String(event.result);
Alert.show(PHPResult);//will show what the PHP class returned
//THE BELOW EXAMPLE SHOWS HOW TO PASS MULTIPLE DATA TO FLEX
//This means the PHP function has a return statement like this:
//$returnValue=array();
//$returnValue['name']="George";
//$returnValue['age']=$age;
//return $returnValue;
private function myFunctionResultHandler(event:ResultEvent):void
Alert.show("Name: "+event.result.name);
Alert.show("Age: "+event.result.age);
//THE FAULT HANDLER
private function myFunctionFaultHandler(event:FaultEvent):void
Alert.show("Data could not be acquired.");

Similar Messages

  • How to use virtual keyboard in flex application

    hi..
    i am using flash builder 4,
    how to use virtual keyboard in flex?
    if any one aware of this pls reply me.......
    saran r

    hi,
    how to code for these buttons  "control,alt,delete,insert and spacebar".
    can u help me  how to program?
    i have attached the mxml code with this,
    virtualkeypad1.mxml
    <?xml  version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                    xmlns:s="library://ns.adobe.com/flex/spark"
                    xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955"  minHeight="600"
                     creationComplete="application1_creationCompleteHandler(event)"  viewSourceURL="srcview/index.html">
         <fx:Script>
             <![CDATA[
                 import flash.utils.getQualifiedSuperclassName;
                 import mx.events.FlexEvent;
                 private var inpText:String = 'inp1';
                 private var shiftState:Boolean = false;
                 private var capsState:Boolean = false;
                 protected function  keyboard_clickHandler(event:MouseEvent):void
                     this[inpText].text =  this[inpText].text+(event.currentTarget as Button).label;
                     if (shiftState == true) shift_clickHandler(null);
                 protected function caps_clickHandler(event:MouseEvent):void
                     capsState = !capsState;
                     if (capsState == true)
                         currentState = "SHIFTED" else currentState =  "PRIMARY";
                 protected function tab_clickHandler(event:MouseEvent):void
                     this[inpText].text = this[inpText].text+"    ";
                 protected function shift_clickHandler(event:MouseEvent):void
                     shiftState = !shiftState;
                     if (shiftState == true)
                         currentState = "SHIFTED" else currentState =  "PRIMARY";
                 protected function enter_clickHandler(event:MouseEvent):void
                     this[inpText].text = this[inpText].text+"\n";
                 protected function  backspace_clickHandler(event:MouseEvent):void
                     var tmpStr:String = this[inpText].text;
                     this[inpText].text = tmpStr.substr(0,tmpStr.length-1);
                 protected function  application1_creationCompleteHandler(event:FlexEvent):void
                     inp1.setFocus();               
                 protected function focus_enterHandler(event:MouseEvent):void
                     inpText = event.currentTarget.id;
             ]]>
         </fx:Script>
         <s:states>
             <s:State name="PRIMARY"/>
             <s:State name="SHIFTED"/>
         </s:states>
         <fx:Declarations>
             <!-- Place non-visual elements (e.g., services, value  objects) here -->
         </fx:Declarations>
         <s:TextInput id="inp1" y="36" width="151" horizontalCenter="0"  click="focus_enterHandler(event)" y.PRIMARY="239"  horizontalCenter.PRIMARY="42" width.PRIMARY="199"  height.PRIMARY="31"/>
         <s:Group id="keyboard" width="661" height="184"  horizontalCenter="0" y="300" focusEnabled="false">
             <s:Button x="5" y="5" label="~" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="`"/>
             <s:Button x="49" y="5" label="!" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="1"/>
             <s:Button x="93" y="5" label="@" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="2"/>
             <s:Button x="137" y="5" label="#" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="3"/>
             <s:Button x="181" y="5" label="$" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="4"/>
             <s:Button x="225" y="5" label="%" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="5"/>
             <s:Button x="269" y="5" label="^" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="6"/>
             <s:Button x="313" y="5" label="&amp;" height="43"  width="44" fontSize="24" fontWeight="bold"  click="keyboard_clickHandler(event)" label.PRIMARY="7"/>
             <s:Button x="357" y="5" label="*" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="8"/>
             <s:Button x="401" y="5" label="(" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="9"/>
             <s:Button x="445" y="5" label=")" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="0"/>
             <s:Button x="489" y="5" label="_" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="-"/>
             <s:Button x="533" y="5" label="+" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="="/>
             <s:Button x="577" y="5" label="Backspace" height="43"  width="80" fontSize="11" fontWeight="bold"  click="backspace_clickHandler(event)"/>
             <s:Button x="5" y="48" label="Tab" height="43" width="67"  fontSize="12" fontWeight="bold" click="tab_clickHandler(event)"/>
             <s:Button x="72" y="48" label="Q" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="q"/>
             <s:Button x="116" y="48" label="W" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="w"/>
             <s:Button x="160" y="48" label="E" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="e"/>
             <s:Button x="204" y="48" label="R" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="r"/>
             <s:Button x="248" y="48" label="T" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="t"/>
             <s:Button x="292" y="48" label="Y" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="y"/>
             <s:Button x="336" y="48" label="U" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="u"/>
             <s:Button x="380" y="48" label="I" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="i"/>
             <s:Button x="424" y="48" label="O" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="o"/>
             <s:Button x="468" y="48" label="P" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="p"/>
             <s:Button x="512" y="48" label="{" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="["/>
             <s:Button x="556" y="48" label="}" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="]"/>
             <s:Button x="600" y="48" label="|" height="43" width="57"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="\"/>
             <s:Button x="5" y="91" label="CapsLock" height="43"  width="80" fontSize="12" fontWeight="bold"  click="caps_clickHandler(event)"/>
             <s:Button x="85" y="91" label="A" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="a"/>
             <s:Button x="129" y="91" label="S" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="s"/>
             <s:Button x="173" y="91" label="D" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="d"/>
             <s:Button x="217" y="91" label="F" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="f"/>
             <s:Button x="261" y="91" label="G" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="g"/>
             <s:Button x="305" y="91" label="H" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="h"/>
             <s:Button x="349" y="91" label="J" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="j"/>
             <s:Button x="393" y="91" label="K" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="k"/>
             <s:Button x="437" y="91" label="L" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="l"/>
             <s:Button x="481" y="91" label=":" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY=";"/>
             <s:Button x="525" y="91" label="&quot;" height="43"  width="44" fontSize="24" fontWeight="bold"  click="keyboard_clickHandler(event)" label.PRIMARY="'"/>
             <s:Button x="569" y="91" label="Enter" height="43" width="88"  fontSize="24" fontWeight="bold" click="enter_clickHandler(event)"/>
             <s:Button x="5" y="134" label="Shift" height="43" width="106"  fontSize="24" fontWeight="bold" click="shift_clickHandler(event)"/>
             <s:Button x="111" y="134" label="Z" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="z"/>
             <s:Button x="155" y="134" label="X" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="x"/>
             <s:Button x="199" y="134" label="C" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="c"/>
             <s:Button x="243" y="134" label="V" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="v"/>
             <s:Button x="287" y="134" label="B" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="b"/>
             <s:Button x="331" y="134" label="N" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="n"/>
             <s:Button x="375" y="134" label="M" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="m"/>
             <s:Button x="419" y="134" label="&lt;" height="43"  width="44" fontSize="24" fontWeight="bold"  click="keyboard_clickHandler(event)" label.PRIMARY=","/>
             <s:Button x="463" y="134" label="&gt;" height="43"  width="44" fontSize="24" fontWeight="bold"  click="keyboard_clickHandler(event)" label.PRIMARY="."/>
             <s:Button x="507" y="134" label="?" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="/"/>
             <s:Button x="551" y="134" label="Shift" height="43"  width="106" fontSize="24" fontWeight="bold"  click="shift_clickHandler(event)"/>
         </s:Group>
    </s:Application>
    thanks in  advance,
    saran r

  • How to use lock object? what we lock either total ztable or only record?

    Hi
    How to use lock object? what we lock either total ztable or only particular record?
    Don't tell create lock object on se11 with E letter & acll it in program with eENQUEUE & DEQUEUE.
    just tell me we will lock only particular record or total ztable?
    specify with example.
    Thanks.

    Hi
      Go to SE11, in the option 'Lock object' enter the name of your lock,
    begin with 'E', suppose 'EXXXX' And create. In tab 'Tables' fill the
    table name where the record you want to lock exist and select the
    lock mode. Lock mode can be shared and exclusive. If 'shared',
    when you lock the record, other can also read data, but can not
    modify. If 'exclusive', when you lock the record, other can neither
    read nor modify the record. After save and activate, you will get two
    function module.'ENQUEUE_EXXXX' to lock record,
    'DEQUEUE_EXXXX' to release lock on one record.
    When use this function module it only lock one record at a time. It
    does not lock the table.

  • How to use swf object

    Hi have been trying to get my head around how to use swf object, I know very little javascript and so am having difficulty in modifying the code to suit my needs.  This is my page which I have used dreamweaver cs3 and have used insert>media>flash and it is working well but does not validate.  I would really appreciate if somebody could write the exact html code I need to convert this to swf object.
    http://www.kimberleywebdesign.com.au/Links.html

    You should be able to just declare a variable outside of the onComplete function and assign it the loaded object when the file loads...
    var loadedSWF:MovieClip;
    function loadComplete(e:Event):void {
         removeChild(old_mc);
         addChild( DisplayObject(LoaderInfo(e.target).content) );
         loadedSWF = MovieClip(e.currentTarget.content);
    function doStuffToSWF(){
          loadedSWF.something....

  • How to use  Business Object like Vendor or PurchasingInfo

    Hi,
    How to use Business Object ( like Vendor or PurchasingInfo ) from my Object?
    For example:
    CLASS myEntity DEFINITION.
              PUBLIC SECTION.
                   METHODS: getVendor EXPORTING pVendor TYPE Vendor.
               PRIVATE SECTION.
               DATA: aVendor TYPE REF TO Vendor.
    ENDCLASS.
    CLASS myEntity IMPLEMENTATION.
    METHOD getVendor
               pVendor = aVendor .
    ENDMETHOD.
    ENDCLASS

    Hi,
    I am giving u a demo Program for ur doubt.
    REPORT demo_class_counter .
    CLASS counter DEFINITION.
      PUBLIC SECTION.
        METHODS: set IMPORTING value(set_value) TYPE i,
                 increment,
                 get EXPORTING value(get_value) TYPE i.
      PRIVATE SECTION.
        DATA count TYPE i.
    ENDCLASS.
    CLASS counter IMPLEMENTATION.
      METHOD set.
        count = set_value.
      ENDMETHOD.
      METHOD increment.
        ADD 1 TO count.
      ENDMETHOD.
      METHOD get.
        get_value = count.
      ENDMETHOD.
    ENDCLASS.
    DATA number TYPE i VALUE 5.
    DATA cnt TYPE REF TO counter.
    START-OF-SELECTION.
      CREATE OBJECT cnt.
      CALL METHOD cnt->set EXPORTING set_value = number.
      DO 3 TIMES.
        CALL METHOD cnt->increment.
      ENDDO.
      CALL METHOD cnt->get IMPORTING get_value = number.
      WRITE number.
    For more demo programs type 'abapdocu' in the command field
    U will be getting some demo programs.
    There select the abap objects.
    Regards,
    Jagadish

  • I can't use remote object in Flex to save an image to the server.

    I have a situation where I can't use remote object in Flex to save an image to the server.
    Could someone help me with an alterntaive?
    private function doSave():void {
                    var bd:BitmapData = new BitmapData(canvas.width,canvas.height);
                    var pe:PNGEncoder = new PNGEncoder;
                    bd.draw(canvas);
                    var ba:ByteArray = pe.encode(bd);
                    myService.doUpload(ba,sIP);
        <cffunction name="doUpload" displayname="Save Signature" hint="Saves a PNG Signature" access="remote" output="false" returntype="any">
            <cfargument name="sigbytes" required="true" type="binary">
            <cfargument name="ip_suffix" required="true" type="string">
            <cfset myUUID =  RandomString('ABCDEFGHIJKLMNOPQRSTUVWXYZ',15)>
            <cfset name = expandPath("converted_pngs/signature_#arguments.ip_suffix#_#myUUID#.png")>
            <cffile action="write" file="#name#" output="#arguments.sigbytes#" />
        <cfset SigFileName = "#arguments.ip_suffix#_#myUUID#">
            <cfreturn SigFileName />
        </cffunction>

    Try assigning binary arg to <cfimage/> then save.

  • How to use a object(in MXML - in FLEX 4) in multiple way.

    This is my object in MXML:
    <mx1:Canvas id="menuElement" visible="true" rotationY="-15">
         <mx1:Canvas mask="{imageMask}">
              <mx1:Image id="menuImage" visible="true"/>
              <s:BorderContainer id="menuBackground" width="70" visible="true"  borderVisible="false">
                    <s:Label id="menuDescription" fontSize="30" fontWeight="bold" rotation="-90" />
                        <s:backgroundFill>
                             <s:LinearGradient rotation="90">
                                  <s:entries>
                                       <s:GradientEntry  id="backgroundColor" color="0x000010" alpha="0.6"/>
                                  </s:entries>
                             </s:LinearGradient>
                        </s:backgroundFill>
                   </s:BorderContainer>
              </mx1:Canvas>
         <mx1:Canvas id="imageMask" backgroundColor="#FF0000"/>
    </mx1:Canvas>
    I use this object (one time) with configuration in actionscript (positions, source of picture etc.) and I receive something like on a picture below:
    Now, I need to create 4 elements like below. I don't wan't to copy 4 times this block of program. Anybody have idea how can I make it and how can
    I recall of each element from actionscript?
    Regards

    if you run nw04s SP8, it's a limitation. you can create your own simple types and use them in your entities. but the custom data structures you create in the dictionary don't show in list of available structures when you want to create a new complex attribute

  • How to use Logger object in Lookout 5.0

    I am now trying to log data using Logger object. I use Switch1 for activating LogContinuously mode and Switch2  for breaking logging process. If I turn off Switch1, the logging process stops, its ok. My problem is if Switch1 is still on and I turn off Switch2, the logging process is still running. I seems different from what I have read from Help file. Anyone has the solution for it?Please give me an advice! Thanks a lot. Its better if someone post an example about using Logger object here for reference.
    Regards, 

    I think the behaviour you described is correct. If you turn on switch2, the logging process will stop, even when switch1 is on. If you turn off switch2, the process will be running.
    Here is an example of logger object.
    http://zone.ni.com/devzone/cda/epd/p/id/3816
    you can change the "log break" button into a switch, which can better show you how it works.
    Ryan Shi
    National Instruments

  • How to use Generic Object Services(GOS) for each table control record.

    Dear Expert,
                       I am using generic object services for document attachment but i am facing a problem while attaching document to a table control row. my requirement is to attach separate document for each and every row of table control but  i am unable to attach document row wise of the table control.for each row GOS should display corresponding attached document not all the attached document.
    Thanks in Advanced
    Bhuwan Tiwari
    Edited by: BHUWAN TIWARI on Feb 8, 2011 4:16 PM
    Edited by: BHUWAN TIWARI on Feb 8, 2011 4:16 PM

    You haven't explained what object and object key you're using, nor have you provided any indication of how you implemented the GOS attachment functionality.  You need to provide more information to resolve an issue like this.

  • How to use session object in jsp

    hi all
    marry christmas
    can anyone plz tell me how to use session obect in jsp
    rachna
    Message was edited by:
    rachna_arora82

    hi rachna,
    JSP has a default(implicit) session object...... use the getSession(true) method on the session object and then going u can either get or set attributes depending on the requirement
    That was in general and now with the issue u have got..... what u can do is that the u can create session for every user who logs in and when he/she tries to login again then u can probably check for the existing session object in the JSP and perform the logic as required..... any clarifications plzzzzzzz let me know
    Thanks n Regards
    Naveen M
    Message was edited by:
    Novice_inJAVA
    Message was edited by:
    Novice_inJAVA

  • How to use std object RFBIBL00

    Dear All,
    For uploading open item of vendor and customer std lsmw RFBIBL00 is available.
    I know how to do recording in lsmw for new object but any one can help how to use std lsmw available in SAP. For eg.RFBIBL00
    Regards,
    Bhadresh

    You'll find that the RFBIBL00 program, suprisingly, has extensive documentation attached - or you could try
    http://help.sap.com/saphelp_45b/helpdata/en/35/a47e63763e0392e10000009b38f9b7/content.htm
    or the print documentation at
    help.sap.com/printdocu/core/Print46c/en/data/pdf/CAGTFADM/CAGTFADM-FI.pdf
    cheers
    Jonathan

  • How to use fla file in Flex Builder 3?

    Is there a way to do it?

    I got these files also. But how to use Flash's fl.transitions. package with Flex.
    Flash and Flex are doing transitions very differently.
    In Flex, for example,
    Define a transition effect: <mx:WipeLeft id="wl"/>
    Use it: <mx:Canvas id="home" ... showEffect="wl">
    Flash uses TransitionManager:
    import fl.transitions.*;
    import fl.transitions.easing.*;
    var myTM:TransitionManager = new TransitionManager(my_mc);
    myTM.startTransition({type:Wipe, direction:Transition.OUT, duration:3, easing:Strong.easeOut, startPoint:1});
    How to define the MovieClip - "my_mc"? Both Flex and Flash have flash.dispaly.MoiveClip. Are they the same?

  • How to use cairngorm framework in flex 4?

    Hi Everyone!
    Right now i am working with Flex 3.5 sdk using cairgorm architecture. Now i want to move to Flex 4 sdk with cairgorm architecture. I tried to use the cairngorm architecture in flex 4 sdk. But i did not get the output.
         Please anyone let me know how to use the cairngorm artchitecture in flex 4 sdk.
    Thanks in advance.!

    Read about Presentation Model. Refactor towards that and you should fine.
    C

  • How to use frame lable in flex

    I made a movie clip in flash cs4, and a set a frame lable for a frame in this movieclip, but I don't know how to use this frame lable. For example, I want to use the gotoAndStop function to stop at that frame, but it doesn't work.

    Hi
    Here I am placing the syntax and example
    syntax:
    movieclip.gotoAndPlay("framelabel");
    example:
    mc1.gotoAndPlay("intro");
    for further details:
    http://livedocs.adobe.com/flex/3/html/help.html?content=Working_with_MovieClips_1.html
    If this post answers your question of helps. Please mark it as such

  • How to use ConnectionPoolDataSource object?

    i use embedded OC4J server,
    build in data-source.xml file the information about DataSource object
    and try to organized ConnectionPoolDataSource object,
    but a java.lang.ClassCastException rises.
    The problem is, i need to use a pooled connection datasource,
    to do this i get the information about datasource object
    throw lookup in JNDI tree the "pooled-location" name,
    so the type of my datasource object became com.evermind.sql.OrionPooledDataSource.
    but in my jsp code i can use only DataSource object,but not ConnectionPoolDataSource object because of java.lang.ClassCastException.
    Hlp me please to understand how to use ConnectionPoolDataSource.
    thank you

    Please post this question on the application server forum at:
    http://forums.oracle.com/forums/forum.jsp?id=486963
    Thanks,
    JR

Maybe you are looking for

  • File to RFC scenario using BPM : a synchronous one

    Hi All I am doing File>RFC>File scenario using BPM with help of the blog RFC Scenario using BPM --Starter Kit here everything is explained but i am getting error while the processing of BPM part Input file is being picked (this part is success) but r

  • XML forms projects not visible

    I've installed SR1 and upgraded to SP13, have JDK 1.4.2_09 installed. For some reason, when trying to open existing projects, no list comes back from the XML forms builder. When doing the 'environment check tool' of the XML forms builder, all test ru

  • Trouble shooting PI

    We have a problem where everything looks good in SXMB_MONI.  The XML document is sent into our system.   However, the ABAP code is not getting triggered.   This has worked for 2 weeks and until around 12:30 today.  We've checked SM58 and SM59.   Ever

  • RH10 - Context sensitive links to DUCC variable set

    I'm using RH10 Webhelp and the project has four builds from a single source of topics. I am using DUCC for media type categories (radio, television, etc.). I've used build tags and user variables to provide specific information for each media type in

  • Camera not working, and phone not restarting.

    My camera screen pops up, then when I go to take a picture or video, it just goes back to my home screen. And when I go to shut the phone off or restart it, the "goodbye" screen doesn't go away. Even after 40 minutes of sitting there. Pulled the batt