?
Solved

How do DWR work with Spring and Hibernate?

Posted on 2008-10-08
3
Medium Priority
?
1,084 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 9

Accepted Solution

by:
darkapple earned 1500 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
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.
Suggested Courses

719 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