Solved

How do DWR work with Spring and Hibernate?

Posted on 2008-10-08
3
1,076 Views
Last Modified: 2013-11-11
As advised by some of the experts, I am trying out DWR for my chat application.
I set up my chat application using Spring and hibernate in the backend, JSP and Javascrip for client. I am using DWR to ajax-style my chat application. I already set up my dwr configuration by following the steps outlined in http://javablogspace.blogspot.com/ for Spring,DWR and Hibernate.

In my client side, should i call my service classes directly. Any tips on how to set up the client ?

Please let me know.
Thanks
0
Comment
Question by:ranji_sundar
  • 2
3 Comments
 
LVL 9

Accepted Solution

by:
darkapple earned 500 total points
ID: 22685053
Yes, now you'll directly call service classes. It will be like you are interacting with procedures of service classes and out of the way from MVC route of spring.

Your service class will query necessary data through DAO and you'll directly reply client with the data which is to be handled by your callback function.
0
 

Author Closing Comment

by:ranji_sundar
ID: 31504486
Thanks for your response. I set the classes to be exposed....but, when I checked the localhost:8080\Myprogram\dwr, it says Classes known to dwr is empty. Can you suggest me what might have been wrong?
0
 
LVL 9

Expert Comment

by:darkapple
ID: 22692918
it might be one of the cases

i. you missed to put dwr.jar in classpath
ii. you missed to mention dwr servlet description in web.xml
iii. you forgot to mention classes in dwr.xml file.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
commonTwo  challenge 63 135
countHi challenge 25 121
java jdbc batch example 8 34
ejb on wildfly 5 20
I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

777 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