Solved

How do DWR work with Spring and Hibernate?

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
java ^ examples 8 57
for loop with Set 4 46
bitbucket vs gitbucket 3 34
mockito example issue 8 38
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 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.

746 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

12 Experts available now in Live!

Get 1:1 Help Now