Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Does only JSP servlets project without any framework run properly?

 
Laxmikant Kumbhare
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 34084
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Saifuddin Merchant
Ranch Hand
Posts: 607
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64623
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmm, not really. I've worked on apps that have 10's of thousands of users. That's approaching big. 100 is a pittance.
 
Saifuddin Merchant
Ranch Hand
Posts: 607
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 1670
10
  • Likes 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks to all!
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64623
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sam Mercs wrote:using access as a back end database

That was the problem. Access is a toy.
 
Saifuddin Merchant
Ranch Hand
Posts: 607
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic