[Management, JMX/JBoss] - Programatically restarting datasource under certain conditio
by jwillemin
So, we ran into a situation (somehow) where all of a sudden the connection pool stops giving us good connections. We try to do stuff, but all we get is "connection closed" errors. All we know, right now, is that restarting fixes it.
We haven't been able to reproduce this yet, but I'd like to plumb something in to do the restart automatically. We have a datasource in an XML file, and a .war that uses the datasource (but strictly speaking, does not depend on the datasource, i.e. we have not linked them to be dependent).
I am trying to figure out what the best way to do this is:
-Grab just our datasource from an MBeanServerConnection and somehow restart it, or
-Grab the CachedConnectionManager from an MBeanServerConnection and restart it?
I can't remember exactly whether one does those things directly (by getting a reference to the CCM and then invoking CCM.stop() and CCM.start()) or if you have to go through the JMX bus somehow. Since stop and start are protected I am assuming that there is a different way I need to do this.
Thanks!
John
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989440#3989440
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989440
19Â years, 5Â months
[JBossWS] - Re: jbossws1.0.x is a preview implementation with support fo
by bocio
"maeste" wrote : Probably you didn't understand what here and in other post was said.
| Just jsr-181 is a preview.
|
| Jbossws is production ready and we use it in our production environment with something like 200 operations in 49 wsdls.
|
| Of course we made some investments to understand in deep ws standards and jboss' implementations.
|
Stefano,
probably you didn't read my first reply: I'm testing it as JSR109 client and it has a lot of problem. Please read my recent posts on this.
For me worked nearly flowless only in a JBoss - JBoss environment.
But... giving that, on production site I have to face with server endpoints running on websphere 6.1 and, of course, I cannot change the Italy Ministry of Finance WS interface, I stated that current version simply doesn't work for me.
Same thing with webservices exposed by another legacy application here. They are generated with Axis2 and again, jbossws 1.0.4 client simply does not work. All operations returns or accepts custom value objects. I posted some messages for this.
On another side project I have to implement both endpoints. The only requirement to meet is tomcat standalone. I said "Ok, on this I will use a pure jbossws implementation..."
Unfortunately the installation is broken and I opened a bug report on jiira.
Nobody replied and maybe I'm asking things answered 10000 times. I found nothing on docs, wiki and forums. Maybe I'm wrong but this should be the goal of these forums. I just expressed my opinion (IMHO). And I'm patiently waiting that these problems will be solved or someone will have some spare time to reply me. Even a "you wrote a lot of bullshits" would be enough :-)
"maeste" wrote :
| Of course we made some investments to understand in deep ws standards and jboss' implementations.
|
I'm using JBoss in production sites since 2.4.6 version many years ago, and I brought it with me across three companies. On summer 2004 we spent about 17.000 Euro for training from the only jboss certified italian company. Is it enough?
You see, while I know I didn't pay the car, I'm becoming a little tired to wear an "engineer white coat" each time just to drive this car ;-)
And reading Jboss mailing lists and forum since so many years I can assure you that a lot of things changed. JBoss AS became very popular and consequently background noise increased. Quality on forums lowered on both sides and the jboss staff attitude has changed a lot.
Moderators, please feel free to move this message to the useless rants corner
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989434#3989434
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989434
19Â years, 5Â months