Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

What's under Corba's hood?  RSS feed

 
Kyle Willkomm
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, we currently have a problem on our project where a Corba server written in C++ sometimes hangs. This also hangs my java client when it makes a call to that server. I was wondering if there is a way to get a hold of the socket that's actually being used by Corba to send a method request. Then I would be able to close that socket from another thread and stop my hanging. Right now I have to abandone the thread and proceed with processing logging the fact that the server is hanging. This works but is not pretty.
 
Joel Peach
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kyle,
The approach you've taken is probably the most clean and practical. What you've done is basically introduce the idea of a timeout into your distributed object interaction. You should check the documentation with your ORB, as I believe many provide a timeout setting for just this purpose.
Do you have this problem with your C++ server when you use a client that isn't Java. If so, and if possible, you might try investing some time to see what's going wrong in the C++ server.
Best of luck!
-Joel
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!