Forums Register Login

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

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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?
Put a gun against his head, pulled my trigger, now he's dead, that tiny ad sure bled
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 459 times.
Similar Threads
Java time with servlet in-accurate
JAX-WS deployment
database not found
reload jsp page using Ajax
How to access webservice on LAN
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 05:30:52.