Solved

How do DWR work with Spring and Hibernate?

Posted on 2008-10-08
3
1,081 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 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

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 …
A solution for Fortify Path Manipulation.
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.

627 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