File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Scenerio.. Discussion? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Architect Certification (SCEA/OCMJEA)
Reply Bookmark "Scenerio.. Discussion?" Watch "Scenerio.. Discussion?" New topic
Author

Scenerio.. Discussion?

andy armstrong
Ranch Hand

Joined: May 14, 2002
Posts: 154
Ok here is a scenerio from one of mock exams..
An application accepts input from a user and invokes a function on a server. The client knows where the server resides and the client can be implemented on any platform. The client cannot continue processing until the server has returned. Application development productivity is more of a concern than end user application performance. The server code is implemented in C. What middleware solution BEST fits this situation?
a) Servlets

b) CORBA

c) RMI

d) EJBs

I am pretty sure CORBA would be the best choice
but maybe it would be faster to use JNI and use
servelts but as Mark Cade's book says choose the
best answer..


Certifications: <br />scp2, scea, scwcd, WL7.0, CISSP, XML
Daniel CarMichael
Greenhorn

Joined: Jun 10, 2001
Posts: 15
Note the wording "Application development productivity is more of a concern than end user application performance".
John Lindwall
Ranch Hand

Joined: May 29, 2002
Posts: 31
Boy I'm gonna have lot of trouble with these kinds of questions..
"The client knows where the server resides" -- of what significance is that? Don't all clients need some specification of the server's location? Is this noise thrwn in to confuse me?
"...the client can be implemented on any platform". Um OK, a Commodore 64? A mainframe? Given that restriction I'd say a browser-based client is best.
HTTP is synchronous so that fits the requirements nicely. Speed of development is handled because you build a single web-based GUI (JSPs & servlets) and all platforms (that are capable of hosting a browser) are accomodated.
The only rub is interfacing the servlets to the server written in C. The poster suggest JNI -- that would work but my one experience with JNI was painful, so I consider that a negative factor as far as "ease of development".
But I guess that is still the least painful route IMO.
John Lindwall
Ranch Hand

Joined: May 29, 2002
Posts: 31
What do people think of my analysis (in the previous post). I'd love to see more opinions and ideas from others. Am I on drugs or somewhat in the ballpark?
andy armstrong
Ranch Hand

Joined: May 14, 2002
Posts: 154
I think CORBA is the way to go the code is done
in C. With the other methods you would have to
do some programming and thus time is consumed
and erros can be made..
Steve Chernyak
Ranch Hand

Joined: Oct 19, 2000
Posts: 113
I also think CORBA is the way to go.
My reasoning is that you have to have a client that can be implemented on any platform. Since a client is not necessary a user but an application possibly written in VB or some other language, CORBA is the better solution.
What if there was one more option F) Web Services
would that be the right answer?
Rufus BugleWeed
Ranch Hand

Joined: Feb 22, 2002
Posts: 1551
I'm going to bet the pundits are going to
go with JNI over RMI for ease of implementation.
Especially since the client knows where the
server is located ( IP address ).
Which is harder to setup CORBA or JNI/RMI?
There must be a boat load of C programmers
wanting to migrate to Java that could knock
this right out, today sir.
k doshi
Ranch Hand

Joined: Mar 16, 2002
Posts: 41
Since "Application development productivity is more of a concern than end user application performance"
and EJB development takes less time than CORBA, why is EJB not a candidate according to all?
andy armstrong
Ranch Hand

Joined: May 14, 2002
Posts: 154
If you were starting from scratch then
perhaps ejb's would be a solution.
But since the code is already written
then why rewrite something that already exists.
Hence CORBA.
John Lindwall
Ranch Hand

Joined: May 29, 2002
Posts: 31
Andy: In your opinion what weight are we to put on this requirement: "the client can be implemented on any platform"?
I read that to mean we need to be prepared to implement the client on several (3? 5? 10?) platforms which may be as different as Win98 vs Unix vs VMS.
If that's true is CORBA still a good choice? How would we quickly implement clients for these many platforms using CORBA?
Am I overanalyzing this requirement? This is a fun discussion and I'm learning a lot from you folks.
andy armstrong
Ranch Hand

Joined: May 14, 2002
Posts: 154
I guess the key is the best Middleware solution.
Maybe if the server side progam was small you
could better use RMI because it would be eash to
rewrite the code in Java.
However now looking into it does CORBA even map to C? Maybe RMI is the answer...
Samit Das
Greenhorn

Joined: Jun 17, 2002
Posts: 8
My reply -
1)The client knows where the server resides
- naming service to be supported
2)the client can be implemented on any platform
- Any lang to C
3)The client cannot continue processing until the server has returned
- remote invokation of method
4)Application development productivity is more of a concern than end user application performance.
- means a generic and flexible solution not a proprietory soln
5)middleware solution
CORBA fits into all.
Shankar Ranganathan
Ranch Hand

Joined: Sep 19, 2001
Posts: 71
The line "The client can be implemented on any platform " suits to CORBA only


Shankar<br />Post mock questions in<br /><a href="http://groups.yahoo.com/group/scea_mock" target="_blank" rel="nofollow">http://groups.yahoo.com/group/scea_mock</a>
Craig Jackson
Ranch Hand

Joined: Mar 19, 2002
Posts: 405
I think the best answer is (c) because of the requirement that states:
Application development productivity is more of a concern than end user application performance.

I wouldn't choose (b) because of the robust features of CORBA it has a higher learning curve.
craig
 
 
subject: Scenerio.. Discussion?
 
Threads others viewed
IBM 483 questions
Protocols
general architecture question
Corba server clustering
My SCEA Part 1Study Notes
MyEclipse, The Clear Choice