• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Does only JSP servlets project without any framework run properly?

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 608
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 608
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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')
 
Bartender
Posts: 1845
10
  • Likes 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks to all!
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 608
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic