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?
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.
Joined: Sep 12, 2009
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.
Joined: Oct 04, 2006
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.
Joined: Sep 12, 2009
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.