tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Neven Cvetkovic <neven.cvetko...@gmail.com>
Subject Re: Versioned WAR Application
Date Thu, 13 Feb 2014 12:28:05 GMT
Ganeshh,

Are you familiar with any development tools (Eclipse, Netbeans, etc...)?

The reason I ask, is that would be easy to develop these applications (with
help) and build them yourself. Yes, someone could give you these WARs and
EARs - but do you trust them?

There are other alternatives, that you could use to build your apps:
- http://ant.apache.org/
- http://www.gradle.org/
- or just use JDK (javac)

Here's another idea for you:
The easiest way to build simple test apps (in your case at least) is to
write tests with JSP pages, as they compiled automatically once deployed in
the application, and there is no need for external tools...

For example, to test if the JDBC driver is loaded, here's a sample app you
can try:

1. Here's directory structure and files:

JdbcTest/
JdbcTest/index.jsp
JdbcTest/drivertest.jsp
JdbcTest/WEB-INF/
JdbcTest/WEB-INF/lib
JdbcTest/WEB-INF/lib/hsqldb.jar  (the driver for HSLQDB database)


2. Here is index.jsp file:

<html>
<body>

<h1>JdbcTest :: index.jsp</h1>

<form action="drivertest.jsp" action="post">
Driver class:<br/>
<input type="text" name="drivername" value="org.hsqldb.jdbcDriver" /><br/>
<input type="submit" value="Load Jdbc Driver" />
</form>

</body>
</html>

3. Here's drivertest.jsp:

<html>
<body>

<h1>JdbcTest : drivertest.jsp</h1>

<pre>
<%
  String drivername = request.getParameter("drivername");
%>

<%
  try {
    Class.forName(drivername);
    out.println("Class successfully loaded: " + drivername);
  } catch (ClassNotFoundException cnfe) {
    cnfe.printStackTrace();
    out.println("Class not loaded: " + cnfe);
  }
%>
</pre>

</body>
</html>

4. Get hsqldb.jar from:
http://mvnrepository.com/artifact/org.hsqldb/hsqldb/2.0.0
http://sourceforge.net/projects/hsqldb/files/latest/download?source=files




What specific things do you want to test?





On Wed, Feb 12, 2014 at 11:20 PM, Ganeshh HariHaran <gann_hh@yahoo.com>wrote:

> Please let me know where they are available, I am essentially looking for
> an Application both EJB and Servlets based (EAR) package, which I can
> accordingly make it to configure JMS, JDBC, etc and deploy the application
> to showcase the middleware components in tomcat and jboss etc...
>
> ------------------------------------
> Best Regards,
> Ganesh Hariharan
>
>
> "It is not the strongest of the species that survives, nor the most
> intelligent that survives. It is the one that is the most adaptable to
> change."
> -- Charles Darwin
>
>
>
> On Tuesday, February 4, 2014 10:10 PM, Christopher Schultz <
> chris@christopherschultz.net> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Ganeshh,
>
> On 2/4/14, 7:08 AM, Ganeshh HariHaran wrote:
> > I do not want to build one, I am looking which already available
> >
> > ------------------------------------ Best Regards, Ganesh
> > Hariharan
> >
> >
> > "It is not the strongest of the species that survives, nor the most
> > intelligent that survives. It is the one that is the most adaptable
> > to change." -- Charles Darwin
> >
> >
> >
> > On Friday, January 31, 2014 4:30 PM, André Warnier <aw@ice-sa.com>
> > wrote:
> >
> > Ganeshh HariHaran wrote:
> >
> >> Hi,
> >>
> >> Is there a place where we get a Java application real time with
> >> some dummy data, essentially that application should connect to
> >> various J2EE conponents like JDBC, JMS, SOAP etc
> >>
> >> I am not looking at the sample app comes with tomcat.
> >>
> > You mean like this ?
> >
> > http://lmgtfy.com/?q=java+servlets+real+time+applications
>
> Do you have any other requirements? There are literally hundreds of
> freely-available Java-based applications available.
>
> You have not defined "real time", "dummy data", or "connects to J2EE
> components".
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iQIcBAEBCAAGBQJS8RGNAAoJEBzwKT+lPKRYCuYQALfLRv9SbYvNsIgn03w1hFsj
> 7sofjgB9+wGL+Kjh54CRSCV22oENK5xW3QDMZ8kHw0nBRflSPUTOFPdn8EA53d89
> SNYFbOIm8kI7nRecES2QHtdEs0LXHHEKQ/77KsV5Fg44jA9chFEme8xsVpiVWfv7
> hU9VA7JIs+tRyExKTduULaesWW+dGDtaGu1AM/k2qAHcHko3RBfNYDBRFWSaGnV6
> 5cBqBUYygeGxkcRzJ5VlaUAA7BYNXFDthDlGoDUXS4avQVqwkSJKXZmfocHbMQrF
> 790s+ph1eSzH/XNeqqYUmrN73TW6SGUYj8q8Vf5PzIfdjsg6JF80bb0OisAvX0Ac
> 0cIft2wten+cZAad/ZjMOErVE8t+jkqmmGQzqk/jRrjX/58eGG76NJLHeZ/I1L/p
> Ei//yCf15R4bBvtbhRfW6iTFPTvf/LZgU/vZ5PQbfRLBnG5kQMQWHn9RwLd6Vrkf
> 4PpDi22m33D6OZeOR7gcs+LcySatrDSyW0PNX3V0cxHI8ZYOS8ZsP/SwLj99LB9o
> CcbySqhTqB9Jbth7V8edkEeU6pVaTR4cLoSDWwBiPfJuGZdYZn6W4KylL2+K03uA
> 3PzpelW46bRp8MqLuQEgnmhtm1iAygG6jPoKR6aubWlSmivOHr6U0lDwdtXS6s94
> TfzJTBcE1AFQvxgcfSHM
> =E1bl
> -----END PGP SIGNATURE-----
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message