IntelliJ Java IDE
The moose likes Sockets and Internet Protocols and the fly likes What's under Corba's hood? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "What Watch "What New topic
Author

What's under Corba's hood?

Kyle Willkomm
Ranch Hand

Joined: Sep 10, 2001
Posts: 44
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

Joined: Oct 12, 2001
Posts: 19
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
 
IntelliJ Java IDE
 
subject: What's under Corba's hood?
 
Threads others viewed
Socket Timeout
JVM Behaviour- Kill JAVA Process
How can i catch socket timeout when writing?
Client/Server GUI hanging up - Brocard's Problem - Running multiple client threads
Java IDL tool ,servertool, register command not working
developer file tools