⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ch10s10.html

📁 详细介绍了jboss3.0的配置等
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<html><head>
      <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
   <title>
        How to Run and Debug EJBs using jBoss 2.2.2 inside of 
        Visual Age for Java version 3.5 (patch 2)
</title><link rel="stylesheet" href="styles.css" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/styles.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets Vimages/callouts/"><link rel="home" href="index.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/index.html" title="JBoss 3.0 Documentation"><link rel="up" href="ch10.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch10.html" title="Chapter 10. Development Tools and IDE Integration"><link rel="previous" href="ch10.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch10.html" title="Chapter 10. Development Tools and IDE Integration"><link rel="next" href="ch10s14.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch10s14.html" title="Integrating NetBeans/Forte for Java Community Edition with JBoss &#xA;for source level debugging"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table border="0" cellpadding="0" cellspacing="0" height="65"><tr height="65"><td rowspan="2"><img src="jboss.gif" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/jboss.gif" border="0"></td><td rowspan="2" background="gbar.gif" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/gbar.gif" width="100%" align="right" valign="top"><a href="index.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/index.html"><img src="doc.gif" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/doc.gif" border="0"></a><a href="ch10.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch10.html"><img src="toc.gif" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/toc.gif" border="0"></a><a href="ch10.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch10.html"><img src="prev.gif" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/prev.gif" border="0"></a><a href="ch10s14.html" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/ch10s14.html"><img src="next.gif" tppabs="http://www.huihoo.org/jboss/online_manual/3.0/next.gif" border="0"></a></td></tr><tr></tr></table><div class="section"><a name="vajdebug"></a><div class="titlepage"><div><h2 class="title" style="clear: both"><a name="vajdebug"></a>
        How to Run and Debug EJBs using jBoss 2.2.2 inside of 
        Visual Age for Java version 3.5 (patch 2)
</h2></div></div><p>
        Author:
        <span class="author">Craig Doremus</span>
		<tt>&lt;<a href="mailto:cdoremus@vianow.com">cdoremus@vianow.com</a>&gt;</tt>
        <span class="author">Alex Lee</span>
		<tt>&lt;<a href="mailto:chiewkwooi@hotmail.com">chiewkwooi@hotmail.com</a>&gt;</tt>
	</p><p>Importing jBoss into Visual Age for Java (VAJ) allows you to develop and
debug EJBs using the latest Enterprise Java Beans standard (version 1.1 and Message Driven EJBs). 
The Enterprise version of Visual Age has built-in EJB debugging, but that 
edition of the IDE only supports version 1.0 of the EJB spec.  Currently, Visual Age only 
supports JDK 1.2.2.
</p><p>
        We created a jBoss Test Environment by manually importing jBoss source 
        into Visual Age for Java. This import also 
        involved a few code hacks to remove JDK 1.3 
        code, to change the paths to configuration files and some
       modification of paths inside of configuration files. 
</p><p>
        Our jBoss import does not include an integrated 
        <a href="javascript:if(confirm('http://jakarta.apache.org/tomcat/index.html  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?'))window.location='http://jakarta.apache.org/tomcat/index.html'" tppabs="http://jakarta.apache.org/tomcat/index.html" target="_top">Jakarta-Tomcat</a> servlet engine.
        IBM provides a Test Environment for Tomcat version 3.1 on their web site <a href="javascript:if(confirm('http://www7.software.ibm.com/vad.nsf/Data/Document2390?OpenDocument&p=1&BCT=3&Footer=1  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?'))window.location='http://www7.software.ibm.com/vad.nsf/Data/Document2390?OpenDocument&p=1&BCT=3&Footer=1'" tppabs="http://www7.software.ibm.com/vad.nsf/Data/Document2390?OpenDocument&p=1&BCT=3&Footer=1" target="_top">here</a>, 
        that allows debugging of JSP and servlets inside of VAJ. Both Tomcat
        and jBoss can be run inside of VAJ to provide the ability to debug EJBs
        called by servlets.
</p><div class="section"><a name="vajdebug-requirements"></a><div class="titlepage"><div><h3 class="title"><a name="vajdebug-requirements"></a>Requirements</h3></div></div><div class="itemizedlist"><ul><li><p><a name="d0e6871"></a>Visual Age for Java Professional or Enterprise Edition Version 3.5 with patch 2 installed. Version 3.5.3 has recently been released, but there are some RMI bugs in it so we can't recommend using it at this time.</p></li><li><p><a name="d0e6874"></a>JBoss-2.2.2.zip downloaded (NOT the one with integrated Tomcat) <a href="javascript:if(confirm('http://prdownloads.sourceforge.net/jboss/JBoss-2.2.2.zip  \n\nThis file was not retrieved by Teleport Pro, because it did not meet the project\'s file type specifications.  \n\nDo you want to open it from the server?'))window.location='http://prdownloads.sourceforge.net/jboss/JBoss-2.2.2.zip'" tppabs="http://prdownloads.sourceforge.net/jboss/JBoss-2.2.2.zip" target="_top">Download it here</a>
				</p></li></ul></div></div><div class="section"><a name="vajdebug-manualimport"></a><div class="titlepage"><div><h3 class="title"><a name="vajdebug-manualimport"></a>Manually importing jBoss 2.2.2 source code into Visual Age</h3></div></div><div class="orderedlist"><ol type="1"><li><p><a name="d0e6886"></a>Unzip JBoss-2.2.2.zip into a temporary directory.</p></li><li><p><a name="d0e6889"></a>Create a jBoss project in VAJ.	 If jBoss 2.0 is already installed, version it and delete all files and related projects before proceeding with the jBoss 2.2.2 install.
				</p></li><li><p><a name="d0e6892"></a>Import source, jar and class files into VAJ from the temporary directory including:</p><div class="orderedlist"><ol type="a"><li><p><a name="d0e6896"></a>All jBoss source (src subdirectory).
       					</p><p>Source of org.jnp.server (both *.class and *.java files) from the <a href="javascript:if(confirm('http://www.jboss.org/doco_files/vaj-jnpserver222.jar  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?'))window.location='http://www.jboss.org/doco_files/vaj-jnpserver222.jar'" tppabs="http://www.jboss.org/doco_files/vaj-jnpserver222.jar" target="_top">vaj-jnpserver222.jar</a> archive found in the files area on the documentation page on www.jboss.org.
</p><p>Source of org.jbossmq.* from the <a href="javascript:if(confirm('http://www.jboss.org/doco_files/vaj-jbossmq222.jar  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?'))window.location='http://www.jboss.org/doco_files/vaj-jbossmq222.jar'" tppabs="http://www.jboss.org/doco_files/vaj-jbossmq222.jar" target="_top">vaj-jbossmq222.jar</a> archive found in the files area on the documentation page on www.jboss.org.</p><p>org.jboss.security.SecurityAssociation source from CVS (version 1.5, which can be found <a href="javascript:if(confirm('http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jboss/jboss/src/main/org/jboss/security/SecurityAssociation.java?rev=1.5&content-type=text/vnd.viewcvs-markup  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?'))window.location='http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jboss/jboss/src"../../../main/org/jboss/security/SecurityAssociation.java-rev=1.5&content-type=text-vnd.viewcvs-markup'-" tppabs="http://www.huihoo.org/main/org/jboss/security/SecurityAssociation.java?rev=1.5&content-type=text/vnd.viewcvs-markup'"" target="_top">here)</a></p><p>org.jboss.naming.NamingService from CVS (version 1.9, which can be found <a href="javascript:if(confirm('http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/~checkout~/jboss/jboss/src/main/org/jboss/naming/NamingService.java?rev=1.9&content-type=text/x-java  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?'))window.location='http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/%7Echeckout%7E/jboss/jboss/src"../../../main/org/jboss/naming/NamingService.java-rev=1.9&content-type=text-x-java'-" tppabs="http://www.huihoo.org/main/org/jboss/naming/NamingService.java?rev=1.9&content-type=text/x-java'"" target="_top">here)</a></p></li><li><p><a name="d0e6917"></a>In lib or lib/ext directory import the class files: </p><pre class="programlisting">
	All files from minerva-1_0b3.jar
	All files from jbosssx.jar
	All files from jbosscx-0.2.jar except org.jboss.resource.RARDepolyer.class, org.jboss.resource.RARDepolyer$1.class and org.jboss.resource.RARDepolyer$DeploymentInfo.class.
org.jboss.resource.RARDepolyer should be imported as source from CVS (ver 1.3) so to change tmp.properties reference (see below)
	All files in ejxejb.jar
	All files in ejxeditor.jar
	All files in awt.jar
	All files for openjms-client-patched-0.5.1.jar
	All files from openjms-pool.jar
	All files from openjms-rmi-patched-0.5.1.jar
		For organization purposes you might want to put the following class into separate projects:
	All files in jms.jar -- Java Messaging Service (into separate JMS project)
	All files in  jaas.jar -- Java's Security API (into JAAS project)
	All files in jmxri.jar -- Java Management Extension API (into JMX project)
	All files in crimson.jar (into Apache Crimson project)
	All files from xml.jar and jaxp.jar
       jdbc2_0-stdext.jar -- JDBC 2.0 Extensions
	ejb.jar -- EJB 1.1 interfaces 
	javax.ejb.MessageDrivenBean and javax.ejb.MessageDrivenContext from ejb2.0.jar 
      jndi.jar -- if not already in VAJ
NOTE: HSQL and InstantDB can be finicky and freeze upon startup of jBoss. Do not install these if they are not needed. PostgreSQL or Oracle are preferred alternatives.
      hsql.jar -- optional HSQL database.  
      jpl-util-0_5b.jar
      jta-spec1_0_1.jar -- (javax.transaction package will be updated elsewhere)
      mail.jar -- JavaMail API
      activation.jar -- Java Activation Frameworks
	connector.jar -- Java Connector Architecture
        </pre></li></ol></div></li><li><p><a name="d0e6922"></a>Directories to be added to VAJ's &lt;vaj.home&gt;/ide/project_resources/jboss directory
from jBoss zip archive:</p><pre class="programlisting">
        bin
        client
        conf/default
        db -- for InstantDB and Hypersonic
        deploy -- EJB autodeploy directory
        lib (with ext subdir) -- all the jars
        log

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -