Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying DWR Java AJAX Applications
  • Table Of Contents Toc
  • Feedback & Rating feedback

Chapter 6. Backend Integration

This chapter is on integrating web applications with various backend services. Almost all applications involve a database, so the first example in this chapter shows one way of accessing database from the DWR application. The second example integrates with a standard web service while the third example uses JMS messaging to access a backend service. The JMS example also shows how to do Reverse AJAX (Comet) using DWR.

This chapter includes the following sections:

  • Integrating a Database with DWR—shows how DWR is used to access a database

  • Integrating with web services—uses Eclipse tooling to generate a web service client for our DWR application

  • Integrating with a Messaging System—integrates our DWR application with the Python-based "order system" using Active MQ and JMS

Integrating a Database with DWR

Here, we integrate a database with DWR by exposing a database table via a remoted Java class. Our Java class connects directly to the database using JDBC, and related...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
DWR Java AJAX Applications
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon