RFComm timeout question

Hi,
I'm developing an app that uses RFComm (JSR-82) to transfer data between my PC and cell phones.
The data transfer is working fine.
The problem is that, some times, Connector.open(<URL>) freezes my cell phones for some seconds before give me error when isn't possible to connect to my RFComm server.
Two questions about it:
1. Is it possible to control or to change the connection timeout using J2ME?
2. Using a thread on my J2ME app, could I shutdown the bluetooth connection after N seconds? This way I could try to connect again before the default J2ME timeout.
Regards,
Alexandre.

If there is a possibility that part of your code could crash because of an error or exception, then you should catch it and handle it in an elegant fashion suitable to you. Looking at the API, it doesn't seem possible to specify the timeout, So upon throwing a BluetoothConnectionException, try to reconnect up to a number of times you would like.

Similar Messages

  • Session Timeout Question in EME

    If I login to eManager Web and instead of logging out I just close the browser will I be logged out? Will the license be released? What is the session timeout for this and is it possible to set this value?

    If you close the browser in e-Manager Enterprise Web instead of logging out there is a TimeOut that will release your license. This can be seen and is reported on in the e-Manager logs. By default the session TimeOut value is 30 minutes. You can find this and/or change this value by opening "<installdir>\Empirix\EmpAppServer\server\default\deploy\jbossweb-tomcat55.sar\conf\web.xml" in a notepad. Once the file is open, go the the ?Default Session Configuration? Section. Here you can change the TimeOut value. You will then need to save the file and restart the Empirix Application Service. The idle sessions are retired after the specified timeout is reached and the licenses are also checked upon this value. I hope this answers your questions.

  • Clean Access arp-timeout question

    In the process of getting Wake on LAN working so our support team can push packages at night, another engineer and myself got into a discussion about NAC and arp-timeout values.
    For us this is relevant, as we are unable to do directed broadcast WoL due to the MPLS cloud we are part of, so we are looking at unicast for our WoL system. However, if the apr-timeout value is too low on our switches, they will have "forgotten" about the MAC addresses of the various computers attached to them by the time that we are pushing packages.
    I have read through everything that I can find, and to me it appears that the arp-timeout value is irrelevant with regards to NAC, which uses SNMP Traps to figure out what's going on with each switch / device. The opposing viewpoint is you need to crank down the arp-timeout value pretty low in order for NAC to work correctly.
    In other words, I want to crank the arp-timeout up to 7 hours, he wants it down at 20 minutes.
    I'm not worried about 7 hours being too long, as our environment is almost completely desktop based, so we don't have very much of an issue with computers being moved around.
    Anyone have any insight into this?
    Thanks,
    Andras

    Faisal
    thanks for your reply.
    please i have another question, if we integrate the NAC appliance with AD (enabling AD SSO feature) , will we need to do Mapping Rules on the CAM server or not ???
    MAM

  • Timeout Question.

    Supppose I have  two timeouts of the form:
    -- Checks Internal Database
    TimerData.iPrd = 60000
    internalTimer =
    timeout().new("TimerInternal", TimerData.iPrd, #InternalUpdate)
    timeout 
    ("TimerInternal").persistent = true
    -- Checks External Database
    TimerData.ePrd =
    90000
    externalTimer =
    timeout().new("TimerExternal", TimerData.ePrd, #ExternalUpdate)
    timeout 
    ("TimerExternal").persistent = true
    Now, periodically the timers will want to be triggered at the same time, i.e. the internal timer goes of every 60 seconds and the external timer goes off every 90 seconds. So at internal timer cycle 3 and external timer cycle 2 both timeouts want to be executed.
    Also bear in mind that each timerout process may take more than the cycle period to complete.
    So which timer has priority, if any, and can a timer be executed when another timer is running?
    Your thoughts welcome!
    Thanks In Advance.
    TW.

    The Lingo execution engine is single threaded, meaning only one piece of code can be run at a time. So only one timeout callback will run at a time. If, by doing so, it monopolises the CPU then so be it - any other timeouts will effectively wait until that process finishes and the normal idle scan picks up that they should have fired and will call their callback handlers. In this sense timeouts are not metronomically precise so shouldn't be treated as such. Which will fire first in the competition scenario you describe is unknown - try it and see. In an ideal world I imagine it would be the first one added to the timeoutList (i.e. the first one created)

  • Stateless EJB Global Variable Timeout question

    Hi,
    In this Stateless EJB:
    import javax.ejb.SessionBean;
    import javax.ejb.SessionContext;
    public class HelloBean implements SessionBean
    int testnum = 0;
    public void ejbCreate()
    public void ejbActivate()
    public void ejbPassivate()
    public void ejbRemove()
    public void setSessionContext(SessionContext ctx)
    public String sayHello(String param)
    testnum++;
    System.out.println("Someone call me!" + testnum);
    return "Hello " + param + "! This is an EJB. The current time is " + new java.util.Date() + " The Number is:" + testnum;
    Why "testnum" will keep the value for about 1.5 minutes? If I call this EJB within the 1.5 mins the "testnum" will add the previous value. I don't understand. Because its a stateless session EJB, everytime when I call it the value should be reset.
    How can I fix this problem?
    Please help
    Thanks
    Kenny

    This is why instance variables in a Stateless session bean are not a good idea. The variables do not get reset. It only "appears" to be reset because you probably got a different instance of a session bean.
    Further, since you can be bound to any bean in the pool, you can have different values every time you get a bean.
    Paul

  • Rule Generated vacation messgae timeout question

    Hello all,
    We have a user that wants to set up a Vacation Rule that will send the "Vacation Message" once a day to every user.
    Currently, GroupWise 802 seems to generate the Vacation Message only once per user, until the rule goes away.
    I cannot determine a time out. It is longer than one week.
    So, the complaint is, remote users do not know or remember that she is out of the office if they do not receive
    consistent "Vacation Messages", at least once per week, but ideally, once per day.
    I cannot find this setting or "feature" documented anywhere.
    (It looks like version 7 added this feature to not reply to Every message)
    I rather not open a case with Novell over this, but our user is very insistent.
    Thanks all,
    Brian

    Add Subject contains * to the rule conditions, that should force a reply
    to every message.
    Cheers Dave
    Dave Parkes [NSCS]
    Occasionally resident at http://support-forums.novell.com/

  • RT FIFO Read timeout

    I have a timeout question about RT FIFO Read in Producer/Consumer system. Here is the scenario.
    Producer writes data to RT FIFO via RT FIFO Write;
    Consumer read data from RT FIFO via RT FIFO Read with timeout 100ms;
    If RT FIFO is empty, returns 100ms timeout and stops Producer and Consumer.
    If RT FIFO is not empty, process the data from FIFO and continue Producer/Consumer.
    As I understand, RT FIFO empty means 100ms timeout. But the 100ms timeout condition does not behave properly as expected.
    Am I understanding the FIFO Read timeout correctly?
    Thanks!

    MileP,
    I find the best way to learn about Real-Time FIFOs is to run some examples of them, check these out and let me know what you think:
    https://decibel.ni.com/content/docs/DOC-2303
    https://decibel.ni.com/content/docs/DOC-9893
    http://zone.ni.com/devzone/cda/tut/p/id/3934
    I hope this helps get you going
    Sam S
    Applications Engineer
    National Instruments

  • Patchlev file

    HI,
    who can send me the patchlev file of tuxedo 6.5 and jolt 1.2 .
    I have very slow connection to custsupport .
    Thanks & Best Regards,
    Regina Schwartz
    BEA Israel Support
    Phone: 972-3-7535705
    Fax: 972-3-7517045
    e-mail: [email protected]

    The patch level is the first number for the last fix description. In
    this case "126".
    (Current 6.5 patch level release is around 414). The first line is for
    file version control.
    Bob Finan
    charles gray wrote:
    From our patchlev file...
    Here's the first line:
    #ident "@(#)udataobj:patchlev 1.137 6.5 RPatch Derived From 1.94 6.5 RPatch Derived From 1.1
    Here's the last line:
    126. CR019454 Synchronous TCP/IP connection in Tuxedo 6.5 can cause client timeout
    Question: What is the patch level? 1.137? 1.94? 126?

  • Session timeout skillbuilders question

    Application security attributes settings
    Session Timeout  Maximum Session Length in Seconds   60
    On session timeout direct to this URL   <url>
    Maximum Session Idle Time in Seconds   45
    On session idle time timeout direct to this URL   <url>
    Session timeout component settings
    Name: SkillBuilders Session Timeout (1.0.1) [Plug-in]
    *Session Timeout Action  Alert
    *Session Timeout Message  Application will timeout shortly
    *Mask Browser Screen on Timeout  No
    *Session Idle Warning  Yes
    *Session Idle Title      Idle message Warning ( I cannot see this displayed but when I copied that area this came)
    *Session Idle Message    This application session will expire shortly! If you want to continue working please click ok on the alert.
    *Show Warning Seconds Before  40
    *Keep Session Alive           Yes
    So the moment I start my application and the login page is displayed i get the idle message displayed on the screen.  So my application should timeout in 1 minute. I should be alerted after 45 seconds.
    Are the settings correct?
      Murali

    Please keep in mind that maximum session length and idle time are two different things. The following configuration should satisfy your requirements
    Configure the following application attributes:
    "Maximum Session Length in Seconds" =  ??? -- you did not specify how long your session can last, if left blank it will revert to the instance level setting which defaults to 8 hours
    "Maximum Session Idle Time in Seconds" = 10800 -- the maximum amount of time the user as to interact with the server again
    Configure plugin settings:
    "Session Timeout Action" = ALERT
    "Session Timeout Message" = <your message>
    "Session Idle Warning" = Yes
    "Session Idle Title" = <your title>
    "Session Idle Message" = <your message>
    "Show Warning Seconds Before" = 900 -- 15 min x 60 seconds
    "Keep Session Alive" = Yes -- this will renew the session if the user interacts with the idle warning
    Please let me know if you have any questions.
    Good Luck!
    Tyson

  • General question re session timeouts

    we'd like to increase the session timeout for our portal from the default 20 min to 60 or so.
    recommendations from plumtree and microsoft suggest that increasing the session timeout (on the server - IIS) to beyond 20 minutes will be detrimental to performance and both advise against it.
    another option would be for users to change their page update settings (through my account -> display options) to say 15 minutes to provide a way of keeping the session alive.
    My question is, isn't this just as much as a performance drain as increasing the session timeout on the server?
    thanks
    Simon Dragicevich

    we'd like to increase the session timeout for our portal from the default 20 min to 60 or so.
    recommendations from plumtree and microsoft suggest that increasing the session timeout (on the server - IIS) to beyond 20 minutes will be detrimental to performance and both advise against it.
    another option would be for users to change their page update settings (through my account -> display options) to say 15 minutes to provide a way of keeping the session alive.
    My question is, isn't this just as much as a performance drain as increasing the session timeout on the server?
    thanks
    Simon Dragicevich

  • LMS 3.2 DFM-all devices QUESTIONED-SNMP Timeout

    I imported 26 devices to DFM. All devices became QUESTIONED, error is SNMP timeout. Here are the troubleshooting steps that I tried:
    1. rediscovered devices
    2. deleted and rediscovered devices
    3. increase snmp timeout settings
    4.re-entered snmp strings in device credentials
    But I still get the same result.I noticed that devices become questioned so fast.Any advise on this?

    Hi,
    What version of SNMP you are using on these 26 devices ?Try to do the following:
    - Go to Device Center
    - Select one device for test
    - click on "check device credentials", select SNMP according to the version you are using.
    - See the results.
    May be you get more technical and detailed information about the SNMP timeout error. I have already experienced some problems using SNMP v3. The problem was resolved when I configured the SNMP v2c instead of v3.
    Also, I suggest you to try do "SNMP walk" test in the Device Center. If you get some results reading, for example, the value of "sysObjectId", just verify the Credentials Settings in DCR. You can edit the Credentials trhough the Device Center -> Edit device credentials.
    Regards,
    Wando N. Rocha

  • Hi I have two questions. I am using NAS 4.1 and was wondering is it possible to set a different session timeout for different users? How is the session timeout set? Thanks, YS

     

    <i>I am using NAS 4.1 and was wondering is it possible to set a different session timeout for different users?</i>
    Um, there is no such thing as NAS4.1.
    I'm assuming that you mean NAS4.0 (maybe NAS4.0sp1?). If so, then the session timeouts are specified in the session section of the NTV configuration files.
    AFAIK, you can specify session timeouts on a per user basis.

  • Re:Question related to the Packet timeout error

    2010-03-08 09:11:05.273 Tangosol Coherence CE 3.2.2/371 <Warning> (thread=PacketPublisher, member=2): Member(Id=3, Timestamp=2010-03-07 12:23:13.958, Address=xxxx, MachineId=5238) was unresponsive for 15369 ms, 93 packets have timed-out, PauseRate=0.0040, Paused=false, Deferring=true, OutstandingPackets=0, DeferredPackets=12, Threshold=512
    2010-03-08 09:19:22.772 Tangosol Coherence CE 3.2.2/371 <Warning> (thread=PacketPublisher, member=2): Member(Id=3, Timestamp=2010-03-07 12:23:13.958, Address=xxxx, MachineId=5238) was unresponsive for 16448 ms, 111 packets have timed-out, PauseRate=0.0042, Paused=false, Deferring=true, OutstandingPackets=0, DeferredPackets=10, Threshold=512
    2010-03-08 09:30:52.651 Tangosol Coherence CE 3.2.2/371 <D5> (thread=PacketPublisher, member=2): Member(Id=3, Timestamp=2010-03-07 12:23:13.958, Address=xxxx, MachineId=5238) was unresponsive for 28 ms, 20 packets have timed-out, PauseRate=0.0042, Paused=false, Deferring=true, OutstandingPackets=0, DeferredPackets=1, Threshold=512
    2010-03-08 09:37:50.583 Tangosol Coherence CE 3.2.2/371 <Warning> (thread=PacketPublisher, member=2): Member(Id=3, Timestamp=2010-03-07 12:23:13.958, Address=xxxx, MachineId=5238) was unresponsive for 10590 ms, 60 packets have timed-out, PauseRate=0.0043, Paused=false, Deferring=true, OutstandingPackets=0, DeferredPackets=5, Threshold=512
    2010-03-08 09:50:00.635 Tangosol Coherence CE 3.2.2/371 <D5> (thread=PacketPublisher, member=2): Member(Id=3, Timestamp=2010-03-07 12:23:13.958, Address=xxxx, MachineId=5238) was unresponsive for 132 ms, 20 packets have timed-out, PauseRate=0.0043, Paused=false, Deferring=true, OutstandingPackets=0, DeferredPackets=1, Threshold=512
    2010-03-08 09:50:19.086 Tangosol Coherence CE 3.2.2/371 <Warning> (thread=PacketPublisher, member=2): Member(Id=3, Timestamp=2010-03-07 12:23:13.958, Address=xxxx, MachineId=5238) was unresponsive for 8954 ms, 73 packets have timed-out, PauseRate=0.0044, Paused=false, Deferring=true, OutstandingPackets=0, DeferredPackets=10, Threshold=512
    1. Will the packet retry if they get this timeout error?
    2. why is the logs timestamp and the packet timestamp is having very large gap nearly 1 day in some cases
    3.How long does the packet wait before it timesout ,i see the unresponsive time varies from 80ms to 10000 ms
    4.When do we get this warnings? is there any remedy?

    Wow Coherence 3.2, I haven't seen that in years, it is a pre-Oracle version. I'd suggest considering an upgrade to 3.5, which should be doable without even recompiling your code, just restart the cluster with new jars.
    But that isn't what you asked. This message was reworded in Coherence 3.3 and later to refer to these events not as packet timeouts, but as rescheduled packets do indicate that they are automatically retried.
    Regarding the timestamp that is the timestamp of the cluster member to which the packet was sent. A members timestamp is the time at which it joined the cluster.
    The default packet retry interval is 200ms, I.e. If we don't get an ACK to a packet in that time we will retransmit it. After 1m of this we will give up and remove either the sender or receiver from the cluster. The time intervals in the log messages are with respect to when the first ACK was expected, so a reported delay of 80ms means it took 280ms to delived a packet.
    These messages highlight periods of failed communication, and usually are the result of garbage collections. Some of yours are quite bad (multiple second), indicating that you've likely overcommited your java heap. The effect of the outages should be poor overall cluster performance and if bad enogh should also cause heavily GCing nodes to be kicked out of the cluster.
    Mark
    Oracle (Tangosol) Coherence

  • Question about web service and timeouts

    I have a form with a button script that invokes a synchronous soap web service request to an address validation service. It works nicely in testing but I am a bit concerned at what might happen when we go live with respect to the form hanging if the soap server is unavailable or the user is offline.
    From some simple tests in production, where the web service is available yet:
         - in Windows, it times out in Adobe Reader 10.1.1 within about 15 seconds; and
         - In the Mac, with Adobe Reader 10.1.3 it takes around 4 1/2 minutes.
    The latter is not good, as it hangs Reader the entire time.
    Is there some way I can set a timeout in the soap request. Would it be worth considering an async call? If I changed it to async, could I let the user continue to fill the form and then setFocus with an async flag?

    Hi,
    I'm almost there. I dont think that you can do exception handling in FormCalc. How do I trap the error. So far I have
    if (HasValue(Get("http://despaiqo001.development.local:4001/crossdomain.xml")) == 0) then
         $xfa.host.messageBox("not available")
    else
        $xfa.host.messageBox("got it")
    endif
    but when I change the URL so it cant access it, I get a form calc exception. Any samples of how I can script it?

  • Event Log Question re: changing security timeout

    I believe someone may have changed my security timeout time from 2 minutes to 30 minutes and changed "require password for new apps" from yes to no.  I know the approximate time when this occured but am overwhelmed by the volume of entries and the nomenclature.  Is there something specific I could look for to confirm or refute my suspicion?  Is there a "layman's" way to download the log without having developer tools?
    Thanks

    Hey raindogbc,
    You can extract the device logs as outlined in this article: How to extract the event logs on a BlackBerry smartphone http://btsc.webapps.blackberry.com/btsc/KB05349.
    Depending on what the logging was set to when this happened and when it happened you may not be able to find this information.
    -HB
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

Maybe you are looking for

  • Re. 10.4.11 Combo Update

    I want to install the 10.4.11 PPC Combo Update. However, mDNSResponder has been moved from /sbin to Users on my computer in order to disable Bonjour. Will applying the Combo Update reinstall mDNSResponder to /sbin? If so, would I just move it out aga

  • Creating Base Station with Extreme Card.

    I have a 3 year old Mac Pro running Snow Leopard and just had an Extreme card installed. I want to connect to my iPod touch and Apple TV. I assume that I need to create a network and establish my Mac Pro as a base station. Other forums discuss using

  • Does SAP support the Contractor Witholding Regulations REG-158747-06

    Purchasing and payments is not an area I am very familiar with.  I am trying to get enough information to determine what sort of assistance we will need. Can anybody tell me if the new IRS Contractor Withholding mandate (REG-158747-06  [http://www.ir

  • How good is TC as router?

    Just bought TC and am curious if I should just keep my existing ethernet router/WAP (both DLink) or just use TC services. One big thing I'm wondering - my DLink router has a hardware firewall and it has, from what I've seen so far, a much more detail

  • The "APPLET" Tag

    On the web site "http://geocities.com/xyz" I have the following files : 1. index.html 2. myJar.jar 2.1 mainClass.class 2.2 someOtherClass.class 2.3 pic.gif In the index file, there is the following tag : <code> <APPLET code="mainClass.class" codebase