• Post Reply Bookmark Topic Watch Topic
  • New Topic

Usage of Remote Handle  RSS feed

 
Suresh Bansal
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a home object (pointing to a ejb) from which i create a remote handle.
Then i pass this remote handle to two threads, both of which call ejb methods in parallel.
Will it work, or do i have to create two different remote handles for each thread.
I think we should create a different remote handle for each thread.
Suresh.
 
Srikanth Shenoy
author
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to create the remote handles in each thread.
Also remember to start the threads with the context class loader.
Otherwise it runs with the Bootstrap class loader and the ejbs may not be visible due to the classloader hierarchy
Srikanth Shenoy
Author: Struts Survival Guide
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!