This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Create Web - Service from a simple Java project.

 
Ramakrishna Udupa
Ranch Hand
Posts: 254
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I've Core-java App. which do all operations like creating threads, DB communication etc., Now I want to take inputs from out-side. So when I expose a single method(from Core-Java App) with required user inputs, Then from Web-sites(JEE) they can give inputs. Using that, I can run this Java-App. But I want good example with proper explanation. I heard SOAP and RESTful Web-services are there. Which one to use, what is the difference between them and which one having more Advantage.

Thanks All,
Ramakrishna K.C
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13048
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will find loads of helpful articles with examples linked in the Web Services FAQ here at the ranch.

Bill
 
Ramakrishna Udupa
Ranch Hand
Posts: 254
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I created simple Web - Service in core-java project. I want to access my web-service from another computer. But, URL is



Here local-host is my machine. How to access from another machine. So, how to change my URL?

Thanks:
Ramakrishna K.C
 
Ramakrishna Udupa
Ranch Hand
Posts: 254
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is my code to publish



So, Instead of one reference (In above code, Endpoint endpoint = Endpoint.publish("http://localhost:8080/startnstop", new StartNStop());) I'm passing i.e new StartNStop. Can I pass more than one reference ? If Yes, How to pass? Explain with such type of situation/condition.

Thanks:
Ramakrishna K.C
 
Ramakrishna Udupa
Ranch Hand
Posts: 254
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to call Web- service methods of Java project from JEE project. In java I exposed a method and when request comes from user I'm creating multiple threads to execute in java. But, Instead of threads, The request thread from JEE is going for execution and doing all the works. It is consuming time. Is there any solution for that?

Thanks:
Ramakrishna K.C
 
Ramakrishna Udupa
Ranch Hand
Posts: 254
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can I create Multiple threads in Web - service ?

Thanks:
Ramakrishna K.C
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic