Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java IDL question

 
Luke Murphy
Ranch Hand
Posts: 300
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I got this question from a whizlabs mock exam. I am not going to include all possible answers but just the two that I couldn't make my mind up between!!

The question is:

When should Java IDL be used?

1. When accessing existing Corba Services implemented in c++?
2. When servicing requests from Corba requests?

I don't see the differences between these answers. But it claims you would use RMI over IIOP for number 2.

Can anyone help me out here?

I have read through http://java.sun.com/j2se/1.3/docs/guide/idl/index.html and http://java.sun.com/j2se/1.3/docs/guide/idl/jidlFAQ.html but it still doesn't make sense?

Any help appreciated.
 
sivan jai
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I will go with option 1. There is a difference if you read carefully. Visualize which is "your" application in the given scenarios
 
Luke Murphy
Ranch Hand
Posts: 300
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sivan jai wrote:I will go with option 1. There is a difference if you read carefully. Visualize which is "your" application in the given scenarios

Thanks. Still a bit confused.
Anyone else got anything to add?
 
sivan jai
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"When accessing a corba service" means you are trying to access a corba service. This is where Java IDL comes into play for your system.
"When servicing corba clients... " means you are trying to cater to corba clients. This is not a usage scenario for Java IDL. Hope it helps.
 
Luke Murphy
Ranch Hand
Posts: 300
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sivan jai wrote:"When accessing a corba service" means you are trying to access a corba service. This is where Java IDL comes into play for your system.
"When servicing corba clients... " means you are trying to cater to corba clients. This is not a usage scenario for Java IDL. Hope it helps.

Still confused.

Why can't you service corba clients using Java IDL?

 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 11945
212
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might want to re-read "What is the difference between Java IDL and RMI-IIOP?". It describes 3 scenarios: 1 where you are the client, 1 where there are only Java clients and servers, and 1 where you are the server.

Then re-read the 2 options you posted. As Sivan mentions, 1 suggests that you are the client, and 1 where you are the server.
 
Venkata Katari
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at the second option very carefully.

"2. When servicing requests from Corba requests? "

It doesn't mention that service is CORBA. It only mentions about client. So, Service can be of any type.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic