Application Object call

Can an object be made to execute on a users client device from within another application.
Perhaps shelling out and running a script or?

Can an object be made to execute on a users client device from within another application.
Perhaps shelling out and running a script or?

Similar Messages

  • Globals.jsa application object problem

    Hi...
    I have tried the following code:
    <event:application_OnStart>
    String str = "test";
    application.setAttribute("str",str);
    </event:application_OnStart>
    in the globals.jsa and I get a method not found for the setAttribute method, can anyone help ? My environment is iAS (win)

    try to launch cmd.exe /C
    it has help me to quit fine cmd...
    Tell me,
    Buddy20x
    www.buddy20x.com
    > Hi-
    >
    > I have an application object that points to a batch file. The batch
    file
    > basically just does a map del, map, sets a few variables and then calls
    a
    > Cobol executable. This works fine under NT4.
    >
    > However, on XP, the first time I click on the application object, the
    dos
    > box opens and hangs after the map command, but does map the drive (can
    be
    > seen through explorer). The second time I click on the object, it now
    > works and the cobol program loads. (because the drive is now already
    > mapped)
    >
    > If I put a pause in the batch file after the map command, everything
    works.
    > So, the problem seems to be some sort of timing issue with getting the
    > network drive mapped or having it visible to that ntvdm/cmd.exe session.
    >
    > Also, if I don't use the application object and just click directly on
    the
    > batch file, it works fine on XP ??
    >
    > What is it about the application object calling the batch file and
    loading
    > cmd.exe that could cause such a problem? We lock down our users so they
    > can't run files/programs directly so I have to give them an application
    > object to start this app?
    >
    > Any ideas?

  • Issue in webdynpro application while calling from UWL

    Hi All,
    I am working on APPRAISAL workflow in HCM module.
    In new version of SAP has provided ABAP web dynpro application HAP_MAIN_DOCUMENT (component HAP_MAIN_DOCUMENT)
    but it is not integrated with workflow. Earlier insted of this application there was a BSP application and this was integrated with workflow.
    Now to integrate ABAP webdynpro application with workflow I have created new web dynpro application and calling HAP_MAIN DOCUMENT application and when I test through SE80 transaction then I am just passing Work Item ID and it is opening HAP_MAIN DOCUMENT application. I have done it as follows.
    In swfvisu I am passing Work Item ID and In application I am getting business object details using this I am createing a URL and then using exit plug I am calling HAP_MAIN_DOCUMENT application
    *METHOD exit1 .*
    * DATA lo_nd_new_url TYPE REF TO if_wd_context_node.
      **DATA lo_el_new_url TYPE REF TO if_wd_context_element.**
      **DATA ls_new_url TYPE wd_this->element_new_url.**
      **DATA lv_url TYPE wd_this->element_new_url-url.**
      **DATA: l_cmp_api TYPE REF TO if_wd_component,**
            **result TYPE REF TO if_wd_window,**
            **l_window1 TYPE REF TO if_wd_window_manager.**
    ***     navigate from <CONTEXT> to <NEW_URL> via lead selection**
      **lo_nd_new_url = wd_context->get_child_node( name = wd_this->wdctx_new_url ).**
    ***     @TODO handle non existant child**
    ***     IF lo_nd_new_url IS INITIAL.**
    ***     ENDIF.**
    ***     get element via lead selection**
      **lo_el_new_url = lo_nd_new_url->get_element( ).**
    ***     @TODO handle not set lead selection**
      **IF lo_el_new_url IS INITIAL.**
      **ENDIF.**
    ***     get single attribute**
      **lo_el_new_url->get_attribute(**
        **EXPORTING**
          **name =  `URL`**
        **IMPORTING**
          **value = lv_url ).**
      **wd_this->fire_exit_plg( url = lv_url ). "abap_true**
    ***  l_cmp_api = wd_this->wd_get_api( ).**
    ***  l_window1 = l_cmp_api->get_window_manager( ).**
    ***  result = l_window1->create_external_window(**
    ***url = lv_url ).**
    ***  result->open( ).**
    **ENDMETHOD.**
    In SE80 it is opening application perfectly in same session of new Z webdynpro application.
    But when I click on UWL workitem it is not opening.
    In dubugging I checked that workitem ID is passed correctly also URL is created correctly for HAP_MAINDOCUMENT but it is not opening.
    Please let me know is there any setting in UWL config.
    Edited by: Akshay Kale on Nov 17, 2009 11:51 AM
    Edited by: Akshay Kale on Nov 23, 2009 10:07 AM

    Hi akshay,
       Check the following links ,
    Workitems, UWL and Web Dynpro for ABAP
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/20f4843e-314f-2a10-2a88-8c4afa20dda6
    another that talks about swfvisu
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/a002d1eb-33f0-2b10-f391-e1e0c3057c17&overridelayout=true
    hope this helps.
    Thanks,
    Sahiba

  • Weblogic 10.3.0 issues with remote object calls.

    All:
    I was wondering if anyone has experienced any issues with Weblogic 10.3.0 dropping initial remote object calls over AMF Secure Channel. Here are the issues we are experiencing.
    1.     FLEX applications fail consistently on the first remote object call made across the AMF Secure Channel. Resulting in the request not returning from the application server; which has had varying affects on the different applications including missing data, application freeze and general degrading of the user experience.
    2.     FLEX applications require a browser/application refresh once the application has been inactive for a certain period of time. In our experiences the behavior occurs after 30 minutes of inactivity.
    I've deployed this same code to Weblogic 10.3.3 and the behaviors go away. Are there any patches to 10.3.0 that might take care of this issue that we are not aware of?
    Thanks for you help,
    Mike

    Hello,
    I found the problem. But I needed change the target of all my datasources until discover that one of my datasource didn´t answer and no errors was trigged.
    My server was waiting this datasource, and not get started.

  • The Web Dynpro application was called up with the wrong URL parameters

    Hi all,
    I am using the systems below:
    ERP STACK :16
    EHP : 4
    EHP SP Stack :4
    EA-HR * : 604(SP12)
    SAP-HR * :604(SP12)
    XSS JAVA components : SAP ESS 603 SP05
    SAP MSS 600 SP16
    PCUI_GP 603 SP05
    Business Package : BP ERP05 ESS 1.41 SP04
    BP ERP05 MSS 1.41 SP04
    BP ERP05 COMMON PARTS 1.41 SP04
    I am getting below error after clicking on the appraisal document:
    App. Called Up Incorrectly
    The Web Dynpro application was called up with the wrong URL parameters.
    Note
    Enter the URL parameters and their use.
    You can find more information on the functions that you can perform in the catalog for appraisal templates in the Implementation Guide (IMG) for Objective Setting and Appraisals under Edit Forms.
    I already applied the below notes also:
    1468466 Performance Management Launchpad Configuration
    1463821 Performance Management Portal Configuration
    1416756 OBN Configuration in Performance Management
    1408243 Configuration for object-based navigation
    Plz advise me??
    Thanks,
    Anumit

    can you paste the exact error. also you can take a HTTP trace and see which resourse or UWL is being launched!

  • How to Use AccessibleObjectFromWindow API in VBA to Get Excel Application Object from Excel Instance Window Handle

    I need to get the Excel.application object from a window handle using AccessibleObjectFromWindow. I can't seem to make the code work. First, I successfully search for the XLMAIN windows. Then, when I get a handle, I execute the AccessibleObjectFromWindow
    function. It seems to return a value of -2147467262 in all cases. Therefore, I believe that it is returning an error value. I can't figure out how to determine the meaning of this value.
    If it is an error value, I believe that one or more arguments are in error. My best guess at present is that the GUID argument is incorrect. I have tried two GUID values: {00020400-0000-0000-C000-000000000046} and {90140000-0016-0409-0000-0000000FF1CE}.
    I have seen both used in conjunction with OBJID_NATIVEOM. Neither one seems to work. I really would prefer not to use the second one as it has an Excel major and minor version number. I would hate to have to change this code, if a new minor version appeared.
    The attached code has been commented to show which parts have been shown to work and which not. I'm at my wits end and really need help.
    Thanks
    'This module is located in Access 2010, but this is an Excel question.
    Option Compare Database
    Option Explicit
    ' Module-Level Declarations
    'The GetDesktopWindow function and FindWindowEx function work just fine.
    Public Declare Function GetDesktopWindow Lib "user32" () As Long
    Public Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" _
    (ByVal hWnd1 As Long, _
    ByVal hWnd2 As Long, _
    ByVal lpsz1 As String, _
    ByVal lpsz2 As String) _
    As Long
    'I'm not getting the expected output from this function (see below)
    Private Declare Function AccessibleObjectFromWindow& Lib "oleacc.dll" _
    (ByVal hwnd&, _
    ByVal dwId&, _
    riid As GUID, _
    xlwb As Object)
    Type GUID
    lData1 As Long
    iData2 As Integer
    iData3 As Integer
    aBData4(0 To 7) As Byte
    End Type
    Function ExcelInstances() As Long
    ' Procedure-Level Declarations
    ' Value of OBJID_NATIVEOM verified by checking list of Windows API constants _
    on this site: http://www.lw-tech.com/q1/base.htm
    Const OBJID_NATIVEOM = &HFFFFFFF0
    Dim hWndDesk As Long 'Desktop window
    Dim hWndXL As Long 'Child window
    Dim objExcelApp As Object 'Final result wanted: Excel application object
    'Following variable (xlapp) to be set by AccessibleObjectFromWindow function
    Dim xlapp As Object
    Dim IDispatch As GUID 'GUID used in call to AccessibleObjectFrom Window function
    'Set up GUID to be used for all instances of Excel that are found
    Dim tmp1 As Variant 'Return value from AccessibleObjectFromWindow
    ' Executable Statements
    SetIDispatch IDispatch
    IDispatch = IDispatch
    'Get a handle to the desktop
    hWndDesk = GetDesktopWindow 'This seems to work
    Do
    'Get the next Excel window
    'The following statement seems to work. We are finding and counting _
    correctly all the instances of Excel. hWndXL is non-zero for each _
    instance of Excel
    hWndXL = FindWindowEx(GetDesktopWindow, hWndXL, "XLMAIN", vbNullString)
    'If we got one, increment the count
    If hWndXL > 0 Then
    'This works. We correctly count all _
    instances of Excel
    ExcelInstances = ExcelInstances + 1
    'Here is the problem. The following statement executes and returns a value of _
    -2147467262. xlapp, which is passed by reference to AccessibleObjectFromWindow, _
    is set to nothing. It should be set to the object for Excel.application. _
    I believe that this value is not an object. I tried to reference tmp1. in the _
    immediate window. There was no Intellisense.
    'I think that the function in returning an error value, but I can't figure _
    out what it is. I believe that AccessibleObjectFromWindow returns error _
    values, but I don't know where to find their values so I can interpret the _
    function's results.
    'As best I can tell, the hWndXL parameter is correct. It is the handle for _
    an instance of Excel. OBJID_NATIVEOM is set correctly (see constant declaration _
    above). xlapp is passed by reference as a non-initialized object variable, which _
    will be set by AccessiblObjectFromWindow. IDispatch may be the problem. It is set _
    as shown below in the procedure SetIDispatch(ByRef ID As GUID). This procedure _
    appears to work. I can see that IDispatch is set as I intended and correctly _
    passed to AccessibleObjectFromWindow.
    tmp1 = AccessibleObjectFromWindow(hWndXL, OBJID_NATIVEOM, IDispatch, xlapp)
    'Need to write code to test tmp1 for error. If none, then set objExcelApp = _
    object. Also, I exect xlapp to be set to Excel.application
    End If
    'Loop until we've found them all
    Loop Until hWndXL = 0
    End Function
    Private Sub SetIDispatch(ByRef ID As GUID)
    'Defines the IDispatch variable. The interface _
    ID is {90140000-0016-0409-0000-0000000FF1CE}.
    'NOT USING {00020400-0000-0000-C000-000000000046}, _
    which could be the problem
    '9 is release version - first version shipped (initial release)
    '0 is release type - retail/oem
    '14 is major version
    '0000 is minor version
    '0016 is product ID - MS Excel 2010
    '0409 is language identifier - English
    '0 is x86 or x64 - this is x86
    '000 reserved
    '0 is debug/ship
    '000000FF1CE is office family ID
    With ID
    .lData1 = &H90140000
    .iData2 = &H16
    .iData3 = &H409
    .aBData4(0) = &H0
    .aBData4(1) = &H0
    .aBData4(2) = &H0
    .aBData4(3) = &H0
    .aBData4(4) = &H0
    .aBData4(5) = &HF
    .aBData4(6) = &HF1
    .aBData4(7) = &HCE
    End With
    End Sub
    DaveInCalabasas

    I don't think you can return a reference to Excel's main window like that as you are attempting to do.
    Ref:
    http://msdn.microsoft.com/en-us/library/windows/desktop/dd317978(v=vs.85).aspx 
    It's relatively straightforward to return any workbook's window in any given instance, and in turn it's parent Excel app. Try the following and adapt as required (and include error handling) -
    Option Explicit
    Private Declare Function FindWindowEx Lib "User32" Alias "FindWindowExA" _
    (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, _
    ByVal lpsz2 As String) As Long
    Private Declare Function IIDFromString Lib "ole32" _
    (ByVal lpsz As Long, ByRef lpiid As GUID) As Long
    Private Declare Function AccessibleObjectFromWindow Lib "oleacc" _
    (ByVal hWnd As Long, ByVal dwId As Long, ByRef riid As GUID, _
    ByRef ppvObject As Object) As Long
    Private Type GUID
    Data1 As Long
    Data2 As Integer
    Data3 As Integer
    Data4(7) As Byte
    End Type
    Private Const S_OK As Long = &H0
    Private Const IID_IDispatch As String = "{00020400-0000-0000-C000-000000000046}"
    Private Const OBJID_NATIVEOM As Long = &HFFFFFFF0
    Sub test()
    Dim i As Long
    Dim hWinXL As Long
    Dim xlApp As Object ' Excel.Application
    Dim wb As Object ' Excel.Workbook
    hWinXL = FindWindowEx(0&, 0&, "XLMAIN", vbNullString)
    While hWinXL > 0
    i = i + 1
    Debug.Print "Instance_" & i; hWinXL
    If GetXLapp(hWinXL, xlApp) Then
    For Each wb In xlApp.Workbooks
    Debug.Print , wb.Name
    Next
    End If
    hWinXL = FindWindowEx(0, hWinXL, "XLMAIN", vbNullString)
    Wend
    End Sub
    'Function GetXLapp(hWinXL As Long, xlApp As Excel.Application) As Boolean
    Function GetXLapp(hWinXL As Long, xlApp As Object) As Boolean
    Dim hWinDesk As Long, hWin7 As Long
    Dim obj As Object
    Dim iid As GUID
    Call IIDFromString(StrPtr(IID_IDispatch), iid)
    hWinDesk = FindWindowEx(hWinXL, 0&, "XLDESK", vbNullString)
    hWin7 = FindWindowEx(hWinDesk, 0&, "EXCEL7", vbNullString)
    If AccessibleObjectFromWindow(hWin7, OBJID_NATIVEOM, iid, obj) = S_OK Then
    Set xlApp = obj.Application
    GetXLapp = True
    End If
    End Function
    Note as written if an instance does not have any loaded workbooks a reference will not be returned (though a workbook can be added using DDE, but convoluted!)
    FWIW there are two other very different approaches to grab all running Excel instances though something along the lines of the above is simplest.
    Peter Thornton

  • Access jsp's application object from an .java file?

    Hi,
    I hava a .jsp page and an import statement to a .java file. How can I access the application object in this .java file?
    I want to make an initialization function that I want to be called in every .jsp of the WEB application and to store this function in a .java file.

    The only way to get a hold of the application object would be to pass it to java code as a parameter to a method.
    ie public class Util{
    public void initialiseJSPPage(ServletContext application){
      // do stuff in ServletContext
    }and then in the JSP call it via
    <% Util.initialiseJSPPage(application); %>
    You could manually include this code on every JSP.
    A better alternative is that in web.xml you can configure an automatic include (See JSP.3.3.5)
    What is it you are trying to accomplish by doing this?
    Would a Filter be a more appropriate tool in this case? That would let you run java code before selected requests are handled.
    Cheers,
    evnafets

  • Outlook.Application Object

    Hello Experts,
    i am using the 'Outlook.Application' object to create a new outlook email item in my ABAP code. everything is fine except when i'm creating an attachment, i don't know how to attach a file to my email. My code look like this.
    REPORT  ztest_outlookobject           .
    INCLUDE ole2incl .
    DATA: lr_outlook TYPE ole2_object,
          lr_mi TYPE ole2_object,
          lr_at TYPE ole2_object.
    CREATE OBJECT lr_outlook 'Outlook.Application'.
    CALL METHOD OF lr_outlook 'CreateItem' = lr_mi
    EXPORTING #1 = 0.
    GET PROPERTY OF lr_mi 'Attachments' = lr_at.
    CALL METHOD OF lr_at 'Add' = 'C:\eraseable.xls'. "<<< the problem is here >>>
    SET PROPERTY OF lr_mi 'To' = 'Bai Cil'.
    SET PROPERTY OF lr_mi 'CC' = '[email protected]'.
    SET PROPERTY OF lr_mi 'Subject' = 'Your subject'.
    SET PROPERTY OF lr_mi 'Body' = 'Some text'.
    CALL METHOD OF lr_mi 'Display'.
    FREE OBJECT lr_outlook.
    but i'm getting this error: "'C:\eraseable.xls'" cannot be changed. -
    Thanks

    thanks guys.
    i found the answer. here it is.
    CALL METHOD OF lr_at 'Add'
    EXPORTING #1 = 'C:\eraseable.xls'.

  • The "application" object

    the "application" object can be called within a JSP file.
    What if I wanna call it within a JavaBean class? How do I instantiate it?

    The application object is the servletcontext that is passed to the servlet/JSP by the server during initialization. If you want to use it in a JavaBean you'll have to pass it in.
    <jsp:useBean id="myBean" scope="session" class="beans.MyBean" />
    <% myBean.setApplication(application); %>
    and in MyBean
    import javax.servlet.*;
    public class MyBean {
       ServletContext sc;
       public MyBean() { }
       public void setApplication(ServletContext inSC) { this.sc = inSC; }
    }

  • Application Object In Servlets

    First off, I'm new to writing servlets so forgive my ignorance...
    How do I get the application object within the init method of an HttpServlet? I want to call some methods on it (e.g. getRealPath) but I get compile errors because I'm not sure how to get the application object.

    public void init(ServletConfig config) {
      ServletContext sc = config.getServletContext();
      String path = sc.getRealPath("/"); // or something like that
    }

  • Create an Application Object schedule from command line?

    Hi everyone - long-time lurker, first-time poster here.
    Is there a way create an availability schedule for an Application Object via a command line (or any other programmatic method)? The utilities I've obtained from Cool Solutions are great for replicating AOs (Application Objects) and setting certain properties, but none of them seem to have a method of creating a schedule that you would otherwise create within the AO's property book via Availability > Schedule. BTW, we are using Zen 6.5.
    We have a rollout around the corner for which there are several AOs that drive the process, and we are going to have an instance of each of these AOs for every target group (of which there are dozens), and each group will have their own distinct schedule. The schedules are basically going to be "wait until day X to become available and then remain available for the next 2 months".
    For some of the AOs we can use the Schedule Type of Range of days, which is not so terrible to set manually because you just specify a start date and an end date. But most of the AOs must have the Schedule Type of Specified days in order to ensure they do not ever launch during business hours; manually selecting 60 days from the date picker for a single instance is a daunting task, and I shudder at the thought of having to do so for dozens of AO instances.
    I believe that the field in the ZENworks database that corresponds with an Application Object's schedule has a data type of Binary (which may be why there doesn't seem to be an existing solution), but does anyone have any ideas for accomplishing what I'm talking about?
    Thanks in advance,
    Gavin

    Originally Posted by AndersG
    Jeemo,
    > basically going to be "wait until day X to become available and then
    > remain available for the next 2 months".
    >
    Just to clarify, you want:
    Range of days, start date, end date. Nothing fancier than that?
    - Anders Gustafsson (Sysop)
    The Aaland Islands (N60 E20)
    In a perfect world this is what I would like to be able to do:
    For the AOs where we're going to use the "Range of Days" schedule type, be able to specify the start date, end date and also the days of the week when we do not want it to run (or just the days we do want it, if easier).
    For the AOs with the "Specified days" schedule type, we would like to add (or remove) a specific date, and optionally be able to specify that Start Time and End Time that applies to the dates. As for adding multiple dates, I was planning on having a script that enumerates all the dates in our desired range, and for each date in the range it would call the utility with that date passed as a parameter to add it or remove it.
    If all of the above is too much to put together then I would not complain if it is only partially fulfilled. To be honest I would not mind building a mechanism myself that could handle this, it's just that I don't know where to start. I'd be happy to take a crack at it if someone could point me in the right direction for how to send commands to the database (or directory).
    Thank you again for your help.

  • When  submit remote object call getting error Client.Error.DeliveryInDoubt

    Hello,
    We are having very weird error DeliveryInDoubt from blazeds.
    [ERROR] failed to call the remote service !!![FaultEvent fault=[RPC Fault faultString="Channel disconnected" faultCode="Client.Error.DeliveryInDoubt" faultDetail="Channel disconnected before an acknowledgement was received"] messageId="98F7B030-0FE0-0B88-300C-EC422D055E21" type="fault" bubbles=false cancelable=true eventPhase=2
    Error does not happen every time, but rather from time to time but happens on all client machines.
    Environment:
    blazeds v3.
    Flex application with Remote Object.
    Browser IE7.
    Object that passed to blazeds is complex and might have 100 items.But number of items does not seem affect error occurences.
    Short description for the object passed to blazeds remote object call for processing:
    Remote Object call takes an argument ArrayCollection of SyncRequest objects (_requestSyncList)
                    var syncRequest:SyncRequest = new SyncRequest();
                    var syncObject:Object = new Object();
                    syncObject[requestBuilder.direction] = requestBuilder.jobMap;
                    syncRequest.syncJobs = syncObject;
                    _requestSyncList.addItem(syncRequest);          
    requestBuilder.jobMap is an object that have different artifacts.
    jobMap[obj.artifact] = myColl;
    myColl is ArrayCollection of artifact of SyncJob
    Here is the definition of SyncJob
       public class SyncJob
            public var jobName:String;
            [ArrayElementType("com.farmers.docprocessing.remotesync.vo.JobParameter")]
            public var jobParams:ArrayCollection;
    Not sure what causing that issue and how to debug it. 
    Please advice.
    Thank you

    Not without you psoting some code.
    Possible problem: Difference between object type being returned, vs the type of the reference (i.e., the method that returns an object should have a return type of the interface name).

  • Caching whole Application Object[in addition to swf]

    My whole application is written in JSF. I am using SWFobject
    to embed Flex component in a JSF page[which just contains Flex swf
    only]. Now the user can click a button on JSF application and can
    navigate to this JSF page[with Flex application embedded], and he
    can again click a button on the Flex application and move back to
    original JSF application.Now the issue is when the user moves from
    original JSF page to Flex embedded JSF page he looses the old state
    of the Flex application.
    Here is the use case :
    1.) User is on main JSF page and hits button to navigate to
    another JSF page which has Flex application embedded using
    SWFObject.
    2.) on the Flex application He has tree on the left side and
    some interactive images on the right side and the bottom portion of
    the screen has tabs displaying some information corresponding to
    each node.Everytime he clicks on a node on the tree I create a new
    Tab on the bottom portion and display corresponding information
    which gets fetched from the backend.
    3.) Now lets say he clicked on two nodes and current state of
    application is tree is expanded second node is selected and some
    intercative images are displayed on the right side and two tabs are
    created on the bottom of screen with some info.
    4.) Now user decides to go back to original JSF
    application(he hits a button on the present screen to take him back
    to original JSF page).
    5.) Now when the user tries to navigate back to Flex
    application, he looses all the previous state of the Flex
    application.
    So My question is, is there a way that old state of the flex
    application be saved.this different then caching swf, which I am
    already doing, But I do not want the SystemManager to create a new
    instance of application object (because in that case I will loose
    all the components and there previous states), but instead use the
    last saved application instance bypassing all the lifecycle of
    application object and adding the existing application instance to
    the display list directly].
    I want to know whether this is even possible???
    1.) Can I store the application instance somewhere somehow.
    2.) Tell SystemManager to use this applicationInstance rather
    than instantiating a new one.
    If its not possible then what are the alternatives to achieve
    same kind of behavior?

    "vikbar" <[email protected]> wrote in
    message
    news:gb0tug$7je$[email protected]..
    > Hi Amy,
    >
    > Isnt the HistoryManager approach more specific to Flex
    application i.e if
    > user
    > is just navigating with in the flex application? In my
    case the user will
    > navigate between a JSF page which does not have any SWF
    file and the
    > another
    > one which has swf file embedded. Now everytime when the
    suer moves to the
    > flex
    > embedded JSF page from the Non Flex JSF page these are
    the steps which are
    > always going to happen :
    >
    > 1.) System Manager will get initialized and will create
    PreLoader
    > instance.
    > 2.) The preLoader will then try to download the swf
    file. Now since this
    > is
    > the second time the user is coming back to the flex page
    so the broswer
    > would
    > have already cached this swf, so Preloader will skip the
    downloading
    > swf/RSl
    > step and hence you wont see any initialization progress
    bar.
    >
    > 3.) New Application object will get instantiated and
    will go through its
    > whole
    > lifecycle.
    >
    > So, I guess historyManager approach will work only if
    the user stays on
    > the
    > flex application only and navigates with in flex
    application itself(so in
    > that
    > case if the user clicks back then it knows which flex
    component or view to
    > display), but in my case user will completely move away
    from flex page to
    > a
    > JSF page and then will try to come back.
    >
    You'd need to put the right stuff in the url to make it work,
    just like if
    you were calling a page that's expecting GET params. I don't
    really use the
    HistoryManager, so you'll need to either look into this
    yourself or ask
    someone who knows more about it.
    HTH;
    Amy

  • Mock objects calling parent constructor

    I'm trying to create some tests in which I'm providing a mock object to the constructor of my test objects and testing that appropriate methods are called in the mock. The objects I'm mocking only have a few public methods so I created an inner class that extends the object I'm trying to mock and just records which method was called. However, when I run the test it fails because the mock object calls the default constructor of the object of it's parent; causing the entire application to run. I'm trying to figure out a way around this.
    Now I already know a solution that would work, creating a second constructor in the object I'm mocking which does nothing, then call the fake constructor from my mock object instead of the default constructor. The solution dosn't feel very elegent though, I'm wondering if I'm missing a simpler solution?

    dsollen wrote:
    I'm testing JMS communication between two applications. Each topic Listener has a reference to the main class of the respective applications to communicate with them.I still don't see why a call to the constructor should start the program. Change the design so that doesn't happen. You should instead provide a start method.
    Kaj

  • Simultaneous remote object calls in one http request?

    I am noticing when I have two remote object calls happen at the same time they are being bundled into one http request.  This is causing problems in my application becuase the result is not coming back until both have finished.
    So basically I have to calls that happen at the sametime.  One does not take anytime and the other is a long running task.  I will not get the result for the first until the long running task completes.
    Has anyone else seen this?
    Any help would be appreciated.

    "suspend the main thread, pending a remote call.." No. Can't
    be done.
    ..."pass arguments into the resultHandler..." Yes, this is
    done using the AsyncToken. (ACT pattern)
    The send() methods returns an AsyncToken object. You can use
    this dynamic object to add almost anything you want to the token,
    including strings, and functions (google the term "closure").
    As I am still not comfortable with anonymous functions, I
    like to pass strings. I pass an identifier, which I can use in a
    switch statement to determine the next step. Sometimes I pass a
    "nextStep" string to define finer grain conditionality.
    I use a single dataService object and result handler function
    for all calls.
    Tracy

Maybe you are looking for

  • Ichat 4.0 Sometimes works, sometimes doesn't

    Hello, I have asked many firewall questions on this forum before. At this stage, what seems to work are the appletest servers, both video and voice. But...I have many friends that have accounts that sometimes work, sometimes don't. With no changes wh

  • Transfer or change master data

    for fixed asset, if it is already acquired and depreciated, can we use ABUMN to move to different cost center, after we do transfer, is cost center in asset master automatically be changed to new cost center? do we still need as02 to change cost cent

  • Reflection Classes with the same name

    Hi! I have a big problem with reflection. I want to reflect lots of stuff (methods, variables...) in a lot of classes with the same name immediately one after the other. It's like copy the file for the analysis to the right place do reflection and ge

  • Word Add in disappears after computer restart

    We are using Office 2007. The BI publisher word tab add in disappears after reboot. When we try to re-install the control panel has the option to repair which indicates that it is still installed. Any ideas on what causes this? Thanks.

  • Multi color around edges what is it and how to get rid of it

    What is the term for a multicolor fringe around an edge..how do you get rid of it Capt