• Post Reply Bookmark Topic Watch Topic
  • New Topic

Change to database done on LAN machine through web site app not reflected on localhost  RSS feed

 
won-ki lee
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I made a CRUD web application in netbeans ide.

When I add an entry from another machine the change is not reflected on this machine.

I made change from 192.168.0.19:8080/appname on another computer and the change is not relected on localhost:8080/appname. Glassfish and derby server are running on localhost.

Update works if I hit return as soon as I added a record in another machine, or if I add a new record. So the solution should involve auto-refreshing the page in a time interval.
 
Paul Clapham
Sheriff
Posts: 22696
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It seems there's something you aren't telling us. Let's rename your machines A and B, to remove the confusion which the name "localhost" refers to. You have a database server on machine A and then you make a change "from another machine". Probably this means that you run a browser on machine B which connects to Glassfish on machine A, thus updating the database on machine A. Which is a perfectly ordinary thing to do. That much I'm willing to accept as what you meant.

But then you're talking about "hitting return" somewhere to cause those updates to appear somewhere. So what's "somewhere" and what application are you hitting return on?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!