|
Included
with all professional packages is a private instance of the Resin
servlet engine by Caucho
Technology. This servlet engine is based on the same technology
that Tomcat and other leading servlet engines use. It fully supports
the Servlet 2.3 and JSP 1.2 APIs. Servlets.Net has found that
Resin is faster and easier to use than most of the other servlet
engines available. We are confident you will enjoy using Resin
for your web site.
To get
started developing Servlet 2.3 and JSP 1.2 solutions, we recommend
that you review the documentation that comes with your private
Resin installation. Take a look at index.xtp
for Resin's documentation. Simply click
here to explore the private installation of Resin within your
Servlets.Net account. Please note that it might take a moment
for the documentation pages to be displayed the first time you
access each page. This is because they are being compiled for
the first time.
One of the
best things about Resin is that it will automatically compile
almost everything for you. This includes your servlets, JSP and
XTP documents, supporting classes and JavaBeans, and much more!
Simply put your source file onto the server in the appropriate
directory and Resin will compile it for you. Below is a list of
directories that you should know about.
You will
find Resin installed in:
/home/amnon/resin/amnon/
You can stop
and start the Resin servlet engine with these commands. In general,
you won't need to do this. But there will be times when it makes
sense to restart the servlet engine:
/home/amnon/resin/amnon/start
/home/amnon/resin/amnon/stop
Any web documents,
such as HTML, JSP, or XTP files will get automatically compiled
if they need to be compiled. They should be put into your web
document root:
/home/amnon/www/amnon/
If your web
application, JSP, or XTP files require supporting classes, they
can be placed in several places. If you have JAR files that you
would like all of your web applications to use, put them into
the global Resin lib directory:
/home/amnon/resin/amnon/lib/
If you have
JAR files that should only be used for your main web application,
put them into your WEB-INF/lib directory:
/home/amnon/www/amnon/WEB-INF/lib/
If you have
classes that are not contained in a JAR file and want to make
them available for your main web application, put them into your
WEB-INF/classes directory. This includes any servlets that you
want to make available. You can put *.class files into this directory
if you would like, but Resin will also automatically compile everything
for you if you just put your source files into the correct place
on the server. For instance, you can drop the *.java classes that
you have into this location and Resin will automatically generate
*.class files:
/home/amnon/www/amnon/WEB-INF/classes/
Although
you do not have direct access to edit your resin.conf file, we
are more than willing to make most necessary changes you need
to the file for you. Unfortunately, there are some settings in
that file that could cause conflicts with other customer installations
if they were modified incorrectly. We have to lock some things
down so that customers can't accidentally or intentionally clobber
other customer's services. The resin.conf file is located at:
/home/amnon/resin/amnon/conf/resin.conf
Luckily,
almost everything you would need to edit in resin.conf can be
controlled by editing web.xml instead. Most of the settings that
are normally in resin.conf can also be used in the web.xml file
located at:
/home/amnon/www/amnon/WEB-INF/web.xml
In addition,
you can edit your global database connection broker settings by
modifying your database.conf, mysql_*.conf, or pgsql_*.conf files.
These files are already configured for your account setup, but
you might want to make changes to it at some point. See the samples
below for more information on how to use databases within your
servlets and JSP documents. The database configuration files are
located at:
/home/amnon/resin/amnon/conf/
|