aspose file tools*
The moose likes Web Services and the fly likes Hessian in Jboss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Hessian in Jboss" Watch "Hessian in Jboss" New topic
Author

Hessian in Jboss

Jenny Sun
Greenhorn

Joined: Sep 12, 2009
Posts: 11
I am new to Hessian. Is it possible to use Hessian web service to replace Session Bean in JBoss and how to configure jndi for hessian servlet?

For session bean, JBoss application container does the job of mapping session bean to jndi. Now we want to replace session bean with hessian which runs in servlet container, how to get the hessian servlet connect to the services running in the application container? Is it feasible?

Any advice will be greatly appreciated!

-Jenny



Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
It looks like one of the aims with Hessian is to replace, among other things, the SOAP protocol as well, so I have my doubts whether you will be able to combine the use of Hessian and SOAP in a simple manner.
If you want to use XML-based messages with your web service but also try to speed things up, you may want to consider Fast Infoset: http://en.wikipedia.org/wiki/Fast_Infoset
From what I see, it seems like JBoss also supports Fast Infoset.
Best wishes!
Jenny Sun
Greenhorn

Joined: Sep 12, 2009
Posts: 11
Hi Ivan,

Thanks for your reply! I may not make the question clear: the purpose of the project is to remove RMI port configuration needed by stateless session bean in JBoss, so we want to use Hessian to expose the service. We can get Hessian servlet work in Jboss; the client is able to access to the hessian servlet. But the issue happens from the service code, where the service code tries to access to Hibernate session factory which was started via JBoss service MBean; the error is "18:16:06,710 ERROR [STDERR] javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]".

I am not sure what causes the error, and guess it may be related to not configuring jndi with hessian servlet.

Thanks for your advice in advance.

-Jenny
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Ah, I think I have a better understanding of what you want to do.
From what I understand, it sounds like the problem is not immediately related to web services, but rather to obtaining the Hibernate session factory from the Hessian servlet. Regretfully, the only advice I can give you is to ask people who are more familiar with JBoss.
Best wishes!
Jenny Sun
Greenhorn

Joined: Sep 12, 2009
Posts: 11
yeah, that is a good idea. Thanks.

Some JBoss doc mentions the mapping between servlet and stateless session bean can be done via web descriptor file, but nowhere mentions for service MBean... I'll re-post the question to JBoss forum.

Thank you so much for your advice!

-Jenny
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
Stumbled across something that may be of interest to you and others that are contemplating choosing a serialization protocol:
http://code.google.com/p/thrift-protobuf-compare/wiki/Benchmarking
Best wishes!
 
Don't get me started about those stupid light bulbs.
 
subject: Hessian in Jboss