This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Mock Question on Protocols Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Mock Question on Protocols" Watch "Mock Question on Protocols" New topic
Author

Mock Question on Protocols

veena madhukar
Greenhorn

Joined: Jan 19, 2006
Posts: 29
As part of an application you are developing you need to move the state of an object but not its behavior. What should you use?

CORBA
RMI
JRMP
IIOP
Ricardo Ferreira
Ranch Hand

Joined: Feb 13, 2006
Posts: 156
Originally posted by veena madhukar:
As part of an application you are developing you need to move the state of an object but not its behavior. What should you use?

CORBA
RMI
JRMP
IIOP


Resp: CORBA

CORBA only moves the state of an object but RMI moves the objects behavior as well. Choice A is not appropriate as it is a stateful protocol and is not a framework for moving objects.

Best Regards


Ricardo Ferreira,<br /> <br />Sun Certified Enterprise Architect<br />IBM Certified SOA Solution Designer<br />IBM Certified RUP v7.0 Solution Designer<br />IBM Certified Specialist for RUP v2003
Ricardo Ferreira
Ranch Hand

Joined: Feb 13, 2006
Posts: 156
Originally posted by veena madhukar:
As part of an application you are developing you need to move the state of an object but not its behavior. What should you use?

CORBA
RMI
JRMP
IIOP


Resp: CORBA

CORBA only moves the state of an object but RMI moves the objects behavior as well. Choice "D" is not appropriate as it is a stateful protocol and is not a framework for moving objects.
Raghubir Bose
Ranch Hand

Joined: Feb 18, 2006
Posts: 88
I think there is a point of confusion over here.

The question does not categorically say about the technology or protocol.It simply says what to use.

If we think from the framework perspective it is CORBA ..but if we think from the protocol perspective its IIOP.



I will meet the fairy queen soon !
Raghubir Bose
Ranch Hand

Joined: Feb 18, 2006
Posts: 88
On second thought ...it might so happen the application might be developed in Java ...or a part of it ..(since nothing is said we can assume anything)..in that case CORBA is not the right answer IIOP would be correct ...I would go for IIOP

Comments pls ...
Harini Shree
Greenhorn

Joined: Feb 14, 2006
Posts: 14
Guys, Any one of you please explain what is the state and behaviour of any object?

Regards,
Harini
Raghubir Bose
Ranch Hand

Joined: Feb 18, 2006
Posts: 88
Truely confusing .. I was just giving a whizlabs exam ...and I got the same question and the answer was CORBA

anyways coming back to your question of object state and object behaviour..

Simply put an object state is the set of data values and offered services that the object can deliver at a certain time, in fact, an object life is a sequence of states. - more simply data part of the object

Object behaviour needs more sentences ...
An object behaviour can represent :

1. an object invariant : An object invariant is a set of properties that are respected by all object states. For example, the number of subscribers that are referenced by a telephone dispatcher cannot exceed the dispatcher capacity.

2. an object state change : An object state change is a set of properties that must be respected when an object switches state. A state change can be a consequence of :

1. an object service out going call,
2. an object service in coming call,
3. a climatic event, or other non-formal events etc

example : the addition of a subscriber on a telephone dispatcher is an object state change behaviour

3. output values of object services :An object services can have parameters, and particularly output parameters. During a service call, their output parameters take new values, so an object behaviour can specify these output values.

-- more simply data + code.

Now whenever you pass behaviour ..you should be able to talk things like what kind of behaviour which definitely includes things like polymorphism, inheritance ..and encapsulation.Since CORBA also supports non OO languages like COBOL, it cannot pass behaviour only can pass state.

-- can somebody validate whether this thought process makes sense or not ?


rinsad ahmed
Greenhorn

Joined: Mar 16, 2006
Posts: 12
Is there any restrictions on RMI, on sending the state only. Or, does RMI is intended only to send State with Behaviour. Please clarify

Thanx


Rinsad<br />B.Sc.(Eng)Hons.(Computer Science & Engineering)<br />SCEA 97/90
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Mock Question on Protocols
 
Similar Threads
youngest SCWCD???
Oh boy !!!!!
is there any NetBeans specefic forum?
ersin
problem when running container tests in weblogic server