Detecting Jboss is down and retrying after sometime

hi,
we have a JMS client that talks/ topic-publishes to a JBoss. the client is on a diffarent machine/ server. Now the problem is that if the JMSClient is up but not the jboss the context.lookup('abc') is hanging intermitantly. I tried timeouts but it doesnt work. is there a solution to this? or is this a known issue?
the code is as follows:
Hashtable env = new Hashtable();
env.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
env.put("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");
env.put("com.sun.jndi.ldap.connect.timeout", lookupTimeout);
env.put("java.naming.provider.url", url);
ctx = new InitialContext(env);
tcf = (TopicConnectionFactory) ctx.lookup(connectionFactory); //>>> its hanging here; i figured it using debugger and thread dumpsWhen the controller passes through this line it throws exception: but the function call doesnt return and it remains hanged there (as said above)
javax.naming.CommunicationException: Failed to connect to server 10.1.118.85:1099 [Root exception is javax.naming.ServiceUnavailableException:
Failed to connect to server 10.1.118.85:1099 [Root exception is java.net.ConnectException: Connection refused]]
        at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:215)
        at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1152)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:485)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:478)
        at javax.naming.InitialContext.lookup(InitialContext.java:392)
        at com.pg.sync.SYNCJMSProductServers.getTopicConnectionFactory(SYNCJMSProductServers.java:194)
        at com.pg.sync.SYNCJMSProductServers.getTopicConnection(SYNCJMSProductServers.java:179)
        at com.pg.sync.SYNCJMSProductServers.createPublisher(SYNCJMSProductServers.java:153)
        at com.pg.sync.SYNCJMSProductServers.getPublisher(SYNCJMSProductServers.java:146)
        at com.pg.sync.SYNCJMSProductServers.publishJMSMessage(SYNCJMSProductServers.java:109)
        at com.pg.sync.SyncANCRemoteServiceImpl.execute(SyncANCRemoteServiceImpl.java:39)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:296)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:177)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
        at org.springframework.remoting.support.RemoteInvocationTraceInterceptor.invoke(RemoteInvocationTraceInterceptor.java:70)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
        at $Proxy0.execute(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.springframework.remoting.support.RemoteInvocation.invoke(RemoteInvocation.java:205)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
        at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
        at java.lang.Thread.run(Thread.java:619)
Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server 10.1.128.85:1099 [Root exception is java.net.ConnectException:
Connection refused]
        at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:190)
        ... 59 more
Caused by: java.net.ConnectException: Connection refused
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
        at java.net.Socket.connect(Socket.java:519)
        at java.net.Socket.connect(Socket.java:469)
        at java.net.Socket.<init>(Socket.java:366)
        at java.net.Socket.<init>(Socket.java:267)
        at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:69)
        at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:62)
        at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:186)
        ... 59 more                                                                    Am i missing anything? Please help me.
regards,
ravi

Hi,
I have the same problem and I'm using jbossall-client-3.2.3.jar.
Do you think that using jboss-clientall.jar will solve the problem?
Please let me know where I can download this jar. I couldn't find it anywhere when searching it in Google.
Thanks!!

Similar Messages

  • Hi, I cannot restart or shut down my MAC and get the message Geneio.it installer is cancelling your request. Please shut down and retry. However, I cannot seem to exit that application and I have no idea where it came from. Thanks

    Hi, I cannot restart or shut down my MAC and get the message Geneio.it installer is cancelling your request. Please shut down and retry. However, I cannot seem to exit that application and I have no idea where it came from. Thanks
    Could this be a virus?

    Hold down the Power button until the computer shuts down.
    The Safe Mac » Adware Removal Guide - Genieo
    The Safe Mac » Adware Removal Guide
    Helpful Links Regarding Malware Protection
    An excellent link to read is Tom Reed's Mac Malware Guide.
    Also, visit The XLab FAQs and read Detecting and avoiding malware and spyware.
    See these Apple articles:
              Mac OS X Snow Leopard and malware detection
              OS X Lion- Protect your Mac from malware
              OS X Mountain Lion- Protect your Mac from malware
              About file quarantine in OS X
    If you require anti-virus protection Thomas Reed recommends using Dr.Web Light from the App Store. It's free, and since it's from the App Store, it won't destabilize the system. If you prefer one of the better known commercial products, then Thomas recommends using Sophos.(Thank you to Thomas Reed for these recommendations.) If you already use Sophos, then be aware of this if you are using Mavericks: OS X Mavericks- Sophos Anti-Virus on-access scanner versions 8.0 - 9.1 may cause unexpected restarts
    From user Joe Bailey comes this equally useful advice:
    The facts are:
    1. There is no anti-malware software that can detect 100% of the malware out there.
    2. There is no anti-malware that can detect anything targeting the Mac because there
         is no Mac malware in the wild, and therefore, no "signatures" to detect.
    3. The very best way to prevent the most attacks is for you as the user to be aware that
         the most successful malware attacks rely on very sophisticated social engineering
         techniques preying on human avarice, ****, and fear.
    4. Internet popups saying the FBI, NSA, Microsoft, your ISP has detected malware on
        your computer is intended to entice you to install their malware thinking it is a
        protection against malware.
    5. Some of the anti-malware products on the market are worse than the malware
        from which they purport to protect you.
    6. Be cautious where you go on the internet.
    7. Only download anything from sites you know are safe.
    8. Avoid links you receive in email, always be suspicious even if you get something
        you think is from a friend, but you were not expecting.
    9. If there is any question in your mind, then assume it is malware.

  • My iPhone is about 6 months old now and I would say I don't use it that much. Yet for the last month or so the battery life has been going down and today after having charged it to 100% this morning, it was at 5% at 4 pm this aft. help!!

    my iPhone is about 6 months old now and I would say I don't use it that much. Yet for the last month or so the battery life has been going down and today after having charged it to 100% this morning, it was at 5% at 4 pm this aft. help!!

    Ok Fellas, let me give you a clue:  Games, particularly those that make heavy use of graphics and sound are notoriously power hungry.  In fact, when I was in the Navy many years ago, the folks working on the NTDS (Navy Tactical Data System)  computers used a version of Space Invaders to load test the AN/UYK-43 computers.
    I have also noticed that all of my laptops (I have a brand new Toshiba dual core, an older Toshiba single core, plus 2 Dell dual core machines) have significantly shorter battery life when I play Company of Heroes than when I am just reading e-mail or surfing the 'Net.  I have also noticed the same behavior when I play games on my 4th gen Touch and my iPhone 4.
    The fact is, iOS 5 did make some major improvements as well as adding some nice functionality like iMessage, wireless synch, and such, but the down side is that depending on how you use the device battery life can be shorter that what you may have experienced with pervious versions of iOS.  Its just the nature of the beast...
    We now return you to our regularly scheduled programming.....
    Oh John....  Oh Marsha.....

  • My ipad shut down and restart after

    Hye
    My iPad shut down and restart after alone CAN you ex plain me what CAN i do

    Try a reset:
    1. Hold the Sleep and Home button down (together) for about 10 seconds
    2. Until you see the Apple logo (very important)

  • Computer keeps shuting down and reboot after 10 minutes

    Pavillion PC p6107
    After 2 years just keeps shuting down and rebooting after 10 minutes. Checked fans and dust, not the issue. All scans HP, Norton etc indicate nothing?

    Hi:
    I would yank all the memory but one chip and test each one in the primary memory slot.
    Maybe one of your memory modules is flaky. Not completely bad memory to me is worse than a stick that just dies and won't let your PC boot up at all.
    Could be a power supply on its way out too.
    Paul

  • Time Machine WIFI slows down and Fine after I unplug it?

    My Time Machine WIFI slows down to an absolute crawl and then after I unplug it and plug it back in, it's back to normal. Can someone help me?

    My Time Machine WIFI slows down to an absolute crawl and then after I unplug it and plug it back in, it's back to normal.
    This is a classic case of the effects of wireless interference from other networks around you. See the link at the bottom for more information about this.
    It might first help to understand why things improve when you unplug the Time Capsule and then power it back up. When you do this, the Time Capsule will scan to find the best available wireless channels to use at the time.
    Unfortunately, other wireless routers are doing the same thing all the time, so after a few hours or a day or two, the channel(s) that the Time Capsule was using become overcrowded and the wireless slows down to a crawl. Cordless phones can also create interference issues for a wireless network as well as any number of other electronic devices.
    Unless you can convince other users around you to turn off their wireless routers, there is not much that you are going to be able to do to come up with a permanent fix. For now, locate the Time Capsule as far away from any outside walls in your home as possible and use the 5 GHz band for as many connections as you can.
    A friend of mine who recently moved into a new apartment complex has the same problem. He has to restart his wireless router at least twice a day, sometimes more on the weekends.  Too many wireless networks.....not enough channels.
    Wi-Fi and Bluetooth: Potential sources of wireless interference - Apple Support

  • My computer slows down and hangs after installing oracle 10g

    My computer just slows down after installing oracle 10g. I have a pentium 4 3ghz with 512 memory (32 mb used by graphics built in card). It slows down and hanged even if I agjusted the swap memory to 800 mb. I have two swap file/page file - in drive c and drive d. I even cannot shut it down because it takes maybe 30 minutes just to see the "shut-off/log-off" screen.

    Before starting up Oracle, when you go to the task manager, how much RAM does it show actually free? 512 MB is pretty small to run Oracle in the first place-- Windows and Office can use a fair chunk of RAM themselves, depending on which Office apps you are running. You may also be suprised by the amount of RAM that a web browser, email client, and the various other apps that folks generally install can use.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Bevel effect moves Featured News buttons down and right after update

    After I applied the update today, all of the Featured News buttons with the Bevel Effect have been moved down and right about 1/4" and I cannot seem to fix.  I used the Bevel feature for all buttons in the Rollover, Mouse Down, and Active states.  Before I applied the update, the bevel feature worked great, but now, as you can see from the image, the buttons have now moved down and to the right.  I've even tried deleting the entire widget and starting over, but no fix.
    The attached image shows the Featured News buttons.  The top button is in ACTIVE state with the Bevel effect activated.  The "Step 3" button shows the Rollover state with the Bevel effect activated.  All other buttons show the NORMAL state - NO BEVEL.  Before the update was applied, the buttons would appear in the same location as the NORMAL state, but now the buttons appear lower and to the right as you can see.

    I'm having similar problems - and now I cannot remove the bevel from my buttons and they are shifting all over the place!

  • My iphone 5 keeps randomly shutting down and takes pictures sometimes when pushing the home button, the sleep button rarely works also.

    My iphone 5 randomly shuts down, locks itself inside the time limit, takes pictures sometimes when pushing the home button, (not always). any clues? I`ve tried the backup and restore option. nothing changed?

    It may be eligible for the following: https://ssl.apple.com/support/iphone5-sleepwakebutton/

  • Laptop keeps shutting down and restarting after touchpad dies

    Trying to decide ehat went wacky on a friend;s Toshiba SATELLITE S105-3713 laptop (running WIndows Vista Home Premium).  
    FIRST: touchpad just stopped working; I hodeb up an external mouse and checked out the device manager - no touchpad existed at all!  Went rhough Control Panel - same thing!  As if there were no touchpad installed. 
    THEN:  Decided to donwlad and reinstall the driver but  as I typed it was as if something else had control of the keybaord - characters I entered were deleted as if the backspace key had been hit, or I selected a website and no sooner got there but I was returned back to the initial search screen.
    Ran a quick anti-virus scan and came up with nothing.  Then I deleted the old Synaptic Touchpad  driver, rebooted and re-installed the driver from a flash drive (I had downloaded from the Toshiba support site using another PC).  Still no touchpad finction and system still behaving as if a ghost had contgrol of the keybaord and the pinting device.
    NOW HERE IT GETS WEIRD!  Decided to shut the laptop down for the night but each time it shut down it staarted right up again!  Finallyhad to pull the power cord and the battery. 
    So...is it possible there is a nasty virus in here?  Or could a system short / partial failure cause this crazy behavior? 
    This is a backup system for my friend - has anew laptop with all current data on it so this one is not critical.
    Should I try reformatting the hard drive and reinstalling the OS?  Or could htere be a hardware problem not worth fixing?
    Help!  Thanks  - Cindy

    SATELLITE S105-3713
    Turns out to be this one, Cindy.
    Satellite A135-S4467 (PSAD0U-03M00P)
    Downloads are here
    Bookmark those two pages for your model.
    Best to restore the hard disk to its original out-of-the-box contents using Toshiba recovery media. Order recovery discs from Toshiba by scrolling down to Get Recovery Media here.
    For instructions see the section Hard Disk Drive Recovery using the Recovery media, which begins on p. 62 of the User's Guide
       Satellite A130/A135 Series User's Guide
    That User's Guide should come in handy for other things too.
    -Jerry

  • MacBookPro 10.7.5 shuts itself down and restarts after around 5 minutes of non use.

    This started after my last security update last week. Is there a setting I need to change? or is this a quirk?
    It's infuriating.

    From the menu bar, select
     ▹ System Preferences... ▹ Security & Privacy ▹ Advanced... ▹ Log out after … minutes of inactivity: Off
    If there's a closed padlock icon in the lower left corner of the preference pane, you may need to click it to unlock the settings. Enter your login password when prompted.

  • Flash html5 - How can i make an internal movie clip slow down and stop when it get to a certain frame?

    I am creating an automotive braking system using flash and have a wheel turning. I want the wheel to slow down and stop after the brake pedal is pushed at a certain frame. I know I could do this with frame by frame animation but was hoping there was a short cut - javascript?? If not the slowing down portion then is there code for just making the internal movie clip (wheel turning) to stop when it gets to a frame.? Thanks

    you can use the ticker class to create a loop that you use to control the wheel's rotation or frame, TweenJS v0.6.0 API Documentation : Ticker

  • Phone shutting down and freezing up?

    Is anyone who has the iPhone 4S experiencing problems such as frequent shut down and freezing after installing ios7? I never dropped my phone, it never got wet. These problems I'm being told even from my carrier are due to ios7. Now I have to pay $125.00 right before the Holiday season if I want to go though my insurance or 200 if I go though Apple. Even the apple customer service rep told me that he was sure that this problem was because of IOS 7. I've tried resetting it to factory settings. At least 3x a day it completely freezes up and/or shuts off. Additionally the WiFi is greyed out and won't connect to any wifi.
    Help!

    @JMcDonald10
    I understand how being available to be contacted is very important. Let's work together and get this resolved immediately.
    Yes the device does come with a  one year manufacturers warranty.  We have several options that we can try before replacement. You won't even have to leave your home. Did this problem start after a particular application was downloaded? Put the Incredible in Safe Mode and retest. Here's a link for Safe Mode. Does it freeze or reset?
    If it is an application that's causing this and you can't find which one, I would recommend backing up the device and performing a hard reset.
    Please let me know if you still experience any issues after these steps. We want you to have a great experience with your Incredible!
    Thank you

  • MacBook Pro sometimes stays on after shut-down and drains the battery.

    Sometimes my MacBook Pro stays on after I shut it down and it drains the battery until it dies. I return home to find it the clocks and everything have to be reset.  It appears to be shut-down after I select that command, but on occasion it will remain on in a semi-on state and i need to force quit it w/ the power button.  It usually shuts down ok, but this happens every once in a while and I have to continually double-check that it's off before leaving it.  Otherwise, I will come back and the battery will be very warm and the machine is running, but not really on.  Any ideas?

    Problem solved by my own. But do not how :) magsafe again working and the laptop tooo

  • My Power Mac G5 is freezing up. A few days ago my G5 started freezing up, the cursor is unresponsive and none of the keys have any use. I have to press the power button to shut down and then restart. Sometimes on the restart, instead of the Apple logo I g

    A few days ago my G5 started to freeze up while in use. It doesn't matter if in Safari, iTunes, Pages, etc. The cursor will not respond nor does any keystroke, force quit, escape, etc. I have to hold the power button down to shut the computer down. Then, try to restart. Sometimes restart will work and the computer will work for a while and then freeze again. Other times on restart, instead of the Apple logo at start up, I get a Zero with a line thru it, have to power off and restart again. When it does restart, the "spinning gear" takes a lot longer than normal to spin up and take me to the login screen. Have been told it may be my hard drive getting ready to fail. Have looked at disk utilities, S.M.A.R.T looks fine, "verified" and have verified disk, and repaired permissions. In case it is the hard drive, I bought external hard drive and hooked it up to Time Machine. The backing up to a long time, overnight, about 10 hours because it kept freexing up and I would have to shut down and try restarting again. Finally got everything backed up.
    Any help or suggestions greatly appreciated!!!   Could it be my hard drive is dying? Is the the normal chain of events or is it something else???

    Ok, to copy the Drive from one to another, get carbon copy cloner to make an exact copy of your old HD to the New one...
    http://www.bombich.com/software/ccc.html
    Or SuperDuper...
    http://www.shirt-pocket.com/SuperDuper/
    Believe it or not, anything on the Desktop uses 3 times the Resources of the Mac than if stored elsewhere, I can note a slowdown from just 30 items on the Desktop on a really fast Mac, so the less the better on the Desktop.
    DW will not tell you about Bad Sectors, it's just the very best at Repair Directory damage & such.
    At this point I think you should get Applejack...
    http://www.macupdate.com/info.php/id/15667/applejack
    After installing, reboot holding down CMD+s, (+s), then when the DOS like prompt shows, type in...
    applejack AUTO
    Then let it do all 6 of it's things.
    At least it'll eliminate some questions if it doesn't fix it.
    The 6 things it does are...
    Correct any Disk problems.
    Repair Permissions.
    Clear out Cache Files.
    Repair/check several plist files.
    Dump the VM files for a fresh start.
    Trash old Log files.
    First reboot will be slower, sometimes 2 or 3 restarts will be required for full benefit... my guess is files relying upon other files relying upon other files! :-)
    Disconnect the USB cable from any Uninterruptible Power Supply so the system doesn't shut down in the middle of the process.

Maybe you are looking for

  • How do I connect multiple bluetooth devices to macbook pro

    Hi, I would like to connect bluetooth headset(Bose), my Magic mouse together to my macbook pro.  Also, If possible, I would like to use bluetooh headset and wired headset at the same time. Is it possible, if yes, could some one guide me. Regards Sand

  • Windows Authentication in Sender Jdbc Adapter

    Hi, We have a sender jdbc scenario where there is no user id/passowrd maintained for the database. ONly the windows user id/password is used. Is it possible to connect to such a database through JDBC adapter. If so, please tell how to do that?

  • Differnet spool request for different costomers

    Hi folks, I am using f.27 to create a monthly customer statement. But i need differnet spool request for different costomers. so that i can mail the reports for costomers differently. now single spool request is generating. regards Vijay

  • Inserts slooooooooooow

    I'm running Oracle 8.1.6. I connect to the database through jdbc using Oracle's thin driver. I'm noticing my inserts are painfully slow. I turned autocommit off but that hasn't helped. My inserts were fine with 8.1.5; has anybody else experienced slo

  • Quality of digital zoom in N-82

    Currently I use N-93i with optical zoom. Can anyone say how good is the quality of digital zoom especially when shooting videos. I use my N-93i for lot of video shooting and the feedback on the topic help me take a decision. Conversely should I wait