[Datasource Configuration] New message: "Re: How to Read my oracle*ds.xml"
by jaikiran pai
User development,
A new message was posted in the thread "How to Read my oracle*ds.xml":
http://community.jboss.org/message/524517#524517
Author : jaikiran pai
Profile : http://community.jboss.org/people/jaikiran
Message:
--------------------------------------------------------------
> peterj wrote:
>
> I know that at one time the app server would close the connection for you if your servlet did not close it (saw lots of forums posts on this); not sure if that is still the case.
I think (although i am not sure), the CachedConnectionManager comes into picture only in a app server environment (i.e. a client like a servlet, EJB etc...). In this case where the client is a standalone application (and doesn't doesn't enroll in some JTA transaction), i don't think it plays a part. I'll have to lookup the docs some time later today.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/524517#524517
16 years, 5 months
[Datasource Configuration] New message: "Re: How to Read my oracle*ds.xml"
by Ram kumar
User development,
A new message was posted in the thread "How to Read my oracle*ds.xml":
http://community.jboss.org/message/524505#524505
Author : Ram kumar
Profile : http://community.jboss.org/people/maluram
Message:
--------------------------------------------------------------
peterj wrote:>
> Where are you getting the Connection Destroyed Count? From the connection pool mbean? There is no way that that count could decrease to 0 after being set at 5, unless there is something you are not telling us.
>
>
I flushed the connections and run the test client again - without closing the connections, which I am interested in. Even after waiting 15 minutes, Connection Destroyed Count = 0 and all the 25 created are still in use. This is from admin-console.
> peterj wrote:
>
> The real value of interest, however, is the in use connection count. And what does your database say is the connection count?
> As far as interpreting your settings, you will have a minimum of 5 and a maximum of 50 connections, and if a connection is idle for 1 minute it will be closed.
The active connections are confirmed both from netstat and database. Perhaps as Jai pointd out, unclosed connections are still in use. Not recycled.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/524505#524505
16 years, 5 months
[jBPM] New message: "Re: Upgrade from JBPM3 to JBPM4 woes"
by nick bauman
User development,
A new message was posted in the thread "Upgrade from JBPM3 to JBPM4 woes":
http://community.jboss.org/message/524481#524481
Author : nick bauman
Profile : http://community.jboss.org/people/nick.bauman
Message:
--------------------------------------------------------------
So in V4 the above looks like so?
ActivityImpl currentWaitState = ((ExecutionImpl) pi).getActivity();
for (int i = 0; i < timedNodes.length; i++) {
if (timedNodes[i].equals(currentWaitState.getName())) {
// Can we get out of here?
if (currentWaitState.hasOutgoingTransition(TIME_OUT)) {
((ExecutionImpl)pi).signal(TIME_OUT);
return;
}
// Misconfigured process definition
throw new RuntimeException("Workflow timed out on current state, but no corresponding timeout transition found.");
}
}
log.debug("Workflow departed any timed state.");
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/524481#524481
16 years, 5 months