Hi,
This next part are some notes; please feel free to correct any
mis-notions, if any, or add new ideas.
A ConnectionFactory might also take constructor arguments
or use overloaded methods:
"In general, a connection factory method accepts host and port, and returns a
connection."
"In RMI, it would return an object offering services through its methods." And,
as I noted above, this object would also have to have been bound to the RMI
registry.
"Connections support concurrent use." I'm not quite sure what this means, but
it is my assumption that when the client works with a remote object, when
method calls are made on that remote object to the server, from the server's
perspective, that class is treated just like a
servlet would be treated: that is:
1. The class could be instantiated by the server any number of times as the
server sees fit,
2. Any instantiated class of this remote class can have any number of threads
running through it simultaneously.
A
Java object representing a connection has the following functions: (and,
I quote the following bullet items):
* It encapsulates an open connection.
* It's creation is where client authentication takes place.
* It can specify a unique client identifier.
* It provides a ConnectionMetaData object.
* It supports an optional ExceptionListener object.
Of course, some of these purposes are not required for our exam.
Thanks,
Javini Javono