Re: Development tools

1999-06-04 Thread Tim Biernat
in general, i am not big on ide's, but have found VAJ 2.x to be very useful for server-side java development, and integration to legacy systems. the servlet and JSP debugging support is excellent. > Nelson wrote: > > I'd like to hear your opinions about the development tools available. > I've bee

Re: Development tools

1999-05-19 Thread Cezar Totth
On Tue, 18 May 1999, Craig R. McClanahan wrote: >... > The data stored with context.setAttribute() is only "public" within a particular > servlet context. If you don't trust the code in a servlet written by someone else, > set it up in it's own context and you don't have this risk. >

Re: Development tools

1999-05-18 Thread Craig R. McClanahan
Cezar Totth wrote: > On Tue, 18 May 1999, David Mossakowski wrote: > > > > You can store variables that will be common to all threads by putting them in > > context. (context.setAttribute()) > But then any other servlet (and those written at evil.programmers.org) > will be able to grab that publi

Re: Development tools

1999-05-18 Thread Jason Hunter
Hans Bergsten wrote: > What's needed then is ServletContext.getName() method that returns the > registered name. Agreed. But I believe that having to use getName() and setAttribute() to write a simple counter servlet is overkill. This is why I believe in the idea of having an interface (or some

Re: Development tools

1999-05-18 Thread Hans Bergsten
Jason Hunter wrote: > > Craig R. McClanahan wrote: > > As David points out, though, ServletContext.setAttribute() is > > designed for sharing global data for the same servlet, or for > > different servlets. The servlet context also serves as the > > "Application" scope in JSP, for the same reason

Re: Development tools

1999-05-18 Thread David Mossakowski
You got me 'cause I was arguing about the "common" case. I didn't realize what you meant by 'single instance'. dave. Cezar Totth wrote: > On Tue, 18 May 1999, David Mossakowski wrote: > > > No servlet engine I know of creates two instances of a servlet the way you > > describe it. > There seem

Re: Development tools

1999-05-18 Thread Jason Hunter
> In fact, if you alias the same servlet class name to two different > aliases in Apache JServ, you do get two instances -- one per alias. > This is needed, because the lifecycles of each instance are managed > individually Your "counter in an instance variable" > then works the way you want, if

Re: Development tools

1999-05-18 Thread Craig R. McClanahan
Jason Hunter wrote: > > One thing I miss with ServletContext.setAttribute() however is the > ability to easily have different data kept per registered servlet > name. For example, with JWS if you have a counter servlet > registered as "counter" and registered also as "howmany" you will > have tw

Re: Development tools

1999-05-18 Thread Jason Hunter
Craig R. McClanahan wrote: > As David points out, though, ServletContext.setAttribute() is > designed for sharing global data for the same servlet, or for > different servlets. The servlet context also serves as the > "Application" scope in JSP, for the same reason. One thing I miss with Servlet

Re: Development tools

1999-05-18 Thread Cezar Totth
On Tue, 18 May 1999, David Mossakowski wrote: > No servlet engine I know of creates two instances of a servlet the way you > describe it. There seem to be some... at least those distributed (dispatching requests across multiple JVMs) pretend are capable of that. > The init() method is "guarante

Re: Development tools

1999-05-18 Thread Craig R. McClanahan
David Mossakowski wrote: > No servlet engine I know of creates two instances of a servlet the way you > describe it. The init() method is "guaranteed" (from Servlet API) to be called > only once at start up. > > You can store variables that will be common to all threads by putting them in > cont

Re: Development tools

1999-05-18 Thread David Mossakowski
No servlet engine I know of creates two instances of a servlet the way you describe it. The init() method is "guaranteed" (from Servlet API) to be called only once at start up. You can store variables that will be common to all threads by putting them in context. (context.setAttribute()) Check

Re: Development tools

1999-05-18 Thread Cezar Totth
On Mon, 17 May 1999, jon * wrote: > > I would like a "SingleInstanceServlet" interface, > > in order to force servlet engine NOT to create multiple > > instances of a certain servlet. > > > > This would guarantee that all concurent requests share the same > > local variables. > > Why in the world

Re: Development tools

1999-05-17 Thread jon *
> The only part I objected to was the "it encourages stupid people to > stay stupid" part. Like I said, your objection was based on a statement that was taken out of context. > I fully agree with you that the STM is no panacea. In fact, it can > lead the unsuspecting > in

Re: Development tools

1999-05-17 Thread jon *
> I would like a "SingleInstanceServlet" interface, > in order to force servlet engine NOT to create multiple > instances of a certain servlet. > > This would guarantee that all concurent requests share the same > local variables. Why in the world would you want to take the multi-user nature of s

Re: Development tools

1999-05-17 Thread Emuleomo, Olu (PME)
ay, May 17, 1999 2:03 PM > To: [EMAIL PROTECTED] > Subject: Re: Development tools > > > >>>In my opinion Sun made a mistake when including the STM > model. > > Essentially > >>>>it encourages stupid people to stay stupid > > > &g

Re: Development tools

1999-05-17 Thread Cezar Totth
On Mon, 17 May 1999, Craig R. McClanahan wrote: . > I agree with Jon that STM is a bad thng. > > All harshness aside, there are multi-thread issues that SingleThreadModel does > not address. Programmers that rely on it because they don't know how (or don't > want to know how) to write multi-t

Re: Development tools

1999-05-17 Thread jon *
> >>>In my opinion Sun made a mistake when including the STM model. > Essentially it encourages stupid people to stay stupid > > Dont be so harsh! Many many programmers find it hard to write > multi-threaded code. > Dont forget that not all pgmrs have degrees in Computer Science! > >

Re: Development tools

1999-05-17 Thread Craig R. McClanahan
"Emuleomo, Olu (PME)" wrote: > >>>In my opinion Sun made a mistake when including the STM model. > Essentially > >>>it encourages stupid people to stay stupid > > Dont be so harsh! Many many programmers find it hard to write > multi-threaded code. > Dont forget that not all pgmrs have de

Re: Development tools

1999-05-17 Thread Emuleomo, Olu (PME)
Science! --Olu E. > -Original Message- > From: jon * [SMTP:[EMAIL PROTECTED]] > Sent: Friday, May 14, 1999 5:54 PM > To: [EMAIL PROTECTED] > Subject: Re: Development tools > > > So it is totally useless for any servlet devo work and *no* knowledgable > > pers

Re: Development tools

1999-05-14 Thread Milt Epstein
On Fri, 14 May 1999, Lauren wrote: > At 05:20 PM 5/13/99 , jon * wrote: > > > >No "guru" here in his/her right mind would suggest using STM to > >implement a servlet. > > So it is totally useless for any servlet devo work and *no* > knowledgable person would suggest using it? Sun made a mistake i

Re: Development tools

1999-05-14 Thread Luther Andal
A shared object is a singleton class that is referenced in a Servlet(s). To create a shared object you can use somthing like this public class Template { private Template() { } private static Template instance = new Template(); public staticTemplate getInstance() { return insta

Re: Development tools

1999-05-14 Thread Gabriel Wong
Milt Epstein wrote: > One thing servlet engines do to get > around this is to create a pool of servlet instances, and if one > instance is busy with a thread, one of the other instances will be > used. This eliminates/reduces the performance penalty. I believe this is only done in the case wh

Re: Development tools

1999-05-14 Thread Lauren
At 05:20 PM 5/13/99 , jon * wrote: > >No "guru" here in his/her right mind would suggest using STM to implement a >servlet. > So it is totally useless for any servlet devo work and *no* knowledgable person would suggest using it? Sun made a mistake in including it in their servlet API? Really, I

Re: Development tools

1999-05-14 Thread jon *
> So it is totally useless for any servlet devo work and *no* knowledgable > person would suggest using it? Sun made a mistake in including it in their > servlet API? In my opinion Sun made a mistake when including the STM model. Essentially it encourages stupid people to stay stupid. I'm not say

Re: Development tools

1999-05-14 Thread Craig R. McClanahan
> > When I first started writing servlets (coming up on two years ago) I didn't > > know that one instance could serve several requests so my servlet had > > problems when I moved it from servlet runner to a real web server. STM would > > have saved me from rewriting some code back then. > If you

Re: Development tools

1999-05-14 Thread Milt Epstein
On Fri, 14 May 1999, Gabriel Wong wrote: > Milt Epstein wrote: > > > One thing servlet engines do to get > > around this is to create a pool of servlet instances, and if one > > instance is busy with a thread, one of the other instances will be > > used. This eliminates/reduces the performance

Re: Development tools

1999-05-14 Thread jon *
> Maybe I should elucidate a little further; the devo work I am doing is for > an Intranet application which will have at the *most* a dozen or so > concurrent connections and most often will have only 0-5 connections to the > database. There is a webserver (NES) and a machine (Compaq Proliant) >

Re: Development tools

1999-05-14 Thread jon *
> When I first started writing servlets (coming up on two years ago) I didn't > know that one instance could serve several requests so my servlet had > problems when I moved it from servlet runner to a real web server. STM would > have saved me from rewriting some code back then. No, it would hav

Re: Development tools

1999-05-14 Thread Lauren
At 09:50 AM 5/14/99 , Lauren wrote: >Is there a resource you could point me to that would tell me why the STM >should not be used for servlet devo work, or maybe you could explain for my >benefit? > Maybe I should elucidate a little further; the devo work I am doing is for an Intranet applicatio

Re: Development tools

1999-05-14 Thread Luc Saint-Elie
Le 08:05 14/05/99 -0400, Adam Smith a écrit: >Do you have any resources you can recommend for learning about pooling >connections (preferrably online). Thanks. Hello, Have a look at the JDBC section on my page at http://www.interpasnet.com/JSS Hope this helps +--

Re: Development tools

1999-05-14 Thread Lauren
At 02:53 PM 5/14/99 , you wrote: >In my opinion Sun made a mistake when including the STM model. Essentially >it encourages stupid people to stay stupid. I'm not saying that you are >stupid, I'm just saying that it really does nothing to help newbies learn >how to write code the correct way. Wel

Re: Development tools

1999-05-14 Thread Aaron Porter
> At 05:20 PM 5/13/99 , jon * wrote: > > > >No "guru" here in his/her right mind would suggest using STM > to implement a > >servlet. > > > > So it is totally useless for any servlet devo work and *no* > knowledgable > person would suggest using it? Sun made a mistake in > including it in their >

Re: Development tools

1999-05-14 Thread Hans Bergsten
Adam Smith wrote: > > Do you have any resources you can recommend for learning about pooling > connections (preferrably online). Thanks. I wrote an article, with source code, for Web Developer's Journal about connection pools a while back, see http://WebDevelopersJournal.com/columns/connection_po

Re: Development tools

1999-05-14 Thread Eric Knapp
I heartily agree with Jon on this one. Connection pools are just not that hard to deal with. Just go here: http://www.javaexchange.com/ and start reading and downloading. -Eric At 08:05 AM 5/14/99 -0400, you wrote: >Do you have any resources you can recommend for learning about pooling >connecti

Re: Development tools

1999-05-14 Thread jon *
> Well, let's use the word "ignorant" instead of "stupid" since that is what > we are really talking about here; whereas ignorance is a lack of knowledge > and stupidity is the inability to reason or make intelligent decisions. > Everyone is ignorant on one subject or another - most people should

Re: Development tools

1999-05-14 Thread Rogatkin, Dmitry
Hans, I'd recommend to replace new Date().getTime(); by System.currentTimeMillis(); for better performance. Dmitry. - Original Message - From: Hans Bergsten <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, May 14, 1999 11:10 AM Subject: Re: Development tools &

Re: Development tools

1999-05-14 Thread Hans Bergsten
"Rogatkin, Dmitry" wrote: > > Hans, > I'd recommend to replace new Date().getTime(); by > System.currentTimeMillis(); for better performance. Thanks, you're right. I've already made that change in the implementation we use, but I'll correct the article as well. There's also a bug in the recursio

Re: Development tools

1999-05-14 Thread Adam Smith
Do you have any resources you can recommend for learning about pooling connections (preferrably online). Thanks. At 05:20 PM 5/13/99 -0700, you wrote: >> I am on a team of two developing a small project using a single servlet >> implementing the SingleThreadModel. > >> This is my first project wi

Re: Development tools

1999-05-13 Thread jon *
> I am on a team of two developing a small project using a single servlet > implementing the SingleThreadModel. > This is my first project with servlets, but I am doing it this way on the > advice of several other servlet gurus here at work. No "guru" here in his/her right mind would suggest usi

Re: Development tools

1999-05-13 Thread Lauren
At 01:00 PM 5/13/99 , Nelson wrote: > > I'd like to hear your opinions about the development tools available. > I've been testing Jbuilder2, but I saw that it uses a proprietary api to > manage database access. Also, I didn't find it easy to debug servlets. Which > one are you using and best deal

Re: Development tools

1999-05-13 Thread Lauren
At 01:47 PM 5/13/99 , K Shaikh wrote: > > We're developing a large project using Servlets. > We are trying to decide between using a single > big servlet responding to all HTTP requests or a > bunch of smaller ones to server different > types of requests. Does anyone > have any ideas why one may b

Re: Development tools

1999-05-13 Thread jon *
> I have developed a few projects with servlets and can give you the following > advice. One big servlet defeats the current movement toward componentizing > applications. One big servlet is very tough to debug, update, and is not > practical to use in other projects because it is doing to many

Re: Development tools

1999-05-13 Thread Luther Andal
I have developed a few projects with servlets and can give you the following advice. One big servlet defeats the current movement toward componentizing applications. One big servlet is very tough to debug, update, and is not practical to use in other projects because it is doing to many things w

Re: Development tools

1999-05-13 Thread Daniel Montero
I am developing my servlets using PowerJ, and it is very easy to connect to the database.  All the database connections/query management can be done visually, and it uses the standard JDBC plus some wrapper classes that make life easier, and it can be used with java 1.1 or 1.2.  I think you can

Re: Development tools

1999-05-13 Thread Michael Nash
Nelson: I've gone through a fair number of different Java development tools, editors, IDE's and have lately been doing pretty well with Elixir - it's an IDE built entirely out of Java (you get a JAR file when you buy it - inexpensive too), so I can flip between platforms & stick with the same IDE

Re: Development tools

1999-05-13 Thread K Shaikh
We're developing a large project using Servlets. We are trying to decide between using a single big servlet responding to all HTTP requests or a bunch of smaller ones to server different types of requests. Does anyone have any ideas why one may be better than the other?   Thanks a bunch

Re: Development tools

1999-05-13 Thread Paulo Miri
Nelson, I'm using JPadPro for servelts and JavaWorkshop 2.0 for applets. JPadPro has the possilities of compiling using Microsoft Classes and Sun Classes. Java Workshop is from Sun and uses only Sun Classes. It's 100% Pure Java. For Data Acess I'm using JDBC and i have no problems! http://www.mo