my dog learned polymorphism
The moose likes Web Services and the fly likes Java Web service Deployment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Java Web service Deployment" Watch "Java Web service Deployment" New topic

Java Web service Deployment

Dayo Daniel

Joined: Aug 21, 2012
Posts: 4
I am currently working with a web service. After deploying it i discovered it works perfectly on the localhost but i need it to deploy it to a web address say : 43:33:73:6 so that i will be able to consume it from any where via internet.. so may questions is how do i deploy this to my web directory and also what will my database connection look like (the connection in the web service.). I used NetBeans 6.9.1 thanks in advance.

My webservice url looks like this when testing it with glassfish though it also works fine with tomcat:


i have something like this for the DB connection:

url = "jdbc:mysql://localhost:3306/mhealth?";

con = DriverManager.getConnection(url, "root", "");
I agree. Here's the link:
subject: Java Web service Deployment
It's not a secret anymore!