This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Java Web service Deployment  RSS feed

 
Dayo Daniel
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:

http://localhost:8080/WebMoyo/connect_To_DbService?Tester

i have something like this for the DB connection:

Class.forName("com.mysql.jdbc.Driver");
url = "jdbc:mysql://localhost:3306/mhealth?";

con = DriverManager.getConnection(url, "root", "");
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!