Deploy Struts and Spring application using java service wrapper - java

I am very new to Java Service Wrapper and windows service.
Can we run struts and spring application as windows service using Java Service Wrapper without any web server(Tomcat, Jboss etc.) ?.

Java Service wrapper just allows you to run a Java application as a Windows service; however if you're using Struts, then you have a web application which needs to run on an app server such as JBoss or Tomcat. So, short answer is: no. You would use the JSW to start Tomcat as the service.

Related

How to Consume java web-service (jetty) in C#

I am a newbie to C# development.
Scenario -
We have an application running on .NET 2.0 framework and IIS 6.5. Now, we have installed another application on a remote server which utilizes Jetty web server. For us to integrate both the applications we need to add a reference to a web service in jetty. I have found the web service path on the server which is a .class file and I want to add a reference to my .NET application.
My problem is - how do I find the URL to add a web reference to the .NET application in Visual Studio ? or is there another way to integrate both the applications ?
Thanks
Have you tried using the .wsdl of the .NET web service to generate a proxy class in the Jetty web server? I am assuming there is some type of discovery mechanism built into the Jetty web server for web service capabilities, right?

how to run web service endpoint class in tomcat or jboss

I have created webservice using following link
http://www.ibm.com/developerworks/webservices/tutorials/ws-eclipse-javase1/section2.html
When i am running a endpoint publish class as java application in eclipse (in my case it is a runservice.java), web service is running fine.
i have created a client for the same webservice client is communicating with webservice properly.
I want to run this endpoint class with jboss or with tomcat without eclipse, it is possible to do this.
Please help.
Notice that the tutorial states that it is a tutorial on how to run a "stand alone webservice application". Since what you are creating is not a java web application but is instead a JavaSE application you will not be able to deploy it to an application server. You will have to create a java web application in order to do that.
Eclipse WS Tutorial

deploy java jax ws web service as stand alone server

i am new to webservice. i need your help to understand deployment process.
I have created a new webservice by using following tutorial
http://www.ibm.com/developerworks/webservices/tutorials/ws-eclipse-javase1/section2.html
web service is running fine in eclipse,
right now i am running this service by right clicking on endpoint class and run it as java application. i want to run this service manually because on our server we not going to install eclipse.
You need to bundle your web service implementation classes as jar and you need to deploy to any Java EE complaint servers like JBoss or GlassFish.
You need some web site to host your application. Eclipse is hosting it for you on your local machine but to use manually I assume you mean you want it on a real site?

GWT in CloudFoundry will it work?

My web application is made with Java, specifically with the Google Web Toolkit (GWT). The back-end used
GWT RPC RemoteServiceServlet
Hibernate/Java
MongoDB (via Morphia)
and other Java libraries
I really did not use any Spring framework at all, will my web application be able to be deployed in a CloudFoundry MicroCloud and in CloudFoundry.com hosting?
Will I be needing to reconfiguring my web application that has been tested and deployed in a Tomcat Server with MySQL and MongoDB database?
GWT should not be an issue.
If you want to deploy a java web app not using Spring, you can deploy it as a java web app, then parse the VCAP_SERVICES manually to configure your data sources from the application.
See http://blog.springsource.org/2011/10/13/using-cloud-foundry-services-with-spring-part-1-the-basics/ for details
https://github.com/SpringSource/cloudfoundry-samples/tree/master/hello-java
Why wouldn't it work?
In the event it wouldn't, that wouldn't be because of GWT at least: GWT-RPC runs in AppEngine, so there's no reason it wouldn't work in CloudFoundry.

Converting java application to web service in netbeans

I have recently created a java application(calculator) in netbeans and need to make it into a web service. How do i convert it?
You should take a look at the Java API for RESTful Webservices (JAX-RS). You can easily convert a basic POJO into a webservice using annotations (http://download.oracle.com/javaee/6/tutorial/doc/gilik.html#gilru).
Of course, if your calculator application is just a standalone Java application (ie. main method running through command such as 'java calculator') you will have to setup a web application and run it in a web container. Check out http://download.oracle.com/javaee/1.4/tutorial/doc/WebApp.html for details on getting started with Java web applications. Check out GlassFish (http://glassfish.java.net/), Tomcat (http://tomcat.apache.org/) or Jetty (http://www.mortbay.org/) for some web container options.

Categories