• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Hessian in Jboss

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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



 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
Heroic work plunger man. Please allow me to introduce you to this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic