How to set the EJB timeout value??

I made a Swing application connecting with EJB to provide some service. If I set the correct J2EE server IP, everything works fine. However, it will throw an Exception after some time, if I set an incorrect IP. I would like to ask if there is any means to set a timeout value for the Swing application that it throws an exception while it cannot connect to the server after the timeout value.

Hi,
Amount of time required to call an EJB on a remote server depends on, I would guess, multiple factors, like server performance, network speed, link quality, etc. I'm not sure if there is a direct way of telling the client-side code to wait for results for a limited amount of time, but in general blocking on the client side until the server results are available is not a good idea (at least not from the GUI perspective, since you would be locking the display). Either way, you could make all your EJB calls from a separate thread, and timeout that. This way your client code would have complete control of responsiveness of the server side.
Just a thought.
Mark

Similar Messages

  • How do I set the IFSshell timeout value?

    How do I set the IFSshell timeout value?
    I open an ifsshell and move to a directory.
    Do something. Come back in 10 minites and the shell has timed
    out. Have to logout and log back in and move to the directory
    again.
    Thanks
    -Mitch

    FYI,
    IFS.PROTOCOLSERVER.SESSION.DEFAULT.Timeout
    IFS.PROTOCOLSERVER.SessionStateTimeoutPeriod
    IFS.PROTOCOLSERVER.SessionStateTimeoutPeriod
    in cup server configuration

  • How to set the default context value for flexfield in OAFramework pages

    Hi,
    I have a page which contains a contexxt value field i.e Flexfields
    To select the context value we have to select the value from drop down
    So Here we want to display the context value immediately when the page is called
    How to set the default valu in this case
    Regards,
    Krishna

    You can set the Attribute category view attribute to the Flexfield context value and call prepareforRendering in the flex bean. Check the dev guide for details.
    Regards
    Sumit

  • How to increase the request timeout value in Oracle 10g web container

    Hi,
    Iam using Oracle10g Application server .
    For long running backend process my JSP page is getting re-submitted after 3 mins.
    How do i avoid this ?
    Is there a way to increase the http request timeout interval.
    If so where do i change the timeout interval.
    In IIS web server I can change the timeout interval.
    Thanks
    Sridhar.

    Hi,
    If you mean to increase the request timeout i.e the time when a request is submitted to the server and the response is sent by the server it can be done in httpd.conf file located in $OracleHome/Apache/Apache/conf directory.
    The attribute to be used for setting timeout is "Timeout". By default teh value is 600 seconds i.e 5 minutes.
    After making these changes , run command dcmctl updateConfig -ct OHS and restart the HTTP Server. Please note these commands need to be run only if the httpd.conf changes are done through text editor.
    Hope this helps.
    Smita

  • Can we set the query timeout value in a global control place?

    hi everyone,
    We use the FullTextSqlQuery class to do query stuff, but we have the query timeout issue, the query sometimes timeout, sometimes is normal.  I know there is a property from Query class called Timeout, and the default
    time is 15 seconds, but we have lots of code involving FullTextSqlQuery.
    I want to know is there a gloabal place like the web.config or regedit or somewhere to set the timeout value?
    Thanks

    Did you ever get an answer?  I'm in the same boat...the only way I can seem to not charge tax to my wholesale clients is to set "tax never applies".  But I got over 300 products...how can I do it "en mass"???
    Anybody??
    I tried creating a special tax code at 0% but that didn't do it either.
    thanks in advance,
    Scot.

  • How to set the parameter ID value for a range

    I am trying to call transaction KSB1 (Display actual line items for cost center) by supplying all the default values for the selection options/parameters and skipping the selection screen from the calling program. However, for the cost center range, both HIGH and LOW field have the same PID (i.e. KOS). Same thing for the cost element range. When I set the value for PID "KOS", only the low value got populated.
    I tried to pass a BDC table to the
    CALL TRANSACTION 'KSB1' USING  bdc_tab
    , but the PID used before takes higher priority so the bdc_tab values got overwritten by the PID values for those fields.
    Does anybody know how to find or set the PID for a selection range? I need PID for Cost center range, cost element range and the period (PID="VPE").
    Any advice is appreicated. Thank you
    Minami

    otherwise try to make use of SUBMIT command.
    <b>Hi Preetahm ,
    KSB1 is a Report , not a Tcode to maintain master data or any thing like that ?, u can also cross check?</b>
    by using SUBMIT command u have to <b>RKAEP000</b> this program along with the selection screen.
    regards
    Prabhu
    Message was edited by: Prabhu Peram

  • How to set the keepalive timeout and nativepoll in application server 8.2

    Hi,
    I would like to know how to set "keepalive timeout" and "nativepoll" on application server 8.2.
    Thanks,

    These parameters were set in Application server 7 as per the following documentation:
    http://docs.sun.com/source/817-2180-10/pt_chap4.html
    However I am not able to find any documentation with regards to application server 8.2
    Please advice..
    Thanks

  • How to set the radiogroup default value?

    I have created a radiogroup named P521_SIZE_NUM(Dealsize, DealNum) and want DealSize is checked when the page is showed. how can I set default value in the page Definition?

    If you made a radio group off of the following static LOV:
    STATIC2:One;1,Two;2,Three;3if you set the default value of your radio group to 2, the radio button with the label Two will be selected. You have to make sure to set the default value to the actual return value not the display value.
    -Ghoulies

  • How to set the compiler macro values in the IDE?

    Hi,
    I want to change the values of macros ($(OutDir), $(TargetName), $(TargetExt), etc) when setting my VC++ project.  For example, $(TargetName) is set to the project name by default.  I would like to change it to, say, "Connector". 
    I spent quite some time to find the information but failed.  Many web sites direct to replace $(TargetName) totally with a hard-coded name instead of changing the value of the macro.  I am a little surprised and embarassed about failing to find information
    for such a simple task.  Please kindly help me out.  Sorry to bother you with this simple question here.
    Thanks.
    Tony

    When I change my output name in the project setting (Project->Properties->General->Output Directory) and rebuild the project, I get the following error messages.  I suppose that I should change the value of $(TargetName) instead of manually
    replacing the output path "$(OutDir)$(TargetName)$(TargetExt)" with the new output file name.  But I cannot find where I can change the value of the macro $(TargetName).  Can you please help me out?  Thanks in advance.
    1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppBuild.targets(1137,5): warning MSB8012: TargetPath(D:\tmp\test20\OldName\OldName\x64\Debug\OldName.dll) does not match the Linker's OutputFile property value (D:\tmp\test20\OldName\OldName\x64\Debug\NewName.dll).
    This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
    1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppBuild.targets(1139,5): warning MSB8012: TargetName(OldName) does not match the Linker's OutputFile property value (NewName). This may cause your project to build incorrectly. To correct
    this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
    1>     Creating library D:\tmp\test20\OldName\OldName\x64\Debug\NewName.lib and object D:\tmp\test20\OldName\OldName\x64\Debug\NewName.exp
    1>NewName.exp : warning LNK4070: /OUT:OldName.DLL directive in .EXP differs from output filename 'D:\tmp\test20\OldName\OldName\x64\Debug\NewName.dll'; ignoring directive
    1>  OldName.vcxproj -> D:\tmp\test20\OldName\OldName\x64\Debug\OldName.dll
    JD

  • How can I set the blocking timeout on a workstation client?

    Hello.
    I want to shorten the time it takes for an invocation of tpcall() to fail with TPETIME.
    I've glimpsed how to do this when working within a transaction, but that is not my case, and I couldn't find how to set the blocking timeout. Can anyone help me with this? I'm working with Tuxedo 9.1.
    Thanks in advance.

    Cacho,
    Tuxedo 9.1 includes the tpsblktime() API as described at
    http://e-docs.bea.com/tuxedo/tux91/rf3c/rf3c67.htm#2180280 . This API
    allows a programmer to set the blocking time for either the next potential
    blocking API called by the program or for all subsequent potential blocking
    APIs called by the program.
    The Tuxedo administrator can set the global default blocking time by setting
    the BLOCKTIME parameter in the *RESOURCES section of the UBBCONFIG file and
    executing tmloadcf.
    Ed
    <Cacho Nakamura> wrote in message news:[email protected]..
    Hello.
    I want to shorten the time it takes for an invocation of tpcall() to fail
    with TPETIME.
    I've glimpsed how to do this when working within a transaction, but that is
    not my case, and I couldn't find how to set the blocking timeout. Can anyone
    help me with this? I'm working with Tuxedo 9.1.
    Thanks in advance.

  • SRM 4.0- How to set the default values for product type (01) only for SC

    The radio button “Service” should not be visible.
    Also for search help (e.g. search for internal products) where a search should only be possible for product type 01 (goods). The system should not display the product type and internally always search for goods only.
    How to set the default values for product type (01) only for SC
    We needs to use Search help BBPH_PRODUCT which having parameter PRODUCT_TYPE
    Here we can set defalut value 01 but it is not correct one since same search help is using several places.
    We need to limit the search help results only for SC.
    Kindly help out me ASAP.

    The easiest way to set defautl values is to edit the batch class.
    Goto the characteiristic and go to update values.
    In here you probably have something like 0 - 100 as a spec range.
    On the next line enter the default value within this range.  At the end of the line, click in the box in the column labelled "D".  This indicates the defautl value for the characteristic.
    If you need to you can do this in the material classification view as well.
    Just to be clear, these values will only show up in the batch record.  You can not have defautl values in resutls recording screens.
    FF

  • How to set the value of a variable in a cluster in LabVIEW from C#?

    Hi guys, I'm working on a small c# program, which using the interface provided by LabVIEW.  And I know that, using lv.SetControlValue(name, value) can set a variable just on the front panel. But in my case, there're several clusters on the front panel. So it confused me how to set the variables in these clusters. For example there's a cluster named clusterA, and a variable in it named valueA, I've tried something like this:
    lv.SetControlValue("clusterA.valueA",1);
    but it totally not work. Anyone has some experience about this stuff? Thanks a lot!!
    Solved!
    Go to Solution.

    Hey guys, thanks a lot for all your reply. I just find a simply way to solve this porblem. For example, there a cluster named "ClusterA", and there are only two control values in it, which are: an int value named "IntA" (default value IntA = 10)and a  string value named "StringA" (default value StringA = "abc"). In C# if you invoke the method:
    var clusterA = (Array) vi.GetControlValue("ClusterA");
    you will get an Array looks like: clusterA = {10, "abc"}; Then if you want to change IntA to 123, you just need to do:
    clusterA.SetValue(123, 0); // 123 is the value, 0 is the index of IntA in the array clusterA, after this clusterA = {123, "abc"}
    After this, you just need to give the array back to LabVIEW by using:
    vi.SetControlValue("ClusterA", clusterA);
    and now see the panel in you LabVIEW, the IntA is changed.

  • How to set the default selection to "Select All" in a Multi valued parameter in SSRS 2008?

    Hello Everyone,
    How to set the default selection  to "Select All" in a Multi valued parameter in SSRS 2008?
    Regards
    Gautam S
    Regards

    You need to specify "Default Values" in the report parameter property. Choose similar option used in the "Available Values" option, this will allow the parameter to check "Select All".
    Regards, RSingh

  • How to set the Default values for Info Objects in Data Selection of InfoPac

    Hi All,
    Flat file Extracion:
    How to set the Default values for Info Objects in Data Selection Tab  for Info Package
    ex: Fiscal Year Variant  Info Object having values 'K4' 'Y2' etc  in Flat file
    Initially  default value(not constant)  for this info Object value should be 'K4'  in Info Package
    If I set data selection value for this info object K4 it will retreive records with this selection only? how to handle
    Rgds,
    CV

    Hi,
    suppose as your ex. if you are having fiscalyear variant in the dataselection tab then specify K4 in the from column, again the ficalyearvariant row and click on insert duplicate row at the bottom . you will get another row . In that enter Y2 in the from column. now you can extract K4, y2 values .
    haritha

  • How to set the value of something in a component from the main application?

    Hi,
    Maybe I've been working on this too long, but I can't figure
    out how to set the value of the text property of a text input field
    in a component from my main application in an mx:Script block. I
    have a component called Login in the components folder, and I need
    to set the text value of empNum. In my mxml declaration at that the
    top, I've declared these components as xmlns:c="components.*" So
    logically, the property I'm trying to set is c.Login.empNum.text. I
    can't figure out the correct syntax to get this to work, and I've
    tried everything I can think of. Does anyone have any suggestions?
    I'm thinking this should be an easy one, and I'm just missing
    something.
    Thanks!
    Holli

    Did you try giving it an id ?
    <c:MyLogin id="loginScreen" /c>
    So later you can do loginScreen .empNum.text = "my text"
    Laurent,

Maybe you are looking for

  • Problem in calling of stored procedure with variable parameters

    Hello! When we try to call our stored procudure with variable parameter (year and month) we receive various errors. Here's the dynamic package script code: DEBUG(ON) PROMPT(SELECTINPUT,,,"Please select time for restatement",%TIME_DIM%) TASK(Execute f

  • Rman problem with NLS_LANG mismatch b/w catalog and target DB

    Hi, I have target database NLS_LANG set to 'AMERICAN_AMERICA.JA16SJIS' and recovery catalog NLS_LANG set to 'JAPANESE_JAPAN.JA16EUC'. When backup is started the rman fails with the following error. <---- RMAN-00571: ==================================

  • Photo Booth not working anymore

    I have a USB cam that used to work well with Photo Booth using iChatUSBCam, but not for longer than a minute in an actual iChat video conference. I updated to iUSBCam recently, and now iChat video works well, but now all I get is a blank black screen

  • Cannot download songs - Unable to check for purchases...

    Hello everybody, This week-end I tried to upgrade my library to iTunes Plus. Everything went fine. But the problem is that I have 228 files to download, and I cannot do it, because iTunes tries to check for purchases... and then it stops by saying th

  • How can I not wait for a RFC response

    Hi everyone, i want to execute an RFC and not wait for the response, i don´t care, so, is there a way to achieve this ? thanks