I knew about the forums (interface is kinda klunky) but the "user" mailing
list claims you have to be a "member of this group" to view the archive on
sourceforge: the other two archives are viewable. Anyway, I will try to find
out why an attempt is made to create tables when I deploy my EJB when I know
they already exist and do not want them auto-generated. I would ask you but
then that would burn my support incident :)

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 03, 2002 2:51 PM
Subject: JBoss-user digest, Vol 1 #3442 - 8 msgs


> Send JBoss-user mailing list submissions to
> [EMAIL PROTECTED]
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> or, via email, send a message with subject or body 'help' to
> [EMAIL PROTECTED]
>
> You can reach the person managing the list at
> [EMAIL PROTECTED]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of JBoss-user digest..."
>
>
> Today's Topics:
>
>    1. Help!! accessing secure ejb from another ejb located on a diferent
>        server (=?ISO-8859-1?Q?Jordi_Valldaura_i_Riqu=E9?=)
>    2. Using a JBOSS DataSource Outside of JBOSS (Ed Saikali)
>    3. Re: custom function extensions to EJB-QL? (Glenn Lewis)
>    4. Re: Using a JBOSS DataSource Outside of JBOSS (David Jencks)
>    5. Re: custom function extensions to EJB-QL? (Dain Sundstrom)
>    6. HELP!? Works in JBoss-3.0.4 with JBossWeb (Jetty), and Tomcat 4.1.12
Standalone  - not in JBoss-3.0.4+Tomcat-4.1.12-LE-jdk14 (Will Senn)
>    7. Re: Using a JBOSS DataSource Outside of JBOSS (Dan Christopherson)
>
> --__--__--
>
> Message: 1
> Date: Tue, 03 Dec 2002 21:20:49 +0100
> From: =?ISO-8859-1?Q?Jordi_Valldaura_i_Riqu=E9?= <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] Help!! accessing secure ejb from another ejb located
on a diferent
>  server
> Reply-To: [EMAIL PROTECTED]
>
> Hello,
>
> I'm developing my end of degree project. I have sevaral jboss servers=20
> with the same secure ejbs in. Is there anyway to call an ejb inside one=20
> of my servers from an ejb inside another jboss server without jaas(but=20
> in a secure way), maybee some "homemade" authentication module.
>
> I've got it working with jaas clientloginmodule, but its ugly and not=20
> portable to other application servers.
>
> I'm using jboss3.0.4 with jetty plus cocoon2.0.3.
>
> Any help would be appreciated
>
> Thanks in advance,
>
> --------------------------------------------------------------------
> Jordi Valldaura i Riqu=E9
> CSI - Centre de Serveis Inform=E0tics
> Enginyeria i Arquitectura La Salle
> Universitat Ram=F3n Llull
> --------------------------------------------------------------------
>
>
>
> --__--__--
>
> Message: 2
> Date: Tue, 3 Dec 2002 16:35:01 -0500
> From: "Ed Saikali" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Subject: [JBoss-user] Using a JBOSS DataSource Outside of JBOSS
> Reply-To: [EMAIL PROTECTED]
>
> Hi,
>
> Is it possible to use a JBOSS data source outside JBOSS, is there a way
> to put the JBOSS data source in the public part of the JNDI Tree?
>
> Thanks
> Ed
>
>
> --__--__--
>
> Message: 3
> Date: Wed, 04 Dec 2002 08:48:39 +1100
> From: Glenn Lewis <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] custom function extensions to EJB-QL?
> Reply-To: [EMAIL PROTECTED]
>
>
> Though it can be done without EJB-QL ... at the moment we call a
> database function from a standard SQL call.
>
> --
> Glenn
>
> Dain Sundstrom wrote:
> > No.  I'm considering adding it in 4.0.  I am thinking something like
this.
> >
> > stringFunction(name, arg1, arg2, ..., argN)
> >
> > There would be a function wrapper for each EJB-QL type.  This would
> > allow new functions to easily plug in to the strongly typed EJB-QL.
> > Again, I'm just considering this.
> >
> > -dain
> >
> > On Tuesday, December 3, 2002, at 03:37 AM, Matthew Hixson wrote:
> >
> >> Does JBoss support defining custom functions that map to functions
> >> defined in the database for extending EJB-QL?
> >>   Thanks,
> >>    -M@
> >>
> >>
> >>
> >> -------------------------------------------------------
> >> This SF.net email is sponsored by: Get the new Palm Tungsten T
> >> handheld. Power & Color in a compact size!
> >> http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
> >> _______________________________________________
> >> JBoss-user mailing list
> >> [EMAIL PROTECTED]
> >> https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: Microsoft Visual Studio.NET
> > comprehensive development tool, built to increase your productivity. Try
> > a free online hosted session at:
> > http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> >
>
>
>
>
> --__--__--
>
> Message: 4
> Date: Tue, 3 Dec 2002 16:47:16 -0500
> From: David Jencks <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Using a JBOSS DataSource Outside of JBOSS
> Reply-To: [EMAIL PROTECTED]
>
> No, definitely not, for some very good reasons that I've explained many
> times in the past.
>
> david jencks
>
> On 2002.12.03 16:35:01 -0500 Ed Saikali wrote:
> > Hi,
> >
> > Is it possible to use a JBOSS data source outside JBOSS, is there a way
> > to put the JBOSS data source in the public part of the JNDI Tree?
> >
> > Thanks
> > Ed
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: Microsoft Visual Studio.NET
> > comprehensive development tool, built to increase your
> > productivity. Try a free online hosted session at:
> > http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> >
>
>
> --__--__--
>
> Message: 5
> Date: Tue, 3 Dec 2002 16:00:23 -0600
> Subject: Re: [JBoss-user] custom function extensions to EJB-QL?
> From: Dain Sundstrom <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Reply-To: [EMAIL PROTECTED]
>
> Yes, but your code has to be aware of the abstract schema database
> mapping, which is kind of like hand coding security checks into your
> code; you can do it but you want to avoid it if you can.
>
> -dain
>
> On Tuesday, December 3, 2002, at 03:48 PM, Glenn Lewis wrote:
>
> >
> > Though it can be done without EJB-QL ... at the moment we call a
> > database function from a standard SQL call.
> >
> > --
> > Glenn
> >
> > Dain Sundstrom wrote:
> >> No.  I'm considering adding it in 4.0.  I am thinking something like
> >> this.
> >> stringFunction(name, arg1, arg2, ..., argN)
> >> There would be a function wrapper for each EJB-QL type.  This would
> >> allow new functions to easily plug in to the strongly typed EJB-QL.
> >> Again, I'm just considering this.
> >> -dain
> >> On Tuesday, December 3, 2002, at 03:37 AM, Matthew Hixson wrote:
> >>> Does JBoss support defining custom functions that map to functions
> >>> defined in the database for extending EJB-QL?
> >>>   Thanks,
> >>>    -M@
> >>>
> >>>
> >>>
> >>> -------------------------------------------------------
> >>> This SF.net email is sponsored by: Get the new Palm Tungsten T
> >>> handheld. Power & Color in a compact size!
> >>> http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
> >>> _______________________________________________
> >>> JBoss-user mailing list
> >>> [EMAIL PROTECTED]
> >>> https://lists.sourceforge.net/lists/listinfo/jboss-user
> >> -------------------------------------------------------
> >> This SF.net email is sponsored by: Microsoft Visual Studio.NET
> >> comprehensive development tool, built to increase your productivity.
> >> Try a free online hosted session at:
> >> http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
> >> _______________________________________________
> >> JBoss-user mailing list
> >> [EMAIL PROTECTED]
> >> https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: Microsoft Visual Studio.NET
> > comprehensive development tool, built to increase your productivity.
> > Try a free online hosted session at:
> > http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
>
> --__--__--
>
> Message: 6
> From: "Will Senn" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Date: Tue, 3 Dec 2002 16:07:33 -0600
> Subject: [JBoss-user] HELP!? Works in JBoss-3.0.4 with JBossWeb (Jetty),
and Tomcat 4.1.12 Standalone  - not in JBoss-3.0.4+Tomcat-4.1.12-LE-jdk14
> Reply-To: [EMAIL PROTECTED]
>
> This is a multi-part message in MIME format.
>
> ------=_NextPart_000_0005_01C29AE6.16BC9B10
> Content-Type: text/plain;
> charset="iso-8859-1"
> Content-Transfer-Encoding: 7bit
>
> JBoss Elite!
>
> I have tried any number of ways to get the JBoss-3.0.4/Tomcat
> 4.1.12-LE-jdk14 Integrated bundle to serve up a simple jsp/servlet web
> application.  Each of the approaches has been unsuccessful. The deployed
> JSP works, but the called servlet does not.  I have successfully taken
> the example.war file and copied it into my standalone tomcat and it
> worked. I have installed the JBoss-3.0.4 with JBossWeb (Jetty) and
> deployed the example.war and had it work.  Could someone please take a
> look at the included .war file and my steps and tell me what I did
> wrong?
>
> Thanks,
>
> Will
>
>
> Here's the readme that I created...
>
> 1. Create the following 4 directories wherever you like:
>     1. example
>     2. example\src
>     3. example\web
>     4. example\descriptors
>
> 2. Cut and paste the contents of the following 5 files saving them in the
> appropriate directories - the content is at the bottom of this file:
>     1. example\build.xml
>     2. example\descriptors\application.xml
>     3. example\descriptors\web.xml
>     4. example\src\HelloWorld.java
>     5. example\web\index.jsp
>
> 3. Open a command prompt in the example directory and type:
>     ant
>
>     note: you might have to set the classpath for the servlet.jar, ie. set
>     classpath=D:\jboss-3.0.4\tomcat-4.1.x\common\lib\servlet.jar
>     before calling ant if it complains.
>
> 4. Should have had no errors and created a build directory with the
> structure:
> build\deploy
> build\descriptors
> build\ear
> build\ear\META-INF
> build\src
> build\war
> build\war\WEB-INF
> build\war\WEB-INF\classes
>
> 5. To deploy the Web Application on Tomcat, simply copy the file:
> build\deploy\example.war
> into the %TOMCAT_HOME%\webapps directory
>
> 5a. To deploy the Web Application on JBoss, simply copy the file:
> build\deploy\example.war into the jboss-3.0.4\server\default\deploy
> directory.
>
> 6. To test the deployment of the JSP browse to:
> http://localhost:8080/example/index.jsp
>
> 7. To test the deployment of the Servlet, browse to:
> http://localhost:8080/example/index.jsp
> and click the hyperlink:
> Click here to execute the Servlet
>
> or browse to:
> http://localhost:8080/example/servlet/HelloWorld
>
> 8. Good job and well done! (Cry if it's JBoss + Tomcat)
>
> example\build.xml
> -------------------snip
> <project name="Example Application" default="all" basedir=".">
>     <target name="init">
>         <property name="dirs.base" value="${basedir}"/>
>         <property name="classdir" value="${dirs.base}/build/src"/>
>         <property name="src" value="${dirs.base}/src"/>
>         <property name="web" value="${dirs.base}/web"/>
>         <property name="deploy" value="${dirs.base}/build/deploy"/>
>         <property name="deploymentdescription"
> value="${dirs.base}/build/descriptors"/>
>
>         <property name="warFile" value="example.war"/>
>         <property name="earFile" value="example.ear"/>
>
>         <property name="earDir" value="${dirs.base}/build/ear"/>
>         <property name="warDir" value="${dirs.base}/build/war"/>
>         <property name="srcDir" value="${dirs.base}/build/src"/>
>         <property name="srcDeploymentdescription"
> value="${dirs.base}/descriptors"/>
>
>             <!-- Create build/src directory to hold the output classes-->
>         <mkdir dir="${srcDir}"/>
>
>             <!-- Create build/src directory to hold the output classes-->
>         <mkdir dir="${deploymentdescription}"/>
>
>             <!-- Create build/deploy directory to hold the output war
> and ear files-->
>         <mkdir dir="${deploy}"/>
>
>             <!-- Create Web-inf and classes directories -->
>         <mkdir dir="${warDir}/WEB-INF"/>
>         <mkdir dir="${warDir}/WEB-INF/classes"/>
>
>             <!-- Create Meta-inf and classes directories -->
>         <mkdir dir="${earDir}/META-INF"/>
>
>             <!-- Copy the application.xml and web.xml files from
descriptors
>             to build/descriptors -->
>         <copy todir="${deploymentdescription}">
>               <fileset dir="${srcDeploymentdescription}"
> includes="**/*.xml" />
>         </copy>
>     </target>
>
>     <!-- Main target  -->
>     <target name="all" depends="init,build,buildWar,buildEar"/>
>
>     <!-- Compile Java Files and store in /build/src directory  -->
>     <target name="build" >
>             <javac srcdir="${src}" destdir="${classdir}" debug="true"
> includes="**/*.java" />
>       </target>
>
>     <!-- Create the War File -->
>     <target name="buildWar" depends="init">
>         <copy todir="${warDir}/WEB-INF/classes">
>               <fileset dir="${classdir}" includes="**/*.class" />
>         </copy>
>         <copy todir="${warDir}/WEB-INF">
>               <fileset dir="${deploymentdescription}" includes="web.xml"
/>
>         </copy>
>         <copy todir="${warDir}">
>               <fileset dir="${web}" includes="**/*.*" />
>         </copy>
>
>             <!-- Create war file and place in ear directory -->
>         <jar jarfile="${earDir}/${warFile}" basedir="${warDir}" />
>
>             <!-- Copy the war file to the deploy directory -->
>         <copy todir="${deploy}">
>               <fileset dir="${earDir}" includes="**/*.war" />
>         </copy>
>     </target>
>
>     <!-- Create the War File -->
>     <target name="buildEar" depends="init">
>         <copy todir="${earDir}/META-INF">
>               <fileset dir="${deploymentdescription}"
> includes="application.xml" />
>         </copy>
>
>             <!-- Create ear file and place in ear directory -->
>         <jar jarfile="${deploy}/${earFile}" basedir="${earDir}" />
>     </target>
> </project>
> -------------------snip
>
>
> example\descriptors\application.xml
> -------------------snip
> <?xml version="1.0" encoding="ISO-8859-1"?>
>
> <application>
>     <display-name>Example Application</display-name>
>     <module>
>     <web>
>         <web-uri>example.war</web-uri>
>         <context-root>/example</context-root>
>     </web>
>     </module>
> </application>
> -------------------snip
>
>
> example\descriptors\web.xml
> -------------------snip
> <?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";>
>
> <web-app>
> </web-app>
> -------------------snip
>
>
> example\src\HelloWorld.java
> -------------------snip
> import java.io.*;
> import java.text.*;
> import java.util.*;
> import javax.servlet.*;
> import javax.servlet.http.*;
>
> public class HelloWorld extends HttpServlet {
>
>
>     public void service(HttpServletRequest request,
>                       HttpServletResponse response)
>         throws IOException, ServletException
>     {
>         response.setContentType("text/html");
>         PrintWriter out = response.getWriter();
>
>         out.println("<html>");
>         out.println("<head>");
>         out.println("<title>Deployment Example Servlet!</title>");
>         out.println("</head>");
>         out.println("<body>");
>         out.println("<H1>Hello World!</H1><br>");
>         out.println("<a href=\"javascript:history.back()\">Click here to
> return to the JSP</a>");
>         out.println("</body>");
>         out.println("</html>");
>
>     }
> }
> -------------------snip
>
>
> example\web\index.jsp
> -------------------snip
> <%@page language="java" %>
> <html>
>
> <head>
> <title>Deployment Example</title>
> </head>
>
> <body>
> <H1>Deployment Example</H1>
> The deployment of the JSP worked!<br><br>
> <a href="servlet/HelloWorld">Click here to execute the Servlet</a>
> </body>
>
> </html> -------------------snip
>
>
>
> ------=_NextPart_000_0005_01C29AE6.16BC9B10
> Content-Type: application/octet-stream;
> name="example.war"
> Content-Transfer-Encoding: base64
> Content-Disposition: attachment;
> filename="example.war"
>
>
UEsDBAoAAAAAAJyMgi0AAAAAAAAAAAAAAAAJAAAATUVUQS1JTkYvUEsDBBQACAAIAJyMgi0AAAAA
>
AAAAAAAAAAAUAAAATUVUQS1JTkYvTUFOSUZFU1QuTUbzTczLTEstLtENSy0qzszPs1Iw1DPg5XIu
>
Sk0sSU3Rdaq0UnAsSEzOSFVwzCsBypnqGfJy8XIBAFBLBwjyizQjOAAAADcAAABQSwMECgAAAAAA
>
nIyCLQAAAAAAAAAAAAAAAAgAAABXRUItSU5GL1BLAwQKAAAAAACcjIItAAAAAAAAAAAAAAAAEAAA
>
AFdFQi1JTkYvY2xhc3Nlcy9QSwMEFAAIAAgAnIyCLQAAAAAAAAAAAAAAAAkAAABpbmRleC5qc3Bt
>
T00LgkAUvAv+h5fgWbqvElQgnYKCzls7fuTTlW0z/fftqtClw+MNM/OGeSLe9bIEsezKtwNp9JSD
>
jCjOwkBUtmW3PYJUnrG1ZWQH9KynFp2l4yjbniGSRXGWZPU6eNdq8lS+/Xvi6DC4ViD1E3VB1jGn
>
y5k+2jRQG3E3mR+XI6kyKNLoBTMwbJKDWd+0YRVle64fDVUwIKsJIx5viznrsrhFIud6a6m5qf/v
>
C1BLBwgOs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AAAAAAAAAAAAAAAAPAAAAV0VCLUlO
>
Ri93ZWIueG1sNY7BCoJAGITvgu/wt+fcPxcCC1MqOwiVgkZ0Cl2XMnJd2s3q7ROyuc0wzDd++G7u
>
0ImHrlu5IC6dEBCSt1UtLwsSZ4njedOZ45IwsC3b8kdRss5P6QZeonQKpWwLeqWH1TZeA3EQs6eE
>
Xc0frf5oIxo9hlhyihjlERxFCUul7jUvTI8DRhniZk9+I+RqjJoj3oquoPopKW8bvDEhsDKVxgF4
>
ZmdG+4D8/gxpb/x/I/gCUEsHCAJGAtuxAAAA1AAAAFBLAQIUAAoAAAAAAJyMgi0AAAAAAAAAAAAA
>
AAAJAAAAAAAAAAAAEAD9QQAAAABNRVRBLUlORi9QSwECFAAUAAgACACcjIIt8os0IzgAAAA3AAAA
>
FAAAAAAAAAAAAAAAAAAnAAAATUVUQS1JTkYvTUFOSUZFU1QuTUZQSwECFAAKAAAAAACcjIItAAAA
>
AAAAAAAAAAAACAAAAAAAAAAAABAA/UGhAAAAV0VCLUlORi9QSwECFAAKAAAAAACcjIItAAAAAAAA
>
AAAAAAAAEAAAAAAAAAAAABAA/UHHAAAAV0VCLUlORi9jbGFzc2VzL1BLAQIUABQACAAIAJyMgi0O
>
sF5XrQAAAAIBAAAJAAAAAAAAAAAAAAAAAPUAAABpbmRleC5qc3BQSwECFAAUAAgACACcjIIt6KTz
>
7psCAADEBAAAIAAAAAAAAAAAAAAAAADZAQAAV0VCLUlORi9jbGFzc2VzL0hlbGxvV29ybGQuY2xh
>
c3NQSwECFAAUAAgACACcjIItAkYC27EAAADUAAAADwAAAAAAAAAAAAAAAADCBAAAV0VCLUlORi93
> ZWIueG1sUEsFBgAAAAAHAAcArwEAALAFAAAAAA==
>
> ------=_NextPart_000_0005_01C29AE6.16BC9B10
> Content-Type: text/plain;
> name="JBoss-TomcatWAR.txt"
> Content-Transfer-Encoding: quoted-printable
> Content-Disposition: attachment;
> filename="JBoss-TomcatWAR.txt"
>
> JBoss Elite!
>
> I have tried any number of ways to get the JBoss-3.0.4/Tomcat
> 4.1.12-LE-jdk14 Integrated bundle to serve up a simple jsp/servlet web
> application.  Each of the approaches has been unsuccessful. The deployed
> JSP works, but the called servlet does not.  I have successfully taken
> the example.war file and copied it into my standalone tomcat and it
> worked. I have installed the JBoss-3.0.4 with JBossWeb (Jetty) and
> deployed the example.war and had it work.  Could someone please take a
> look at the included .war file and my steps and tell me what I did
> wrong?
>
> Thanks,
>
> Will
>
>
> Here's the readme that I created...
>
> 1. Create the following 4 directories wherever you like:
> 1. example
> 2. example\src
> 3. example\web
> 4. example\descriptors
>
> 2. Cut and paste the contents of the following 5 files saving them in =
> the
> appropriate directories - the content is at the bottom of this file:
> 1. example\build.xml
> 2. example\descriptors\application.xml
> 3. example\descriptors\web.xml
> 4. example\src\HelloWorld.java
> 5. example\web\index.jsp
>
> 3. Open a command prompt in the example directory and type:
> ant
> =09
> note: you might have to set the classpath for the servlet.jar, ie. set=20
> classpath=3DD:\jboss-3.0.4\tomcat-4.1.x\common\lib\servlet.jar
> before calling ant if it complains.
>
> 4. Should have had no errors and created a build directory with the =
> structure:
> build\deploy
> build\descriptors
> build\ear
> build\ear\META-INF
> build\src
> build\war
> build\war\WEB-INF
> build\war\WEB-INF\classes
>
> 5. To deploy the Web Application on Tomcat, simply copy the file:
> build\deploy\example.war
> into the %TOMCAT_HOME%\webapps directory
>
> 5a. To deploy the Web Application on JBoss, simply copy the file:=20
> build\deploy\example.war into the jboss-3.0.4\server\default\deploy=20
> directory.
>
> 6. To test the deployment of the JSP browse to:=20
> http://localhost:8080/example/index.jsp
>
> 7. To test the deployment of the Servlet, browse to:
> http://localhost:8080/example/index.jsp
> and click the hyperlink:
> Click here to execute the Servlet=20
>
> or browse to:
> http://localhost:8080/example/servlet/HelloWorld
>
> 8. Good job and well done! (Cry if it's JBoss + Tomcat)
>
> example\build.xml
> -------------------snip
> <project name=3D"Example Application" default=3D"all" basedir=3D".">
> <target name=3D"init">
> <property name=3D"dirs.base" value=3D"${basedir}"/>
> <property name=3D"classdir" value=3D"${dirs.base}/build/src"/>
> <property name=3D"src" value=3D"${dirs.base}/src"/>
> <property name=3D"web" value=3D"${dirs.base}/web"/>
> <property name=3D"deploy" value=3D"${dirs.base}/build/deploy"/>
> <property name=3D"deploymentdescription" =
> value=3D"${dirs.base}/build/descriptors"/>
>
> <property name=3D"warFile" value=3D"example.war"/>
> <property name=3D"earFile" value=3D"example.ear"/>
>
> <property name=3D"earDir" value=3D"${dirs.base}/build/ear"/>
> <property name=3D"warDir" value=3D"${dirs.base}/build/war"/>
> <property name=3D"srcDir" value=3D"${dirs.base}/build/src"/>
> <property name=3D"srcDeploymentdescription" =
> value=3D"${dirs.base}/descriptors"/>
>
>             <!-- Create build/src directory to hold the output =
> classes-->
> <mkdir dir=3D"${srcDir}"/>
>
>             <!-- Create build/src directory to hold the output =
> classes-->
> <mkdir dir=3D"${deploymentdescription}"/>
>
>             <!-- Create build/deploy directory to hold the output war =
> and ear files-->
> <mkdir dir=3D"${deploy}"/>
>
>             <!-- Create Web-inf and classes directories -->
> <mkdir dir=3D"${warDir}/WEB-INF"/>
> <mkdir dir=3D"${warDir}/WEB-INF/classes"/>
>
>             <!-- Create Meta-inf and classes directories -->
> <mkdir dir=3D"${earDir}/META-INF"/>
> =09
> <!-- Copy the application.xml and web.xml files from descriptors
> to build/descriptors -->
>     <copy todir=3D"${deploymentdescription}">
>       <fileset dir=3D"${srcDeploymentdescription}" =
> includes=3D"**/*.xml" />=20
>     </copy>
> </target>
>
> <!-- Main target  -->
> <target name=3D"all" depends=3D"init,build,buildWar,buildEar"/>
>
> <!-- Compile Java Files and store in /build/src directory  -->
> <target name=3D"build" >
>         <javac srcdir=3D"${src}" destdir=3D"${classdir}" debug=3D"true" =
> includes=3D"**/*.java" />
>       </target>
>
> <!-- Create the War File -->
> <target name=3D"buildWar" depends=3D"init">
>     <copy todir=3D"${warDir}/WEB-INF/classes">
>       <fileset dir=3D"${classdir}" includes=3D"**/*.class" />=20
>     </copy>
>     <copy todir=3D"${warDir}/WEB-INF">
>       <fileset dir=3D"${deploymentdescription}" includes=3D"web.xml" =
> />=20
>     </copy>
>     <copy todir=3D"${warDir}">
>       <fileset dir=3D"${web}" includes=3D"**/*.*" />=20
>     </copy>
>
>             <!-- Create war file and place in ear directory -->
> <jar jarfile=3D"${earDir}/${warFile}" basedir=3D"${warDir}" />
>
> <!-- Copy the war file to the deploy directory -->
>     <copy todir=3D"${deploy}">
>       <fileset dir=3D"${earDir}" includes=3D"**/*.war" />=20
>     </copy>
> </target>
>
> <!-- Create the War File -->
> <target name=3D"buildEar" depends=3D"init">
>     <copy todir=3D"${earDir}/META-INF">
>       <fileset dir=3D"${deploymentdescription}" =
> includes=3D"application.xml" />=20
>     </copy>
>
>             <!-- Create ear file and place in ear directory -->
> <jar jarfile=3D"${deploy}/${earFile}" basedir=3D"${earDir}" />
> </target>
> </project>
> -------------------snip
>
>
> example\descriptors\application.xml
> -------------------snip
> <?xml version=3D"1.0" encoding=3D"ISO-8859-1"?>
>
> <application>
> <display-name>Example Application</display-name>
> <module>
> <web>
> <web-uri>example.war</web-uri>
> <context-root>/example</context-root>
> </web>
> </module>
> </application>
> -------------------snip
>
>
> example\descriptors\web.xml
> -------------------snip
> <?xml version=3D"1.0" encoding=3D"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";>
>
> <web-app>
> </web-app>
> -------------------snip
>
>
> example\src\HelloWorld.java
> -------------------snip
> import java.io.*;
> import java.text.*;
> import java.util.*;
> import javax.servlet.*;
> import javax.servlet.http.*;
>
> public class HelloWorld extends HttpServlet {
>
>
>     public void service(HttpServletRequest request,
>                       HttpServletResponse response)
>         throws IOException, ServletException
>     {
>         response.setContentType("text/html");
>         PrintWriter out =3D response.getWriter();
>
> out.println("<html>");
> out.println("<head>");
> out.println("<title>Deployment Example Servlet!</title>");
> out.println("</head>");
> out.println("<body>");
> out.println("<H1>Hello World!</H1><br>");
> out.println("<a href=3D\"javascript:history.back()\">Click here to =
> return to the JSP</a>");
> out.println("</body>");
> out.println("</html>");
> =09
>     }
> }
> -------------------snip
>
>
> example\web\index.jsp
> -------------------snip
> <%@page language=3D"java" %>
> <html>
>
> <head>
> <title>Deployment Example</title>
> </head>
>
> <body>
> <H1>Deployment Example</H1>
> The deployment of the JSP worked!<br><br>
> <a href=3D"servlet/HelloWorld">Click here to execute the Servlet</a>
> </body>
>
> </html> -------------------snip
>
> ------=_NextPart_000_0005_01C29AE6.16BC9B10--
>
>
>
>
> --__--__--
>
> Message: 7
> Date: Tue, 03 Dec 2002 16:49:57 -0600
> From: Dan Christopherson <[EMAIL PROTECTED]>
> To:  [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Using a JBOSS DataSource Outside of JBOSS
> Reply-To: [EMAIL PROTECTED]
>
> This is a cryptographically signed message in MIME format.
>
> --------------ms080200000505090802040302
> Content-Type: text/plain; charset=us-ascii; format=flowed
> Content-Transfer-Encoding: 7bit
>
> Ah, the question everyone gets tired of answering...
>
> David Jencks wrote:
> > No, definitely not, for some very good reasons that I've explained many
> > times in the past.
> >
> > david jencks
> >
> > On 2002.12.03 16:35:01 -0500 Ed Saikali wrote:
> >
> >>Hi,
> >>
> >>Is it possible to use a JBOSS data source outside JBOSS, is there a way
> >>to put the JBOSS data source in the public part of the JNDI Tree?
> >>
> >>Thanks
> >>Ed
> >>
> >>
>
>
> --------------ms080200000505090802040302
> Content-Type: application/x-pkcs7-signature; name="smime.p7s"
> Content-Transfer-Encoding: base64
> Content-Disposition: attachment; filename="smime.p7s"
> Content-Description: S/MIME Cryptographic Signature
>
> MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIINXDCC
> A2YwggLPoAMCAQICEA2LT+6q0hhb9HVqnSnhf/swDQYJKoZIhvcNAQECBQAwXzELMAkGA1UE
> B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ldHdvcmsxRjBEBgNVBAsT
> PXd3dy52ZXJpc2lnbi5jb20vcmVwb3NpdG9yeS9SUEEgSW5jb3JwLiBCeSBSZWYuLExJQUIu
> TFREKGMpOTgxSDBGBgNVBAMTP1ZlcmlTaWduIENsYXNzIDEgQ0EgSW5kaXZpZHVhbCBTdWJz
> Y3JpYmVyLVBlcnNvbmEgTm90IFZhbGlkYXRlZAIQTBsy3qL7iwmgtWpm4SFbaDANBgkqhkiG
> 9w0BAQEFAASCAQAvSj8txuRVSAU4+1CTI7hvJMa3QssebuU3McZEY1zjpHDCgCSKQdYFgtel
> qIh/4R2q7uYUSlEnuJKjgnMnvo4myMEVsboYKgJEVs68z5dliKsREoQ9jfqV2aB8Q1Sm7Mx0
> yCehKW9iPS/paC3sNWHv9Gf8J9ObphdfZO5o1kce3oSJmz3F7Fagxs4cmU9isRyyaGGMrUFQ
> 4LTWvf8Xf8rtieQ72YqQEA9M2+D55ESMtKUVVrER994oSXXqR7A8on+8al8dWR0/VDJVEhA6
> 384Nzj9lA+2hggLHt8wlWtdLWGKCVmSz3yfYybQ7gVzDIL+KMFfPImuHS5v9b9uVGrwWAAAA
> AAAA
> --------------ms080200000505090802040302--
>
>
>
>
> --__--__--
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
> End of JBoss-user Digest



-------------------------------------------------------
This SF.net email is sponsored by: Microsoft Visual Studio.NET 
comprehensive development tool, built to increase your 
productivity. Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to