![]() ![]() ![]() ![]() ![]() ![]() |
FAQ - Questions about aglet programming |
![]() |
|
| Q:Are
there any sample programs for ASDK?
A:You can find some example programs in the download package in your "examples" directory. Only source code is available and no detailed description is provided. |
| Q:How
can I compile and run my own aglets?
A:Please
follow the steps below: |
| Q:How
can I pass more than two arguments to Aglets as
initial arguments?
A:The class of the initial argument for CreateAglet() is Object, you can use the Vector or Hashtable class to pass a composite object as an initial argument. |
| Q:My
aglet does not carry its own data. Can you give
me any advice?
A:First of all, all of your data must be Serializable. Next, check if the variables are not declared as "static" or "transient". Variables declared as "static" or "transient" are not serialized. (This is the nature of Java Object Serialization.) |
| Q:How
can I create an aglet that has a different codebase
within another aglet?
A:The current
security policy is on codebase, and does not
allow an aglet to create another aglet whose
codebase is different. Please use -nosecurity
for the time being. |
| Q:When
I transfer an object as a massage argument, ClassCastException
is thrown. Am I doing something wrong?
A:When objects are transferred as message arguments, their code is not transferred along with them. Consequently, unless the code already exists at the destination (e.g., JDK or ASDK classes), it fails to cast these objects with non-existing classes. |
| Q:Is
there are any upper limit on the number of aglets
that can live in the same context?
A:In the current implementation there is no restriction on the number of aglets. Since the server assigns (at least) one thread to one aglet, and some JVMs (or OSs) have limitations on the number of threads that can be created within a process, there could be some upper bound. |
| Last modified 14 March, 2002 |