[JBoss-user] [Management, JMX/JBoss] - Re: Accessing the JBossBossManagedConnectionPool MBean
Can you please elaborate?? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3889029#3889029 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3889029 --- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: What jar file contains org.jboss.jmx.adaptor.model.MBean
Its part of the jmx-console web application. see JBOSS_HOME/server/default/deploy/jmx-console.war/WEB-INF/classes View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=345#345 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=345 --- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Accessing the JBossBossManagedConnectionPool MBean
Hi, I have an application deployed on Weblogic that I am migrating to JBOSS 4.0.2. As part of the application, I access the Weblogic MBean Server to access connection pool information and perform operations on the connection pool programatically. Psuedo Code: // Get Inital context // Get the MBeanHome using IntialContext // Get the weblogic.management.configuration.JDBCConnectionPoolMBean and weblogic.management.runtime.JDBCConnectionPoolRuntimeMBean // from the MBeanHome // Call either the shrink() or the reset() methods on the JDBCConnectionPoolRuntimeMBean // Call the methods on the JDBCConnectionPoolMBean to get pool properties I would like to migrate this functionality to JBOSS For Jboss, I had a look at the JMX Console (ManagedConnectionPool). Right now, I am accessing the JBOSS Mbean Server though a utility class that makes use of the JMX-Console classes (org.jboss.jmx.adaptor.control.Server, org.jboss.jmx.adaptor.control.OpResultInfo etc.) I pass the the names as "jboss.jca:service=ManagedConnectionPool,*" to retrieve connection pool information and perform operations (flush, stop etc.) on the pools by calling the Server.invokeOpByName method, to which I pass the operation names. The question is, like in Weblogic- Is there a way I can directly access the object of org.jboss.resource.connectionmanager.JBossManagedConnectionPool and call operations on the same Psuedo Code: //JBossManagedConnectionPool pool = //get access to the object //pool.flush() or //pool.stop() cheers vinay View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=337#337 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=337 --- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Connection Pool Shrinking and Reset Programmatically
Hi, I have an application deployed on Weblogic that I am migrating to JBOSS 4.0.2. As part of the application, I access the Weblogic MBean Server to access connection pool information and perform operations on the connection pool programatically. Psuedo Code: //Get Inital context //Get the MBeanHome using IntialContext //Get the JDBCConnectionPoolRuntimeMBean from the MBeanHome //Call either the shrink() or the reset() methods on the JDBCConnectionPoolRuntimeMBean For Jboss, I had a look at the JMX Console (ManagedConnectionPool). Is flush equvivalent to the reset? What is the equivalent for the shrink? cheers vinay View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3888119#3888119 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3888119 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation, Configuration & Deployment] - Exception while deploying in custom config directory: java.s
"vinaypurohit" wrote : I have created a default config (myconfig) and am starting up JBOSS using: | | run -c myconfig | | I have all the required libraries for my web application in jboss-4.0.2\server\myconfig\lib | | When I try to get a connection to the DB from my web application, I do get the connection but also get the following exception: | | 10:01:17,285 INFO [STDOUT] |07/25/2005 10:01:17:285 IST|http-0.0.0.0-28080-1|java.sql.Connection|W|Failed to load class: com.jbosstest.dao. | TestConnect | java.lang.ClassNotFoundException: No ClassLoaders found for: com.jbosstest.dao.T | estConnect | at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:198) | at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryCl | assLoader.java:475) | at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassL | oader.java:377) | at java.lang.ClassLoader.loadClass(ClassLoader.java:235) | at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) | at java.lang.Class.forName0(Native Method) | at java.lang.Class.forName(Class.java:141) | | As a solution that I found on the Net, it was suggested that I have the jboss-remoting.jar in the jboss-4.0.2\server\myconfig\lib. I have it in my directory but it still does not solve the problem. However, this solution works if I deploy my web application in the default directory. | | How do I make this work without getting exception by deploying in myconfig? | | If I include the required libraries in my WEB-INF/lib directory then the exception is not encountered. But I dont want to include the libraries in my WEB-INF/lib directory because these are shared libraries across other web applications and do not want to duplicate them for my web application. | | Any replies/solutions will be appreciated. | | cheers | Vinay View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3886297#3886297 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3886297 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation, Configuration & Deployment] - Exception while deploying in custom config directory: java.s
I have created a default config (myconfig) and am starting up JBOSS using: run -c myconfig I have all the required libraries for my web application in jboss-4.0.2\server\myconfig\lib When I try to get a connection to the DB from my web application, I do get the connection but also get the following exception: 10:01:17,285 INFO [STDOUT] |07/25/2005 10:01:17:285 IST|http-0.0.0.0-28080-1|java.sql.Connection|W|Failed to load class: com.jbosstest.dao. TestConnect java.lang.ClassNotFoundException: No ClassLoaders found for: com.jbosstest.dao.T estConnect at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:198) at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryCl assLoader.java:475) at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassL oader.java:377) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) As a solution that I found on the Net, it was suggested that I have the jboss-remoting.jar in the jboss-4.0.2\server\myconfig\lib. I have it in my directory but it still does not solve the problem. However, this solution works if I deploy my web application in the default directory. How do I make this work without getting exception by deploying in myconfig? Any replies/solutions will be appreciated. cheers Vinay View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3886295#3886295 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3886295 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Web Console Applet Error
When I tried to access the web console, the left panel was blank. I checked the java console and it had the following exception Microsoft (R) VM for Java, 5.0 Release 5.0.0.3809 == ? help c clear f run finalizers g garbage collect m memory usage q quit t thread list == java.lang.ClassNotFoundException: org.jboss.console.navtree.AppletBrowser at com/ms/vm/loader/URLClassLoader.loadClass at com/ms/vm/loader/URLClassLoader.loadClass at com/ms/applet/AppletPanel.securedClassLoad at com/ms/applet/AppletPanel.processSentEvent at com/ms/applet/AppletPanel.processSentEvent at com/ms/applet/AppletPanel.run at java/lang/Thread.run How can I get this fixed? cheers Vinay View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3886082#3886082 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3886082 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation, Configuration & Deployment] - JBOSS to Oracle Connection Pool Question - Help Needed
I am trying to migrate an web application from Weblogic to JBOSS 4.0.2 and have got the data sources setup. In the Weblogic world, I setup the connection pools thru the Weblogic console and then as part of my application, I read the db specific props from a property file and a class creates the connection for me. //Properties File app.database.driver=weblogic.jdbc.pool.Driver app.database.url=jdbc:weblogic:pool:MyOraclePool app.database.property.weblogic.t3.waitForConnection=true app.database.property.weblogic.t3.waitSecondsForConnection=5 //Java Code Connection connection = null; Driver driver = null; String dburl = //load from app properties file String driverClassName = //load from app properties file Properties dbProperties = //load from app properties file // Load the driver. try { Class driverClass = Class.forName(driverClassName); driver = (Driver) driverClass.newInstance(); } catch (Exception ex) { throw new ApplicationException("Failed to load JDBC driver :" + driverClassName, ex); } try { connection = driver.connect(dbURL, dbProperties); } catch (Exception ex) { throw new ApplicationException("Failed to create a database connection with the specified settings.", ex); } In the JBOSS world, isnt there any way wherein I can reference the connection pool directly? Is it that I always have to get a connection the Datasource way ? Connection con = null; try { Context ctx = new InitialContext(); DataSource ds = (DataSource)ctx.lookup("java:/MyOracleDS"); con = ds.getConnection("username","password"); } catch(Exception ex) { throw new ApplicationException("Failed to create a database connection with the specified settings.", ex); } Any replies will be highly appreciated. cheers Vinay View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3885886#3885886 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3885886 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user