-
Aug 23rd, 2006, 08:34 AM
#1
Spring and Hessian
Hi there
I am currently looking at using Hessian and Spring together for remoting a service, however I am some what struggling. Can anyone tell where i can get some sample code in setting up Spring and Hessian. I have found loads of examples of bean definition. I could not find what the service class should look like?
Thanks
Amin
-
Aug 23rd, 2006, 09:32 AM
#2
The service class is your bean. It has nothing special about it. It implements your business interface. That's it. Its implemented exactly the way it would if you weren't using Hessian. The difference is on top of defining your service as a normal bean, you also export it using Hessian and access it in a client context using a Hessian proxy that specifies your interface and the URL to your server.
Bill
-
Aug 23rd, 2006, 09:34 AM
#3
Hessian and Spring
So I don't need to extend HessionServlet or create a servlet class that calls the business method?
-
Aug 23rd, 2006, 11:10 AM
#4
No. You need to declare the DispatcherServlet in web.xml, and export your bean with the HessianServiceExporter. See section 16.3 of the reference manual for these steps. After you write your bean, its purely configuration.
The same is true for exporting Burlap, RMI and JMX objects.
Bill
-
Aug 24th, 2006, 03:28 AM
#5
Spring and Hessian
Hi there
Thanks I will give that a try.
Amin
-
Aug 25th, 2006, 07:59 AM
#6
Hessian and Spring
Hi there
Just wanted to let you know that I got Spring and Hessian working and i have to say it's amazing. I can change from Hessian to Burlap to Spring's HttpInvoker so easily that it's untrue.
Thanks
Amin
-
Jan 18th, 2008, 03:10 AM
#7
Hi Amin,
I am looking for a sample of Spring and Hessian, could you kindly tell me the steps with some full sample code.
If not, kindly guide me the steps, i am new to Hessian and i am working with Spring say for around 10 mths now, so comfortable with IoC and configuration stuffs.
cheers
saikiran
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules