Jaman,
You can indeed use jar files with servlets. It depends on the servlet
engine, but putting things into jar files may be faster because the
servlet engine doesn't have to check the class files each time to see if
they need to be dynamically reloaded. I would think that this completely
depends on the servlet engine (how it implements dynamic reloading) and
I'm not sure how each one of them does it. Putting things into jar files
can also make servlets easier to manage.
If you do decide to use a jar file, you just need to put it in
a directory that is in the classpath of the servlet engine. I would check
documentation for whatever platform you're using.
Good luck!
-Matt Tucker
On Wed, 28 Apr 1999, Jaman Burton wrote:
> Thanks for the information but sun's documentation says nothing about
> servlets. I have a servlet-based application and I was thinking of
> "jar-ing" the package that contains all the servlets along with the
> packages that contain all the code that performs DB access that are
> used to populate the servlets. Can this be achieved easily?
>
> Jaman
>
>
> ______________________________ Reply Separator _________________________________
> Subject: Re: Jar files
> Author: jahansoz ([EMAIL PROTECTED]) at wich-unix-mime
> Date: 4/28/99 12:34 PM
>
>
> Try this url
> http://java.sun.com/docs/books/tutorial/jar/index.html
>
>
> [EMAIL PROTECTED] wrote:
>
> > Sorry, if this is a newbie question, but are there advantages to
> > placing packages in Jar files rather than just leaving them in .class
> > files sorted by directories? Are there disadvantages?
> >
> > Thanks, Jaman
> >
> > Unsubscription, archives, FAQ - http://www.xcf.berkeley.edu/lists.html
>
> --
>
>
>
> MEHRDAD JAHANSOOZI Java Developer
> Phone (416) 924-0882
>
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html