[JBoss-user] [Beginners Corner] - Re: How To ThreadPool ?
He He, Well nobody has answered my question... so I answered it myself. digging into the source I found 4 separate instances of ThreadPool.java. I think two of them are the same code. :) I guess a little house cleaning is in order. ./server/src/main/org/jboss/web/ThreadPool.java ./messaging/src/main/org/jboss/mq/threadpool/ThreadPool.java ./jmx/src/main/org/jboss/mx/util/ThreadPool.java ./jetty/src/main/org/mortbay/util/ThreadPool.java There is no BasicThreadPool class as far as I can tell. Either the wikki refers to some other version, or its wrong, or I am dumb (it wouldn't be the first time) this is 3.2.3, it may or may not be consolodated in 3.2.4. I couldn't tell you. Anyway, I picked the jmx one, it works quite nicely. Thanks me. You are welcome you. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3840470#3840470 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3840470 --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - How To ThreadPool ?
Hi all, I've searched and searched and haven't been able to find out how to set up and use a thread pool in jboss. I am using jbos 3.2.3 I found this link on the wikki http://www.jboss.org/wiki/Wiki.jsp?page=ConfigBasicThreadPool Unfortunately, I get a class not found exception. What jar is this supposed to be found in? Does anyone have a code snippet on using the pool? Thanks, -Joe View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3840312#3840312 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3840312 --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation Configuration] - Configuration Management - Development vs Production
What solutions are people using for managing and deploying different versions of their configuration files? A concrete example is the web.xml file in the jbosweb-tomcat.sar jboss-service.xml file. For session clustering it requires you to change the jvmRoute attribute for each instance in the cluster to point to the server defined in the workers.properties file. Any config file that references resources such as a datasource, file system, etc that may change between development and production. In the past I have made duplicate versions of my config files with the extension -prod for all production conf, -test for development versions as well as a -stage for our staging/qa environment. I then have a process to link in the prod,test, or staging version where appropriate. Other mechanisms I have tried are adding special tokens into my config files and replacing those tokens with the appropriate prod,stage, or test info at build time. These methods have worked ok for me. I have never been entirely pleased with them. The symlink solution does not work for windows. Not to mention the unix paths vs windows (C:/) paths issues. Any ideas, or suggestion on what has worked for you in the past would be much appreciated. Thanks, -Joe View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3837595#3837595 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3837595 --- This SF.Net email is sponsored by the new InstallShield X. From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - RMIAdaptor Load balancing?
I have a partition Named DumasPartition with 2 nodes in the cluster. I have a client that accesses the services on those nodes through autodiscovery and the RMIAdaptor Failover works fine, but there doesn't appear to be any kind of load balancing, round robin, etc.. Is there anyway to configure the RMIAdaptor service to provide this functionality? I understand HAJNDI/HARMI provides this functionality, does the RMIAdaptor make use of it? Client code below | Properties prop = new Properties(); | prop.put(Context.INITIAL_CONTEXT_FACTORY, | org.jnp.interfaces.NamingContextFactory); | prop.put(Context.URL_PKG_PREFIXES, | org.jboss.naming:org.jnp.interfaces); | prop.put(jnp.partitionName,DumasPartition); | prop.put(jnp.discoveryGroup,230.0.0.4); | prop.put(jnp.discoveryPort,1102); | | InitialContext jndiContext = new InitialContext(prop); | | Object ref = jndiContext.lookup(jmx/rmi/RMIAdaptor); | RemoteMBeanServer server = new RMIConnectorImpl((RMIAdaptor)ref); | out.println(server.getAttribute(new javax.management.ObjectName(dumas.subs:service=DownloadAuth), Foo)); | Thanks, -Joe View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3830579#3830579 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3830579 --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: RMIAdaptor Load balancing?
Hmmm... From the docs, it sounds like I can do this by configuring the JRMP service as a HA JRMPInvoker Does anyone have an example for how I might do this? Thanks, -Joe View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3830588#3830588 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3830588 --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation Configuration] - Including external XML into the web.xml descriptor
Hi all, I am pre-compiling my jsp's and outputting the servlet/url mappings to a file jsp_inc.xml I want to include that file in my web.xml file for my war project. If I cut an paste the jsp_inc.xml text into my web.xml it works fine. I was trying to use entities to include the file and not have to do the cut and paste. All the examples I have seen suggest the below entry should work, but it doesn't appear to. Any ideas? Are there any means to get debug output for the xml parser? By the way, I am using jboss 3.2.x Any help is much appreciated. Thanks, -Joe ## WEB.XML FILE ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; [ ENTITY jspinc SYSTEM jsp_inc.xml ] web-app display-nameStruts Example Application/display-name !-- Action Servlet Configuration -- servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param load-on-startup1/load-on-startup jspinc; Rest of xml file snipped ###JSP_INC.XML TEXT BELOW ## !-- Automatically created by Tomcat JspC. Place this fragement in the web.xml before all icon, display-name, description, distributable, and context-param elements. -- servlet-nameem.jsp.genres.genre_display_jsp/servlet-name servlet-classem.jsp.genres.genre_display_jsp/servlet-class servlet-nameem.jsp.index_jsp/servlet-name servlet-classem.jsp.index_jsp/servlet-class servlet-mapping servlet-nameem.jsp.genres.genre_display_jsp/servlet-name url-pattern/genres/genre_display.jsp/url-pattern /servlet-mapping servlet-mapping servlet-nameem.jsp.index_jsp/servlet-name url-pattern/index.jsp/url-pattern /servlet-mapping !-- All session-config, mime-mapping, welcome-file-list, error-page, taglib, resource-ref, security-constraint, login-config, security-role, env-entry, and ejb-ref elements should follow this fragment. -- a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3824929#3824929;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3824929Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation Configuration] - Re: Including external XML into the web.xml descriptor
Well I figured it out by using the file:// and using a full path !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; [ ENTITY jspinc SYSTEM file:///usr/local/emusic_dev/proto/emusic_app/emusic.war/WEB-INF/jsp_inc.xml ] The path appears to be evaluated relative to the bin/run.sh instead of relative to the emusic.war This becomes a problem if I don't know the full path to the file and want a relative uri. Anyone know any tricks to make this work? It seems like its a bug in the parser to evaluate the uri the way it is. Or maybe I am missing something simple?? Thanks, -Joe a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3824953#3824953;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3824953Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user