Java
文章平均质量分 79
rosonsandy
这个作者很懒,什么都没留下…
展开
-
JMX初识
先看下一些基本的东西然后运行代码对jmx有些基本了解,然后看JMX规范基本概念:1:MBean通常是一个java类,它提供接口可以使这个类具有管理功能(如standard MBean,接口中定义的方法使MBean具有管理功能)。2:MBean server是管原创 2004-12-24 12:39:00 · 2116 阅读 · 1 评论 -
Host
A Host is a Container that represents a virtual host in the Catalina servlet engine. It is useful in the following types of scenarios: You wish to use Interceptors that see every single request proces原创 2005-07-24 15:33:00 · 1278 阅读 · 0 评论 -
Digester in Tomcat
Digester 在tomcat中与配置文件 *.xml相结合发挥了重大作用,Digester here act as role to instance every object by a chain between each object 。 首先要知道Digester的作用和工作原理,可以参考如下文章:http://www.theserverside.com/articles/article原创 2005-07-24 15:37:00 · 1061 阅读 · 0 评论 -
Context
A Context is a Container that represents a servlet context, and therefore an individual web application, in the Catalina servlet engine. It is therefore useful in almost every deployment of Catalina (原创 2005-07-24 15:31:00 · 1063 阅读 · 0 评论 -
ClassLoader in Tomcat[转贴]
ClassLoader in Tomcat1 - Tomcat的类载入器的结构 Tomcat Server在启动的时候将构造一个ClassLoader树,以保证模块的类库是私有的Tomcat Server的ClassLoader结构如下: +-----------------------------+ | Bootstrap |转载 2005-07-24 15:40:00 · 1211 阅读 · 0 评论 -
JMX与JCONSOLE (j2se5.0新特性)
在jdk1.5中提供了新的工具jconsole可以用于观察程序运行等情况,对于jmx来说jconsole能够在图形界面下查看mbean的属性和操作方法,这样就不必另外增加HtmlAdaptorServer来查看了 :) .让我们来看下代码就知道了。(HelloMBean.java和Hello.java和原来的没什么变动) HelloMBean.java /* * Created on 2005-3原创 2005-03-22 21:55:00 · 1791 阅读 · 0 评论 -
Jboss Ejb MDB
对jms不是很熟悉,弄了几天终于有了点思路。这里有两个程序、增加了个queue-example-service.xml配置文件很简单,复杂点的在以后在说。 package org.jboss.tutorial.mdb.bean; import javax.ejb.MessageDriven;import javax.ejb.ActivationConfigProperty;import jav原创 2005-04-14 19:40:00 · 1990 阅读 · 0 评论 -
Jboss EJB 3.0 Stateless Beans
下面有两个例子:一个是标准的statelessBean,一个是简化的statelessbeanCalculator.java // 计算器的接口:加、减package org.jboss.tutorial.stateless.bean;public interface Calculator{ int add(int x, int y); int subtract(i原创 2005-04-11 12:55:00 · 1160 阅读 · 0 评论 -
J2se5.0 generis新特性
下面的程序很容易理解的,加以两个程序的对比,相信很容易理解generis特性。OldList.java /** * @author roson * * 2005-4-11 */package collection; import java.util.*; public class OldList { private void testList() { List lis原创 2005-04-11 21:58:00 · 2230 阅读 · 0 评论 -
Jboss EJB3.0 security
Calculator.javapackage org.jboss.tutorial.security.bean; import javax.ejb.Remote; @Remotepublic interface Calculator{ int add(int x, int y); int subtract(int x, int y); int divide(int x, int y)原创 2005-04-12 22:14:00 · 934 阅读 · 0 评论 -
Jboss Ejb3.0—Injection
Calculator.java、CalculatorBean.java和ShoppingCart.java,Client.java这几个程序在以前见过了吧,这里有改动的地方在ShoppingCartBean.java插入了Calculator . Calculator.javapackage org.jboss.tutorial.injection.bean; public interface原创 2005-04-13 18:01:00 · 985 阅读 · 0 评论 -
Jboss Ejb3.0 Interceptor
Interceptor为拦截器,可以监听程序的整个程序或方法。从多个程序理解问题往往比较容易,我就在自己写的HelloWorld 程序的基础上增加了Interceptor . 有如下几个程序:Hello.java , HelloLocal.java , HelloRemote.java , HelloBean.java, TracingInterceptor.java Client.java重点原创 2005-04-15 11:19:00 · 937 阅读 · 0 评论 -
Jboss Ejb3.0 Statefull Bean
这个例子结合了j2se5.0的generis新特性,可以先看下我写的J2se5.0 generis新特性 ShoppingCart.javapackage org.jboss.tutorial.stateful.bean;import javax.ejb.Remote;import javax.ejb.Remove;import java.util.HashMap;@Remotepublic i原创 2005-04-18 18:05:00 · 813 阅读 · 0 评论 -
Jboss Ejb3.0 Entity Bean
Order.javapackage org.jboss.tutorial.entity.bean; import javax.persistence.CascadeType;import javax.persistence.Entity;import javax.persistence.FetchType;import javax.persistence.GeneratorType;impor原创 2005-04-18 22:54:00 · 1015 阅读 · 0 评论 -
Jboss-4.0.3RC1 WebService
build.xml config.xml webservices.xmlHello.java /* * @author roson * * 2005-10-10 */package helloservice;import java.rmi.Remote;import java.rmi.RemoteException;public interface原创 2005-10-11 23:07:00 · 1214 阅读 · 0 评论 -
java dictionary
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 附录 缩写 A abstract apache B BPM(business process management) C CCI(Common C原创 2005-11-07 15:40:00 · 1960 阅读 · 0 评论 -
CATALINA_HOME/conf/web.xml
$CATALINA_HOME/conf/web.xml先介绍两种在tomcat中经常要用到的:DefaultServlet和JspServlet 。前者为处理Servlet后者为编译Jsp文件。 DefaultServletservlet> servlet-name>defaultservlet-name> servlet-class>org.apache.catali原创 2005-07-23 13:40:00 · 2315 阅读 · 0 评论 -
tomcat词汇
ConnectorContainerContextEngineHttpRequestHttpResponseHostLoaderRequestResponseServiceWrapper原创 2005-07-23 13:23:00 · 1076 阅读 · 0 评论 -
Loader
A Loader represents a Java ClassLoader implementation that can be used by a Container to load class files (within a repository associated with the Loader) that are designed to be reloaded upon request原创 2005-07-23 13:13:00 · 1115 阅读 · 0 评论 -
xdoclet 与 hibernate
这里将利用xdoclet来为hibernate生成相关代码(由Customer.java生成Customer.hbm.xml),看看xdoclet对提供工作效率的。一 运行环境:1、xdoclet2、ant3、hibernate需要的jar包有xdoclet-/X.X.X/.jar xdoclet-hibernate-module-/X.X.X/.jar xdoclet-xjavado原创 2004-12-24 20:48:00 · 1296 阅读 · 0 评论 -
Log4j的配置文件
Log4j支持两种配置文件格式,一种是java属性文件(键—值),一种是xml格式文件。这里仅介绍下java属性文件的配置方法。先看看个配置文件:log4j.propertieslog4j.rootCategory=debug,stdout,Rlog4j.appender.stdout=org.apache.log4j.ConsoleAppenderlog4j.appender.std原创 2004-12-25 16:21:00 · 21887 阅读 · 3 评论 -
JMX Connectors
JMX ConnectorsJMX有两种connector:1、 RMI Connector2、 JMXMP Connector (JMX message protocol Connector) RMI Connector支持RMI Transports , Java Remote Method Protocol (JRMP) 和 Inter-Object Request Broker Pro原创 2004-12-27 11:02:00 · 2711 阅读 · 0 评论 -
运行OpenLdap
1、 安装OpenLdap比如装在d:/openldap2、了解ldap http://www.linuxaid.com.cn/engineer/brimmer/html/LDAP.htm 3、 修改slap.conf假设域名为:netone.com大概在56行##################################################################原创 2004-12-30 12:42:00 · 1586 阅读 · 0 评论 -
JMX Notification
Mbean之间的通信是必不可少,Notification就起到了Mbean 之间沟通桥梁的作用。JMX notification model 和 java event model 类似,将一些重要的信息,状态的转变,数据的变更传递给 notification listener。以使资源更容易管理。 JMX notification 由四部分组成:1、 Notification原创 2004-12-27 16:47:00 · 5453 阅读 · 0 评论 -
JMX HtmlAdapter
有了HtmlAdapter,可以通过浏览器访问 JMX Agent . 如需源代码可以参照jmx notification在浏览器中可以看到它包含了在三个主要页面:■ Agent View 首页,显示了包含Agent中所有的Mbean ,可以过滤器(filter)来查询■ Mbean View 显示Mbean的具体情况,包括set 和 get 属性原创 2004-12-27 21:52:00 · 1631 阅读 · 0 评论 -
AOP与eclipse--JBoss AOP IDE (转自jboss)
12.1. The AOP IDEJBoss AOP comes with an Eclipse plugin that helps you define interceptors to an eclipse project via a GUI, and to run the appication from within Eclipse. This is a new project, and ex原创 2005-03-15 19:15:00 · 1073 阅读 · 0 评论 -
Container
A Container is an object that can execute requests received from a client, and return responses based on those requests. A Container may optionally support a pipeline of Valves that process the reques原创 2005-07-23 12:34:00 · 1050 阅读 · 0 评论 -
Engine
An Engine is a Container that represents the entire Catalina servlet engine. It is useful in the following types of scenarios: You wish to use Interceptors that see every single request processed by t原创 2005-07-23 12:45:00 · 892 阅读 · 0 评论 -
Service
A Service is a group of one or more Connectors that share a single Container to process their incoming requests. This arrangement allows, for example, a non-SSL and SSL connector to share the same pop原创 2005-07-23 12:46:00 · 753 阅读 · 0 评论 -
Connector
A Connector is a component responsible receiving requests from, and returning responses to, a client application. A Connector performs the following general logic: Receive a request from the client ap原创 2005-07-23 12:48:00 · 1229 阅读 · 0 评论 -
HttpRequest
An HttpRequest is the Catalina internal facade for an HttpServletRequest that is to be processed, in order to produce the corresponding HttpResponse.原创 2005-07-23 12:51:00 · 908 阅读 · 0 评论 -
Request
A Request is the Catalina-internal facade for a ServletRequest that is to be processed, in order to produce the corresponding Response.原创 2005-07-23 12:56:00 · 894 阅读 · 0 评论 -
HttpResponse
An HttpResponse is the Catalina-internal facade for an HttpServletResponse that is to be produced, based on the processing of a corresponding HttpRequest.原创 2005-07-23 13:01:00 · 1256 阅读 · 0 评论 -
Response
A Response is the Catalina-internal facade for a ServletResponse that is to be produced, based on the processing of a corresponding Request.原创 2005-07-23 13:07:00 · 1002 阅读 · 0 评论 -
Wrapper
A Wrapper is a Container that represents an individual servlet definition from the deployment descriptor of the web application. It provides a convenient mechanism to use Interceptors that see every s原创 2005-07-23 13:10:00 · 1283 阅读 · 0 评论