Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Is a user able to Open two consoles in one machine?

 
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All:

I would like to know if you know whether we should let the user open two console's on the same machine or if we are supposed to not let him do it. This is related with the update issue I had, it seems that in server/console mode works as expected (If I update the database file using the direct access to the database and a remote console GUI is open when the user with the remote console tries to update that same row, he is not allowed, and vice versa), but this is not true with console/console (I open a direct access to the database connection twice and It seems they skip each other static member variables who I use to validate if one row was already updated or not).

A solution to this issue is the title of this thread, so are we able to stop the user of using two direct access console's in the same machine at the same time ?

And another question would be, when you start the app twice does the JVM creates two versions of classes that contains static values, I mean does the class loader loads twice the classes one per application running ?.
 
Ulises Pulido
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It really did,

Thanks Kevin
 
And then the entire population worshiped me like unto a god. Well, me and this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic