This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization 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:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

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

 
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.
 
Sheriff
Posts: 23697
50
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?
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!