File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Does only JSP servlets project without any framework run properly? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Does only JSP servlets project without any framework run properly?" Watch "Does only JSP servlets project without any framework run properly?" New topic
Author

Does only JSP servlets project without any framework run properly?

Laxmikant Kumbhare
Ranch Hand

Joined: Sep 19, 2011
Posts: 38
Hello,

I have one question in mind!

Does only JSP servlets project without any framework run properly?

I mean if multiple users (lets assume 100 users) use it simultaneously, will it work properly?

I am just using JSP servlets and JDBC but declaring all variables local in JSP and Servlets too.
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

Servlets are building blocks, the corner stones that the majority of Java web frameworks are built on.
I am just using JSP servlets and JDBC but declaring all variables local in JSP and Servlets too.

I can't comment and give you false statements, thread safety should be handled with care.
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30762
    
156

Laxmikant Kumbhare wrote:I mean if multiple users (lets assume 100 users) use it simultaneously, will it work properly?

If it is written properly. The idea of a framework is to make it easier for you to do the right thing (and provide features so you can develop faster.)

Laxmikant Kumbhare wrote:I am just using JSP servlets and JDBC but declaring all variables local in JSP and Servlets too.

This is not the right thing. JSPs should not have variables/Java code (although they are thread safe). For Servlets, local variables are threadsafe; instance variables are not.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Saifuddin Merchant
Ranch Hand

Joined: Feb 08, 2009
Posts: 606

An application which would have 100 simultaneous users is a pretty big app. Your back-end/app needs to pretty well written to scale that big!


Cheers - Sam.
Twisters - The new age Java Quiz || My Blog
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61426
    
  67

Hmm, not really. I've worked on apps that have 10's of thousands of users. That's approaching big. 100 is a pittance.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Saifuddin Merchant
Ranch Hand

Joined: Feb 08, 2009
Posts: 606

10's of thousands of simultaneous users? That would be totally huge!!

I once wrote a web-app that about 200 odd user had to log in with - using access as a back end database (it was just a fun app - for our office-group). Access wasn't able to scale and broke soon as the load got more than 40-50 user. I had to switch to oracle.


but for someone who has
I am just using JSP servlets and JDBC but declaring all variables local in JSP and Servlets too.
I'd say look out with those 100 users for sure! (By the way I'm not sure what local means here - I assumed 'instance-variables')
Stefan Evans
Bartender

Joined: Jul 06, 2005
Posts: 1018
To answer the question, yes you can write an application without a framework that runs properly.
Frameworks can help with many of the common tasks, but are by no means necessary

Whether or not it will work properly depends more upon your code than a framework.
Only way is to really try load testing it and see.

A tool like JMeter might help you with that.
Laxmikant Kumbhare
Ranch Hand

Joined: Sep 19, 2011
Posts: 38
Thanks to all!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61426
    
  67

Sam Mercs wrote:using access as a back end database

That was the problem. Access is a toy.
Saifuddin Merchant
Ranch Hand

Joined: Feb 08, 2009
Posts: 606

Bear Bibeault wrote:
Sam Mercs wrote:using access as a back end database

That was the problem. Access is a toy.


I agree. Something we learn the hard way!!
... Yet it was 'just' 50 user
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Does only JSP servlets project without any framework run properly?