Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!

Somesh Chitturi

Greenhorn
+ Follow
since Jan 31, 2009
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Somesh Chitturi

Hi,
I am trying to upgrade my webapp to Java6 and Tomcat6. I successfully upgraded it on a test server and am testing it using JMETER. I am testing the old configuration (Java1.4 and Tomcat5) vs new configuration (Java1.6 and Tomcat6). I noticed that the performance was bad with the new configuration.

  • Do I need to make an changes in my code to work well in Java6 (developed using java1.4)?.
  • Are there any known issues related to this task?.
  • 9 years ago

    So what you are actually looking to do is be able to have two unique sessionID's for when a user has the same web app open in two tabs.



    Not two unique session IDs but something like a timestamp which varies.

    Try going on to Hotmail with two tabs open and logging in with different accounts on each tab - it doesn't work. Since the sessions are at the browser level and not the tab level.



    Yes, this is the reason I am avoiding session to pass the unique id which will be overwritten if user opens in a tab.

    There may be a way to create a unique ID and store in a DB / continually running java file on the server, although this seems like a very complex way of accomplishing the task. ie, how would you know when to invalidate the unique ID so it can be used by someone else? (after a certain time?).

    This is about where my level of knowledge ends though...



    I will try that route, if I run into a problem you guys are always there . Thanks a lot, I really appreciate your help. Thanks.
    9 years ago

    Bear Bibeault wrote:

    Somesh Chitturi wrote:

    Bear Bibeault wrote:

    Somesh Chitturi wrote:I can't use session it makes my application session dependent which I don't want.


    Why?



    If user opens the same jsp in two tabs and if I use session to pass my unique id to servlet, the id in the first tab will be overwritten which leads to some confusion in the servlet.


    And this is a likely scenario that prevents you from using sessions? I'd say not.



    As I mentioned in my comment above, I need this unique id(value which I want to pass to servlet) to retrieve some data from session, for which this identifier is part of name. If the unique id is overwritten I might retrieve a different object than which I am supposed to.
    9 years ago

    Michael Cropper wrote:For a user to be able to view a unique ID within the source code does not make your application any more vulnerable, nor does it give any sensitive information away to the user. The unique ID is a reference to all of the sensitive data which will be stored in a DB somewhere.

    I cannot see any issues with showing a unique ID in the source code....



    The unique id here is not a DB id but something like a timestamp which helps me to retrive some data from the session which I stored with name as sometext+(timestamp/unique id) into session.
    9 years ago

    Bear Bibeault wrote:

    Somesh Chitturi wrote:I can't use session it makes my application session dependent which I don't want.


    Why?



    If user opens the same jsp in two tabs and if I use session to pass my unique id to servlet, the id in the first tab will be overwritten which leads to some confusion in the servlet.
    9 years ago
    Thanks for the reply. I need to pass an time stamp or some unique id from, jsp to servlet without using session or request. The solution you gave will not work for me, because if the user does view source the id will be visible for him. I don't want any one to see the unique id. I can't use session it makes my application session dependent which I don't want.
    9 years ago
    I am wondering if there is a way we can pass data between jsp and servlet without using either session, or passing the values as hidden parameters in request.
    9 years ago
    The problem is the idea of yours multiple client chat server is already proposed by other person and i am thinking the peer to peer networking will be a bit complicated ........ so i got to look for a new one .That is why i came up with this idea..I will be happy if you have any other ideas to share..

    anyways thank you very much for your concern...
    There would be a server having the database.Each time a person comes for reservstion we will look for the vacant rooms (Eg: a hotel reservation system) by sending a request to the server.If he makes a reservation we will send the reservation info. back to the server.All this comunication between server and client is done using the sockets.

    I happend to find a similar example online ... Does this work???

    Thanks guys for the help

    I am thinking of an Online Reservation System. What do you say .....
    Hi Guys,

    I am new to this forum.I am taking a networking course and we are required to submit a proposal for a project involving socket programming.Please give me some ideas.