Re: J2EE, JSP, SERVLETS

2002-02-26 Thread Cathy Ooi

Quite right. As I'm involved in both development, deployment and maintenance,
portability and security are key issues. Apache does support ASP, I think, but I
don't quite trust that if I can help it. What about Perl? I still like to use it
for small, quick jobs.

- Original Message -
From: "August Detlefsen" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, 27 February, 2002 4:06 AM
Subject: Re: J2EE, JSP, SERVLETS


There are a couple of reasons to pick JSP. I usually tell bosses that
we use java because it is easy to replicate across multiple hardware as
the demand for the app grows (They love thinking about growing demand).


Security is an issue too, especially with M$ products (not sure about
PHP). How many viruses have we seen in the past few years effecting
IIS, Exchange and NT?

There are some good whitepapers comparing JSP to other technologies on
the JavaSoft site. here's one:

Comparing Methods For Server-Side Dynamic Content White Paper
http://java.sun.com/products/jsp/jspservlet.html

Decisions, Decisions: J2EETM vs. .NET
http://www.theserverside.com/resources/article.jsp?l=J2EE-vs-DOTNET


--- hanasaki <[EMAIL PROTECTED]> wrote:
> What are your boss' looking for?  What motivates them?
>
> Keith Ng wrote:
> > nono
> > dun get me wrong
> > im currently doing a J2EE project based on
> > servlets/jsp/javamail/jdbc/possibly EJB(low possibility)
> > there are 2 things i need to do.
> >
> > 1)i need to noe if i ve been missing out on some of the
> capabilities, which
> > i did not implement
> > 2) i need to write in my report the major advantages my web
> application has
> > over the others. I noe jsp/servlets are the best around but i cant
> quite
> > explain.
> >
> > However, some kind souls have emailed me and explained to me and
> help clear
> > some of my doubts.
> >
> > -Original Message-
> > From: Rick K [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 26, 2002 3:41 PM
> > To: Tomcat Users List; [EMAIL PROTECTED]
> > Subject: Re: J2EE, JSP, SERVLETS
> >
> >
> > --- Keith Ng <[EMAIL PROTECTED]> wrote:
> >
> >>Hi guys
> >>
> >>There has been a question thats bugging me for qute
> >>some time. I noticed
> >>many bank sites, or big companies use JSP/SERVLETS
> >>for their websites. Is
> >>there a particular reason why jsp/servlets are
> >>preferred over
> >>asp/php/coldfusion? I even realise a site
> >>(dbs.com.sg)using applet textfield
> >>as their forms ... isit supposed to be more secure
> >>this way? Can someone
> >>clear my doubts? thanks
> >>
> >
> > Why does it bug you that big companies use servlets
> > and JSP? Why do you have doubts about Java?
> >
> >
> >
> > __
> > Do You Yahoo!?
> > Yahoo! Sports - Coverage of the 2002 Olympic Games
> > http://sports.yahoo.com
> >
> > --
> > To unsubscribe:
> 
> > For additional commands:
> 
> > Troubles with the list:
> 
> >
> >
> >
> >
> > _
> >
> > Do You Yahoo!?
> >
> > Get your free @yahoo.com address at http://mail.yahoo.com
> >
> >
> >
> >
> > --
> > To unsubscribe:
> 
> > For additional commands:
> 
> > Troubles with the list:
> 
> >
> >
>
>
> --
> =
> = [EMAIL PROTECTED]  =
> = Spam : Unhealthy and High in Sodium and Cholesterol   =
> =
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>


__
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!
http://greetings.yahoo.com

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Class partially reloaded even after restarting Tomcat

2001-10-25 Thread Cathy Ooi

Hi,

I don't know if anyone have come across this ...

I'm running a Tomcat-3.3-m4, with Apache 1.3 on Red Hat Linux release 7.0.
My JVM is Classic VM (build 1.3.0, J2RE 1.3.0 IBM build cx130-20010329 (JIT
enabled: jitc)).

I have 2 JSP pages menu.jsp and data.jsp that called a class DBManager that in
turn uses DBConfig that contains final static variables e.g. DBConfig.DB_URL.

Originally, DBConfig.DB_URL = "10.10.10.10:3306".
Called http://testserver/menu.jsp.
And I get an Exception "java.lang.Exception: Cannot connect to MySQL server on
10.10.10.10:3306". Perfectly okay, since "10.10.10.10:3306" is the wrong value.

So I modified to the correct value, DBConfig.DB_URL = "10.10.10.20:3388".
Compile & upload DBConfig.class again.
Remove the generated files in "work".
Shutdown & start up tomcat again.
Called http://testserver/menu.jsp again. And I get an Exception
"java.lang.Exception: Cannot connect to MySQL server on 10.10.10.10:3306" again!
But when I called http://testserver/data.jsp, the page was displayed correctly
with the data retrieved from the DB.

I've tried stopping & restarting both tomcat & apache several times but the
result remains the same. I've even 'pstree -ap' to check that all tomcat
processes has terminated. But the old value stubbornly remains after several
shutdowns & startups.

Finally, my colleague shutdown tomcat and waited about 30 minutes before
starting up tomcat again. (Previously, there's a few seconds interval between
shutdown and startup) This time, menu.jsp works correctly.

Is there anywhere tomcat might have cached the class or value?
Is there a faster way to get the static final value reloaded?

Thanks in advance.

Cathy.

p.s. There are 2 other J2SE applications running in the same server, but I don't
think this should matter since they're both running in different processes,
right?



_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com