Solved

How do I deploy Direct Web Remoting (DWR) without a 3rd party web server

Posted on 2010-08-26
3
418 Views
Last Modified: 2013-12-14
Hi Experts

We require communication between a single JavaScript page on the client side and customised Java code on the server side.  The problem we face is that our code must be distributed as a single unit and we dont want to include a third party web server as this would make our installation process more complex and we don't need to server web pages (other than 1 JavaScript page).

Is there a simple way for us to utilise a web server with DWR ( such as by instantiating some web server class). All the references we have so far suggest we need to place the DWR.Jar into the lib directory and the xml file goes into the Web-Inf directory.  

Ideally, we would like some abstract class our code could call to serve the web page that hosts the JavaScript and at the same time control the JavaScript methods. We don't need a web server because we only ever want to serve the 1 and only page that frames the JavaScript as our application is 100% driven within the JavaScript context.

If we do have to include a full web server, what do you recommend we use that can be driven by classes alone and so naturally included with our deployment's code base?  Also, could you include an instructions as to how we would configure such a class based configuration. If we have to use an install orientated web server (non-class based) how can we distribute/deploy this easily with our existing code.

Thank you very much.

David
0
Comment
Question by:Apollo_Marketing
3 Comments
 
LVL 92

Accepted Solution

by:
objects earned 500 total points
ID: 33548246
you could use something like jetty

http://jetty.codehaus.org/jetty/
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Let’s list some of the technologies that enable smooth teleworking. 
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
This video teaches viewers about errors in exception handling.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now