Hi

you may use the MBean "directly".
Here a sample JSP Page printing the value:

------- 8< snip ----

<html>

<%@page
   import="javax.management.*"
%>

<h1>AvailableConnectionCount</h1>

<%
   MBeanServer server =
(MBeanServer)MBeanServerFactory.findMBeanServer(null).iterator().next();
%>

  <%=server.getAttribute(new
ObjectName("jboss.jca:service=LocalTxPool,name=DefaultDS"),
"AvailableConnectionCount")%>

</html>

------- 8< snip ----

Kristian

> -----Ursprungliche Nachricht-----
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]Im Auftrag von Rafal
> Kedziorski
> Gesendet: Donnerstag, 6. Februar 2003 13:11
> An: [EMAIL PROTECTED]
> Betreff: Re: AW: [JBoss-user] DefaultDS pool size
>
>
> Kristian Kohler wrote:
>
> >Hi
> >
> >the MBean for the Default DS has an attribute called
> >AvailableConnectionCount.
> >
> >You may find it under:
> >http://localhost:8080/jmx-console/HtmlAdaptor?action=inspectMBean
> &name=jboss
> >.jca%3Aservice%3DLocalTxPool%2Cname%3DDefaultDS
> >
> thx. but can I make this from my Application?
>
>
> Rafal
>
> >Kristian
> >
> >
> >
> >>-----Ursprungliche Nachricht-----
> >>Von: [EMAIL PROTECTED]
> >>[mailto:[EMAIL PROTECTED]]Im Auftrag von Rafal
> >>Kedziorski
> >>Gesendet: Donnerstag, 6. Februar 2003 11:21
> >>An: [EMAIL PROTECTED]
> >>Betreff: [JBoss-user] DefaultDS pool size
> >>
> >>
> >>Hi,
> >>
> >>it's possible to ask the actual free DefaultDS connections in the pool?
> >>
> >>
> >>Best Regards,
> >>Rafal
> >>
> >>
> >>
> >>-------------------------------------------------------
> >>This SF.NET email is sponsored by:
> >>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> >>http://www.vasoftware.com
> >>_______________________________________________
> >>JBoss-user mailing list
> >>[EMAIL PROTECTED]
> >>https://lists.sourceforge.net/lists/listinfo/jboss-user
> >>
> >>
>
>
>
> -------------------------------------------------------
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> http://www.vasoftware.com
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>
--
Orientation in Objects GmbH
http://www.oio.de



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to