John Catherino

Networking

cajo's Projects

cajo's Recent Posts

Topic Project / Forum Last Post in Topic
General questions about Cajo
Let me try to answer your questions in order: : 1. Is there a way to set up an asynchronous 'listening event' so that a client will wait before receiving an 'event' from a remote object? Of course y . . .
The cajo project
  » Users
Cajo-0_tiny July 21, 2011 19:11
by: John Catherino
General questions about Cajo
Hi Adrian. This is a fine place for the post, no worries! :) Esmond Pitt and I go back a long way; frequently discussing the intricacies (and absurdities) of RMI. The cajo project is essentially a . . .
The cajo project
  » Users
Cajo-0_tiny July 21, 2011 19:11
by: John Catherino
Issues with using Remote and with shutting down all threads
Addressing your first issue: yes, what you will receive is a remote reference object, not the object itself. If the client and server share a common interface to the object, a dynamic proxy can be crea . . .
The cajo project
  » Users
Defaultpersonimage July 05, 2011 13:53
by: LizardSF
UndeclaredThrowableExceptions caused by NoSuchObjectException
The approach I find really helps, is to build a skeleton of your application architecture. It simply contains mock objects that are stubs, or return reasonable, but trivially derived values. This helps . . .
The cajo project
  » Users
Cajo-0_tiny June 09, 2011 07:38
by: John Catherino
New to Cajo, error with NotSerializableException
A Writer is local to the JVM in which it exists, and is not serialisable. If the worker is trying to arrive at the main app with a Writer, then it will need to be changed; to receive a serialisable da . . .
The cajo project
  » Users
Defaultpersonimage June 14, 2011 13:34
by: LizardSF
UndeclaredThrowableExceptions caused by NoSuchObjectException
A NoSuchObjectException most commonly occurs when a client has a reference to a remote object in a JVM that has either been shut down, or restarted. The client will typically be unaware of this, and wh . . .
The cajo project
  » Users
Cajo-0_tiny June 09, 2011 07:38
by: John Catherino
Overloaded methods within Interface exposed via Cajo
Hi Tim! Interesting, I don't seem to have the problem, here is the test code I am using: CajoServer.java: "..code.." CajoClient.java: "..code.." Does this work for you? John
The cajo project
  » Users
Defaultpersonimage May 06, 2011 15:26
by: livonthedge
Recent changes
If you wish to return a Map of Entity values, yes, then all of the Entity elements must be serialisable, or be derived from serialisable ancestors. However, if a Map of references to remote entities . . .
The cajo project
  » Users
Defaultpersonimage May 16, 2011 08:43
by: duindain
Multicast error
Let's figure this out! The current version of the Cajo object has a constructor as follows: Cajo(int ttl, String address, int port) Is this the one you are using? (It is available is source fo . . .
The cajo project
  » Users
Defaultpersonimage June 09, 2011 10:15
by: k0nr4d
Recent changes
The issue here, is that EntityInterface can be of many types, this is why referencing by interface is much more flexible. Just a thought: : Is is possible for you to subclass Entity, to take an Enti . . .
The cajo project
  » Users
Defaultpersonimage May 16, 2011 08:43
by: duindain