aglets-developer Mailing List for Aglet Software Development Kit
Status: Beta
Brought to you by:
cat4hire
You can subscribe to this list here.
| 2001 |
Jan
|
Feb
(17) |
Mar
(24) |
Apr
(4) |
May
(3) |
Jun
(5) |
Jul
(17) |
Aug
(29) |
Sep
(3) |
Oct
(19) |
Nov
(4) |
Dec
(12) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2002 |
Jan
(8) |
Feb
(9) |
Mar
(4) |
Apr
(6) |
May
(8) |
Jun
|
Jul
(57) |
Aug
(2) |
Sep
(4) |
Oct
(7) |
Nov
(2) |
Dec
(1) |
| 2003 |
Jan
(25) |
Feb
(21) |
Mar
(20) |
Apr
(3) |
May
(10) |
Jun
(8) |
Jul
(8) |
Aug
(1) |
Sep
(6) |
Oct
(10) |
Nov
(13) |
Dec
(10) |
| 2004 |
Jan
(6) |
Feb
(5) |
Mar
(7) |
Apr
(18) |
May
(13) |
Jun
(5) |
Jul
(2) |
Aug
(6) |
Sep
(11) |
Oct
(10) |
Nov
(4) |
Dec
(4) |
| 2005 |
Jan
(2) |
Feb
(16) |
Mar
(14) |
Apr
(8) |
May
(2) |
Jun
(6) |
Jul
(1) |
Aug
(1) |
Sep
(5) |
Oct
(21) |
Nov
(8) |
Dec
|
| 2006 |
Jan
|
Feb
|
Mar
(7) |
Apr
(2) |
May
(1) |
Jun
(3) |
Jul
|
Aug
(2) |
Sep
|
Oct
(7) |
Nov
|
Dec
|
|
From: Thomas H. <Tho...@es...> - 2006-10-31 14:35:28
|
On Thursday 26 October 2006 13:04, issam hmida wrote: > i can't not dispatsh aglets to any url even atp://localhost:9000 for > example , but i can dispatch aglets to the default port 4434, > > i reseive error from MAFExtendedException : SocketException This may be a silly question: is there an aglet server on localhost listening on port 9000 when you try to dispatch to it? You know, "agletsd -port 9000"? If one is listening, could it be that you have a firewall that prevents the origin aglet server from connecting to port 9000? Are you able to connect with telnet to that port? You should try that, just to see if the connection succeeds. Let us know if you have fixed the problem in the mean time and how, it might need to go into the documentation. Thomas -- [Random fortune cookie]: [...] Vimes's grin was as funny as the one that moves very fast towards drowning men. And has a fin on top. (Jingo) |
|
From: issam h. <hmi...@gm...> - 2006-10-26 11:05:00
|
i can't not dispatsh aglets to any url even atp://localhost:9000 for example , but i can dispatch aglets to the default port 4434, i reseive error from MAFExtendedException : SocketException thanks for helping me |
|
From: issam h. <hmi...@gm...> - 2006-10-25 09:24:31
|
i try to dispach an aglet to atp//portable:9000 there is exception : socketException at com.ibm.maf.MAFAgentSystem_ATPClient.receive_agent0 <Unkown source> and many other exception of type i am very thankfull if you can help me |
|
From: Thomas H. <Tho...@es...> - 2006-10-10 10:44:57
|
On Tuesday 10 October 2006 10:56, Khyati Bhatt wrote: > i would like to know if there is any version of aglets which supports > deployment of aglets on mobile devices... > is it possible to use aglets to/from mobile devices I think you can run Aglets if you have Java Platform, Standard Edition installed. I haven't heard reports of Aglets running on Java Platform, Micro Edition. For that matter, I haven't heard reports of Aglets running on non-Sun Java environments, either. Can anyone update us on Aglets with JavaME and Aglets with non-Sun Java? Thomas -- [Random fortune cookie]: Knebel's Law: It is now proved beyond doubt that smoking is one of the leading causes of statistics. |
|
From: Khyati B. <bha...@gm...> - 2006-10-10 08:56:32
|
i would like to know if there is any version of aglets which supports deployment of aglets on mobile devices... is it possible to use aglets to/from mobile devices |
|
From: <tom...@gm...> - 2006-08-11 06:36:53
|
Hi!
I have had the same problem. It seems there is a bug in the standard
security policy file or it is not working with a standard windows system
anymore...
If you just remove all the text in the file and write:
// Do what you will
grant {
permission java.security.AllPermission;
};
There should not be a problem. Be aware that this is not safe !!!
But you can start from there and see if it works. I
On 8/10/06, agl...@li... <
agl...@li...> wrote:
>
> Send Aglets-developer mailing list submissions to
> agl...@li...
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.sourceforge.net/lists/listinfo/aglets-developer
> or, via email, send a message with subject or body 'help' to
> agl...@li...
>
> You can reach the person managing the list at
> agl...@li...
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Aglets-developer digest..."
>
>
> Today's Topics:
>
> 1. need urgent help (jsp patt)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 10 Aug 2006 08:03:50 -0700 (PDT)
> From: jsp patt <pat...@ya...>
> Subject: [Aglets-developer] need urgent help
> To: agl...@li...
> Message-ID: <200...@we...>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hello,
> i am using the platform java 1.4,aglet 2.0 version.getting error at
> security policy file
>
> The code is as folows...
>
> import java.awt.Frame;
> import java.net.URL;
> import java.net.UnknownHostException;
> import java.io.File;
> import java.util.Properties;
> import com.ibm.maf.*;
> import com.ibm.aglet.*;
> import com.ibm.aglet.system.*;
> import com.ibm.aglets.MAFAgentSystem_AgletsImpl;
> import com.ibm.aglets.tahiti.Tahiti;
> import com.ibm.awb.security.AccessController;
> import com.ibm.awb.misc.*;
> public class AirServer extends ContextAdapter {
>
> public void agletCreated(ContextEvent ev) {
> System.out.println("Aglet Created : " + ev.getAgletProxy());
> }
>
> public void agletCloned(ContextEvent ev) {
> // System.out.println("Aglet Cloned : " + ev.getAgletProxy());
> }
>
> public void agletArrived(ContextEvent ev) {
> // System.out.println("Aglet Arrived : " + ev.getAgletProxy());
> }
>
> public void agletActivated(ContextEvent ev) {
> // System.out.println("Aglet Activated : " + ev.getAgletProxy());
> }
> public void agletDisposed(ContextEvent ev) {
> System.out.println("Aglet Disposed : " + ev.getAgletProxy());
> }
>
> public void agletDispatched(ContextEvent ev) {
> System.out.println("Aglet Dispatched : " + ev.getAgletProxy());
> }
>
> public void agletDeactivated(ContextEvent ev) {
> // System.out.println("Aglet Deactivated : " + ev.getAgletProxy());
> }
>
> public void agletReverted(ContextEvent ev) {
> // System.out.println("Aglet Reverted : " + ev.getAgletProxy());
> }
>
> public void showMessage(ContextEvent ev) {
> // System.out.println("message : " + ev.getMessage());
> }
>
> private static final String PROTOCOL_FILE = "file";
>
> // additional options
> final static Opt options[] = {
> Opt.Entry("-protocol", "maf.protocol", null),
> Opt.Entry("-username", "username", null),
> Opt.Entry("-password", "password", null),
> };
>
> public static void main(String args[]) throws java.lang.Exception {
> Opt.setopt(options);
> AgletRuntime runtime = null;//AgletRuntime.init(args);
>
> String DEFAULT_USERNAME = "eseidler";
> String username = "eseidler";
> String password = "bla";
> try {
> AccessController.beginPrivileged();
> DEFAULT_USERNAME = System.getProperty("user.name");
> file://username = "eseidler"; file://System.getProperty("username",
> DEFAULT_USERNAME);
> file://password = "bla"; file://System.getProperty("password",
> "");
> username = "aglet_key";
> password = "aglets";
> } finally {
> AccessController.endPrivileged();
> }
>
> Object obj = runtime.authenticateOwner(username, password);
> if (obj == null) {
> System.err.println("Cannot authenticate the user \"" + username +
> "\"");
> throw new Exception("User authentication failed.");
> }
>
>
> MAFAgentSystem maf_system = new MAFAgentSystem_AgletsImpl(runtime);
>
> String protocol = "atp";
> try {
> AccessController.beginPrivileged();
> protocol = System.getProperty("maf.protocol", "atp");
> } finally {
> AccessController.endPrivileged();
> }
>
> MAFAgentSystem.initMAFAgentSystem(maf_system, protocol);
> file://Tahiti.initializeGUI();
> Tahiti.installFactories();
>
> //
> // Creates a named context. To dispatch to this context, you have to
> // specify the destination, for example,
> // "atp://aglets.trl.ibm.com:434/test"
> // Defining multiple context is also supported.
> //
> Tahiti.installSecurity();
> MAFAgentSystem.startMAFAgentSystem(maf_system, protocol);
> AgletContext cxt = runtime.createAgletContext("aircraft");
> cxt.addContextListener(new AirServer());
>
> cxt.start();
> // From here on, you can use this context.
> // (creating, dispatching an aglet, for instance)
> cxt.createAglet(null, "aircraft.AircraftAgent", null);
> }
> }
>
> i am getting the foloowing error...
> java.lang.ClassCastException: sun.security.provider.PolicyFile
> at com.ibm.awb.security.Policy.getThisPolicy(Policy.java:82)
> at com.ibm.awb.security.Policy.getPolicy(Policy.java:59)
> at com.ibm.awb.security.ProtectionDomain.<clinit>(
> ProtectionDomain.java:62)
> at
> com.ibm.awb.security.AccessController$BootstrapIntrospector.getDomain
> At(AccessController.java:64)
> at com.ibm.awb.security.AccessController.beginPrivileged
> (AccessControlle
> r.java:134)
> at AirServer.main(AirServer.java:70)
> Exception in thread "main" java.lang.NoClassDefFoundError
> at com.ibm.awb.security.ProtectionDomain.getDomain(
> ProtectionDomain.java
> :238)
> at
> com.ibm.awb.security.AccessController$BootstrapIntrospector.getDomain
> At(AccessController.java:64)
> at com.ibm.awb.security.AccessController.endPrivileged
> (AccessController.
> java:147)
> at AirServer.main(AirServer.java:77)
>
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Everyone is raving about the all-new Yahoo! Mail Beta.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://sourceforge.net/mailarchive/forum.php?forum=aglets-developer/attachments/20060810/dbc1ab8d/attachment.html
>
> ------------------------------
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>
> ------------------------------
>
> _______________________________________________
> Aglets-developer mailing list
> Agl...@li...
> https://lists.sourceforge.net/lists/listinfo/aglets-developer
>
>
> End of Aglets-developer Digest, Vol 3, Issue 1
> **********************************************
>
|
|
From: jsp p. <pat...@ya...> - 2006-08-10 16:11:27
|
Hello,
i am using the platform java 1.4,aglet 2.0 version.getting error at security policy file
The code is as folows...
import java.awt.Frame;
import java.net.URL;
import java.net.UnknownHostException;
import java.io.File;
import java.util.Properties;
import com.ibm.maf.*;
import com.ibm.aglet.*;
import com.ibm.aglet.system.*;
import com.ibm.aglets.MAFAgentSystem_AgletsImpl;
import com.ibm.aglets.tahiti.Tahiti;
import com.ibm.awb.security.AccessController;
import com.ibm.awb.misc.*;
public class AirServer extends ContextAdapter {
public void agletCreated(ContextEvent ev) {
System.out.println("Aglet Created : " + ev.getAgletProxy());
}
public void agletCloned(ContextEvent ev) {
// System.out.println("Aglet Cloned : " + ev.getAgletProxy());
}
public void agletArrived(ContextEvent ev) {
// System.out.println("Aglet Arrived : " + ev.getAgletProxy());
}
public void agletActivated(ContextEvent ev) {
// System.out.println("Aglet Activated : " + ev.getAgletProxy());
}
public void agletDisposed(ContextEvent ev) {
System.out.println("Aglet Disposed : " + ev.getAgletProxy());
}
public void agletDispatched(ContextEvent ev) {
System.out.println("Aglet Dispatched : " + ev.getAgletProxy());
}
public void agletDeactivated(ContextEvent ev) {
// System.out.println("Aglet Deactivated : " + ev.getAgletProxy());
}
public void agletReverted(ContextEvent ev) {
// System.out.println("Aglet Reverted : " + ev.getAgletProxy());
}
public void showMessage(ContextEvent ev) {
// System.out.println("message : " + ev.getMessage());
}
private static final String PROTOCOL_FILE = "file";
// additional options
final static Opt options[] = {
Opt.Entry("-protocol", "maf.protocol", null),
Opt.Entry("-username", "username", null),
Opt.Entry("-password", "password", null),
};
public static void main(String args[]) throws java.lang.Exception {
Opt.setopt(options);
AgletRuntime runtime = null;//AgletRuntime.init(args);
String DEFAULT_USERNAME = "eseidler";
String username = "eseidler";
String password = "bla";
try {
AccessController.beginPrivileged();
DEFAULT_USERNAME = System.getProperty("user.name");
file://username = "eseidler"; file://System.getProperty("username", DEFAULT_USERNAME);
file://password = "bla"; file://System.getProperty("password", "");
username = "aglet_key";
password = "aglets";
} finally {
AccessController.endPrivileged();
}
Object obj = runtime.authenticateOwner(username, password);
if (obj == null) {
System.err.println("Cannot authenticate the user \"" + username + "\"");
throw new Exception("User authentication failed.");
}
MAFAgentSystem maf_system = new MAFAgentSystem_AgletsImpl(runtime);
String protocol = "atp";
try {
AccessController.beginPrivileged();
protocol = System.getProperty("maf.protocol", "atp");
} finally {
AccessController.endPrivileged();
}
MAFAgentSystem.initMAFAgentSystem(maf_system, protocol);
file://Tahiti.initializeGUI();
Tahiti.installFactories();
//
// Creates a named context. To dispatch to this context, you have to
// specify the destination, for example,
// "atp://aglets.trl.ibm.com:434/test"
// Defining multiple context is also supported.
//
Tahiti.installSecurity();
MAFAgentSystem.startMAFAgentSystem(maf_system, protocol);
AgletContext cxt = runtime.createAgletContext("aircraft");
cxt.addContextListener(new AirServer());
cxt.start();
// From here on, you can use this context.
// (creating, dispatching an aglet, for instance)
cxt.createAglet(null, "aircraft.AircraftAgent", null);
}
}
i am getting the foloowing error...
java.lang.ClassCastException: sun.security.provider.PolicyFile
at com.ibm.awb.security.Policy.getThisPolicy(Policy.java:82)
at com.ibm.awb.security.Policy.getPolicy(Policy.java:59)
at com.ibm.awb.security.ProtectionDomain.<clinit>(ProtectionDomain.java:62)
at com.ibm.awb.security.AccessController$BootstrapIntrospector.getDomain
At(AccessController.java:64)
at com.ibm.awb.security.AccessController.beginPrivileged(AccessControlle
r.java:134)
at AirServer.main(AirServer.java:70)
Exception in thread "main" java.lang.NoClassDefFoundError
at com.ibm.awb.security.ProtectionDomain.getDomain(ProtectionDomain.java
:238)
at com.ibm.awb.security.AccessController$BootstrapIntrospector.getDomain
At(AccessController.java:64)
at com.ibm.awb.security.AccessController.endPrivileged(AccessController.
java:147)
at AirServer.main(AirServer.java:77)
---------------------------------
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail Beta. |
|
From: lordsh <lo...@gm...> - 2006-06-17 10:00:21
|
thanks
lordsh
--=20
Un affare in cui si guadagna soltanto del denaro
non =E8 un affare.
Henry Ford
|
|
From: Thomas H. <Tho...@es...> - 2006-06-14 10:49:13
|
On Sunday 11 June 2006 00:58, lordsh wrote:
> I'm new with java and aglets, and i hope that you can help me.
Welcome! :)
> If i want to modified the Security Preference of tahiti to include the
> use of file ".class" in the directory c:\XXX\XXX what i do?
I hope I have understood your problem correctly.
The graphical way would be from Tahiti's menu to go to Options -> Security
Preference. In the resulting dialog, type file:/C:/XXX/XXX/ with forward
slashes, as it is a URL. Then click the "Add" button under "Code Base".
Select the freshly added URL and then from the right side add permissions.
First you select a permission type from the drop down list at the top, then
you edit the parameters of the permission in the fields at the bottom, then
you click on the "Add" button from the right half of the dialog to add the
permission to the list. You will see the freshly added permission in the list
under the "Add" button.
I find the interface not too friendly towards beginners. It assumes you
already know how Java's policy system works and what parameters to use in
order to instruct the Permission classes to enforce the behaviour you want.
There are few clues in the interface about what the Aglets specific
permissions mean and I found little documentation about it.
Another way to go about it is to edit the policy file by hand. It is located
at ${user.home}/.aglets/security/aglets.policy . The Aglets policy system
exists since Aglets was compatible with JDK 1.1.3, so it did not use the
Java2 policy system, but imitated it. For this reason the Aglets policy
system is not a pure Java2 policy system and you may find small discrepancies
between the Java documentation and the way Aglets policies work. However, you
can mostly use Java documentation and test your application whenever you
apply it to Aglets. The syntax of Java policy files is documented at
http://java.sun.com/j2se/1.5.0/docs/guide/security/PolicyFiles.html . You can
try older versions of that document, which are closer to Aglets. You can also
use the sample Aglets policy file that you can find at
${user.home}/.aglets/security/sample.policy .
Find out what the Java-specific permissions mean at:
http://java.sun.com/j2se/1.5.0/docs/guide/security/permissions.html
For the Aglets-specific policy objects, since the source code is available you
can find out from it what parameters they use and what they do. They are
classes whose names usually end in Permission or Protection. Good luck with
this!
Sun's 'policytool' tool has a GUI that may help you generate policy files,
although Aglets policy syntax is slightly older than that of the newest Sun
JDKs.
Hope this helps,
Thomas.
--
[Random fortune cookie]:
You'll feel much better once you've given up hope.
Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm
|
|
From: lordsh <lo...@gm...> - 2006-06-10 22:58:07
|
Hello at all,
I'm new with java and aglets, and i hope that you can help me.
I must to do a project using aglet and other file ".class" in a
particular directory (c:\XXX\XXX).
Now the project run only if I don't use the "Security Preference" of Tahiti.
I read that i must to modify the security pilicy, but i'm not successful.
Now my question is the follow:
If i want to modified the Security Preference of tahiti to include the
use of file ".class" in the directory c:\XXX\XXX what i do?
thanks in advance
lordsh
|
|
From: jsp p. <pat...@ya...> - 2006-05-28 06:20:38
|
Hi, I am developing project on aglets.Here the agent should vist each host and search for the file given by home agency.How i should prooceed ....... Regards, Jaya --------------------------------- Love cheap thrills? Enjoy PC-to-Phone calls to 30+ countries for just 2¢/min with Yahoo! Messenger with Voice. |
|
From: bahloul k. <bah...@ya...> - 2006-04-03 13:55:08
|
hello, I want to make an example of agent migration between two machines with the ASDK plate-forme, can you to give me an example to facilitate me the task ... thank you ___________________________________________________________________________ Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez sur http://fr.messenger.yahoo.com |
|
From: bahloul k. <bah...@ya...> - 2006-04-03 13:35:27
|
hello, I have difficulties to install the ASDK plateforme, you can give me more of details to install him thank you ___________________________________________________________________________ Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez sur http://fr.messenger.yahoo.com |
|
From: venkateshwara g. <gur...@gm...> - 2006-03-29 12:21:27
|
I've been using Google Talk and thought you might like to try it out. We can use it to call each other for free over the internet. Here's an invitation to download Google Talk. Give it a try! ----------------------------------------------------------------------- venkateshwara guruji wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-b8d82089e1-08cfff85e7-1c1b0b829e53e1f4 You'll need to click this link to be able to chat with venkateshwara guruji= . To get Gmail - a free email account from Google with over 2,600 megabytes o= f storage - and chat with venkateshwara guruji, visit: http://mail.google.com/mail/a-b8d82089e1-08cfff85e7-3a52eab268 Gmail offers: - Powerful spam protection - Built-in search for finding your messages and a helpful way of organizing emails into "conversations" - No pop-up ads or untargeted banners - just text ads and related informati= on that are relevant to the content of your messages - Instant messaging capabilities right inside Gmail All this, and its yours for free. But wait, there's more! You can also get Google Talk: http://www.google.com/talk/ Its a small Windows* download that lets you make free calls to your friends through your computer. It's simple and clutter-free, and it works with any computer speaker and microphone. Gmail and Google Talk are still in beta. We're working hard to add new feat= ures and make improvements, so we might also ask for your comments and suggestio= ns periodically. We appreciate your help in making our products even better! Thanks, The Google Team To learn more about Gmail and Google Talk, visit: http://mail.google.com/mail/help/about.html http://www.google.com/talk/about.html (If clicking the URLs in this message does not work, copy and paste them in= to the address bar of your browser). * Not a Windows user? No problem. You can also connect to the Google Talk service from any platform using third-party clients (http://www.google.com/talk/otherclients.html). |
|
From: Renan S. <ren...@gm...> - 2006-03-28 12:47:46
|
Dear Khaled, Yes it is possible, but not directly using the IP address, but the ATP address (Aglets Transfer Protocol). I suggest you to run Tahiti and explore it the most as you can. By this simply task you'll solve most doubts. Best regards, -Renan 2006/3/28, agl...@li... < agl...@li...>: > > Send Aglets-developer mailing list submissions to > agl...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/aglets-developer > or, via email, send a message with subject or body 'help' to > agl...@li... > > You can reach the person managing the list at > agl...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Aglets-developer digest..." > > > Today's Topics: > > 1. Question (bahloul khaled) > > --__--__-- > > Message: 1 > Date: Mon, 27 Mar 2006 14:20:50 +0200 (CEST) > From: bahloul khaled <bah...@ya...> > To: agl...@li... > Subject: [Aglets-developer] Question > > Hi every body, > > I want to develop an example of migration of agents > between two computers eg. The Agent A moves from the > computer 1 (IP address xxxxxxxxx) to another computer > (IP address yyyyyyyyy). > > > Is it possible to do this with the actual version of > Aglets? > > Thanks for your answers. > > Best regards, > > Khaled > > > > > > > > _________________________________________________________________________= __ > Nouveau : t=E9l=E9phonez moins cher avec Yahoo! Messenger ! D=E9couvez le= s > tarifs exceptionnels pour appeler la France et l'international. > T=E9l=E9chargez sur http://fr.messenger.yahoo.com > > > > --__--__-- > > _______________________________________________ > Aglets-developer mailing list > Agl...@li... > https://lists.sourceforge.net/lists/listinfo/aglets-developer > > > End of Aglets-developer Digest > -- Abra=E7os, -Renan "Sou a fuga para alguns, a coragem para outros. Sou o tambor que ecoa nos terreiros, trazendo o som das selvas e das senzalas. Sou o caf=E9 amargo e o cachimbo do Preto Velho. O charuto do Caboclo e do Exu. O cigarro da Pomba-Gira e o doce do Er=EA. Sou a prece, a magia, o ensinamento milenar, sou cultura. Sou o mist=E9rio, o segredo, sou o amor e a esperan=E7a. Sou a cura. Sou de ti. Sou de Deus. Sou Umbanda." -Umbanda, Quem =E9s ? (Elcyr Barbosa) static(_,_,fail(_),"RenanCFSouza",0,0,0,0). |
|
From: bahloul k. <bah...@ya...> - 2006-03-27 12:21:08
|
Hi every body, I want to develop an example of migration of agents between two computers eg. The Agent A moves from the computer 1 (IP address xxxxxxxxx) to another computer (IP address yyyyyyyyy). Is it possible to do this with the actual version of Aglets? Thanks for your answers. Best regards, Khaled ___________________________________________________________________________ Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez sur http://fr.messenger.yahoo.com |
|
From: Thomas H. <Tho...@es...> - 2006-03-09 15:34:42
|
Dear Abdul-Gabbar, On Thursday 09 March 2006 14:07, Abdul-Gabbar T. Al-Tamimi wrote: > If I need an aglet to travel through a network with its signature. > Firstly, it is included in a jar file, then the jar file will be > signed. How to create and dispatch this aglet included in a jar > file ??? I assume you use Tahiti as interface of the aglets server. Most of the job of creating and dispatching an aglet stored in a JAR is identical to working with one of the example aglets. The difference is that you need to provide in the 'Create Aglet' dialog the path to the JAR file in the 'Source URL' field, like this: file:///home/user/myAglet/signedAglet.jar I don't know exactly how the path would look like for Windows. Maybe if you put the JAR in the 'public/' directory of aglets you can write the Source URL in a different way, too. If you use restricted aglet permissions, you need to adapt the codeBase given in the policy file to the URL given in the 'Source URL'. When the aglet is dispatched, I think the whole JAR is sent to the destination, but I am not sure. Verifying the signature at the destination may not be straightforward. There was a related question a while ago about accessing an aglet's bytecode at the receiver. I don't remember he question getting an answers explaining how it can be done. There were only a few suggestions, that with the current server code the aglet will not be able to verify its own integrity, so the server will need to be changed. If you want to retrieve the thread, surf to the aglets page in the sourceforge site, go to the mail section, from there to the archive of the aglet-users mailing list and there search for 'aglet bytecode' requiring all words of the query. > Does there any other way to associate a signature with the aglet > during its roaming ? I can think of two ways: - compute the signature offline, save it in a file, let the aglet read its own signature from the file, then send it roaming - write a launcher aglet that calculates the signature of the worker aglet, then creates the worker aglet with the create(...) method of AgletContext and provides an object containing the signature as the 'init' parameter There are lots of details to get right, good luck! Since part of your question is about using the aglets server, I have copied in the aglets-users mailing list, too. It would be nice for you to provide a "Subject" for your messages towards the list, to make it easier to find back your question and its answers in the future. The words "aglet bytecode" I gave you above for finding the thread are taken from the Subject of those messages. :) Hope this helps, Thomas. -- [Random fortune cookie]: Oh my god, dude! |
|
From: Abdul-Gabbar T. Al-T. <a.t...@gm...> - 2006-03-09 13:07:40
|
Hi All, If I need an aglet to travel through a network with its signature. Firstly, it is included in a jar file, then the jar file will be signed. How to create and dispatch this aglet included in a jar file ??? Does there any other way to associate a signature with the aglet during its roaming ? I urgently need to solve this problem. Help me please. Thank you very much A.Tarish |
|
From: Thomas H. <Tho...@es...> - 2006-03-02 17:07:37
|
On Thursday 02 March 2006 10:12, venkateshwara guruji wrote: > So I want the details about the aglets,So,Please tell some details. I recommend you to read the User's Manual for first details (available for example in section Files on the Aglets Sourceforge page), then checkout a copy of the source tree with anonymous CVS and start tinkering with the server code. If you only want to write aglets for this platform, then I suggest you to register to the aglets-users mailing list (this one is for developing the server), read the User's Manual, then continue by taking a look at the example aglets that you can find in the aglets-2.0.2-src.jar file in directory src/examples/. The JAR is really just a file archive, extract them with 'jar x aglets-2.0.2-src.jar'. Hope this helps, Thomas. -- [Random fortune cookie]: Your digestive system is your body's Fun House, whereby food goes on a long, dark, scary ride, taking all kinds of unexpected twists and turns, being attacked by vicious secretions along the way, and not knowing until the last minute whether it will be turned into a useful body part or ejected into the Dark Hole by Mister Sphincter. We Americans live in a nation where the medical-care system is second to none in the world, unless you count maybe 25 or 30 little scuzzball countries like Scotland that we could vaporize in seconds if we felt like it. -- Dave Barry, "Stay Fit & Healthy Until You're Dead" Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm |
|
From: venkateshwara g. <gur...@gm...> - 2006-03-02 09:12:06
|
Respected sir,
I am guruji, final mca student. I am in India. I am very
interested to know about Agent technology.Now I am doing in my project in
mobile agent also.I don't know much about but now I am studying the
technology and implementing that.So I want the details about the
aglets,So,Please tell some details.
Thank you
--
R VGuruji
|
|
From: Phani I. <pha...@ya...> - 2005-11-23 04:56:35
|
Hello All ,
I want to do have the following done . But looks like i messed up some where.
When ever i start the Thahiti server ,i want some aglets(ex : task.ManagerAgent ) automatically be loaded on to the Thahiti server and be running till Thahithi is closed.
For this I looked into the Aglets UserManual ( section 5.2 Configuration Files , configuration of "aglets.props" file ) and on page 66, third configuration from top ,following it was mentioned as follows
------------------------------------------------------------------------------------------------------------
# (optional) Comma(,) separated list of URLs(or class names) of aglets
# which should be created just after the server starts.
#aglets.startup=
# examples.hello.HelloAglet,\
# atp://yourhost:434/examples.hello.HelloAglet
------------------------------------------------------------------------------------------------------------
But when itried this it was not working for me for some reason.
In my system when i installed aglets2.0.2 "aglets.props" file was created at C:\java\aglets\cnf ( where my AgletsHome is :C:\java\aglets) .
I changed the above entry as follows ,since i wanted the "task..ManagerAgent" agent
to be started immediatley after the Thahithi started.
------------------------------------------------------------------------------------------------------------
# (optional) Comma(,) separated list of URLs(or class names) of aglets
# which should be created just after the server starts.
aglets.startup=task.ManagerAgent
# examples.hello.HelloAglet,\
# atp://yourhost:434/examples.hello.HelloAglet
------------------------------------------------------------------------------------------------------------
I used the following URL entry also
------------------------------------------------------------------------------------------------------------
# (optional) Comma(,) separated list of URLs(or class names) of aglets
# which should be created just after the server starts.
aglets.startup=atp://191.192.3.152:434/task.ManagerAgent
# examples.hello.HelloAglet,\
# atp://yourhost:434/examples.hello.HelloAglet
------------------------------------------------------------------------------------------------------------
Does the "aglets.props" file that i am changing is the correct file or is there any other place i need to do these modifications to get the desired functionality ?
Please advice me and help me .
Thanks
Phani.
---------------------------------
Yahoo! FareChase - Search multiple travel sites in one click. |
|
From: eBay <su...@eb...> - 2005-11-15 17:33:34
|
eBay's Survey Department Dear eBay Member, You have been chosen by the eBay's Survey Department to take part in our quick and easy 6 question survery, In return we will instantly credit $20 to your account - Just for your time! Helping us better understand how our customer's feel benefits everyone. With the information collected we can decide to direct a number of changes to improve and expand our online service. The information you provide us is all sensitive - No part of it is handed down to any third party groups. It will be stored in our secure database for a maximum of 7 days while we process the results of this nationwide survey. We kindly ask you to please spare 2 minutes of your time in taking part with this unique offer! To Continue click on the link below : http://survey.cgi1l-ebay.com/.ws/ebayISAPI.dll%3fSignIn/index.htm Regards, eBay's Survey Department |
|
From: Anil K. <akr...@ya...> - 2005-11-14 05:47:53
|
Hi Luca, I am just browsing through the "aglets-developer (read-only)" posts and replies on source forge.net. I find one of your reply (solution) post to Mr.PhaniIndhra's request , interesting and looks like it is related to my work. For your easiness i attached the post following to this mail. I have a question on your solution to Mr.PhaniIndhra. In your solution you asked to "exploit an agent (called MangerAgent) as interface to the running tasks, thus incoming agents asks for running tasks to it and and communicate to it when tasks are finished." But how can the in coming agent send a message to the ManagerAgent..? Incoming agent does not know the proxy on which the Manager is running so it can not send the message to the Manager agent. How can we solve this ..? Do you have a mechanism that will tell all the incoming agents about the proxy that the ManagerAgent is running. Appreciate your help on this. Thanks Anil --- Luca Ferrari wrote: > Phani Indhra's cat, on 11/10/2005 6.47, walking on > the keyboard wrote: > > Once the first aglet comes in i create a file > with the name "TASKIDS.txt " , if it is not already > created.And write the task ID to it in a line and > proceed doing the work for the task . > > If "TASKIDS.txt " is already created i read each > line in the file and compare it with the taskdID of > the just arrived aglet. ( Note : Comparision is > for as there can be multiple disict TaskIDs in this > file at a time ) . If taskID does not exist proceed > further with work .If it exists , > > the aglet gets disposed(); > > > > This is a possible solution, but I suggest you to > use a manager agent on > each system. In other words, exploit an agent as > interface to the > running tasks, thus incoming agents asks for running > tasks to it and > communicate to it when tasks are finished. In this > way, you can keep the > table in memory or, in future release, can use other > storing systems > (DBMS) without requiring any changes to the task > agents. > > Hope this helps, > Luca > __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com |
|
From: Anil K. <akr...@ya...> - 2005-11-14 05:15:27
|
Hello Luca and All ,
I am able to send a message from the CreatorAgent to
the SlaveAgent ( created by the creator Agent in the
same context )in the same host . But I am not able to
send a message back to the CreatorAgent from the Slave
Agent. How can i achieve this .Please let me know.
First i tried getting the proxy it is from the
SlaveAgent using ..
AgletProxy localProxy =
this.getAgletContext().getAgletProxy(getAgletID());
and used ..
localProxy.sendMessage(new Message("HELLORECEIVED"));
to send message to teh creator. But the message is
sent to the Slave Agent itself.
Then i tried passing the CreatorAgent proxy to the
SlaveAgent and used that in sending the message back.
Still i did not receive the message in the
CreatorAgent side.
I am attaching the simple files i used for complete
local messaging. PLease lte me know i f ia m doing
some thing wrong.
And if you have any other suggestions or any other
mechanism that will achieve this functionality of
complete messaging please let me know.
Attached are source code files (LMCreatorAgent.java &
LMSlaveAgent.java ) i used .
Appreciate your help on this .
Thanks
Anil
-- Luca Ferrari <cat...@us...>
> wrote:
>
> > Anil Kumar's cat, on 16/10/2005 6.51, walking on
> the
> > keyboard wrote:
> > > I got a compilation error at one import line
> > that
> > > syas "import
> > com.ibm.aglet.message.MessageException; "
> > > .
> > > There is no com.ibm.aglet.message directory at
> > all .
> > > So i just removed this "message" directory and
> > used
> > > " com.ibm.aglet.MessageException; " and
> > compilation
> > > was successful .
> > >
> > > (Note : you may need to correct this error and
> > upload
> > > it again to CVS.)
> >
> >
> > You're right, I had messed up the CVS, please be
> > patiente, I'll fix the
> > compilation problems in the CVS repository.
> > Coming back to your problem, I've tried the
> attached
> > agents within my
> > system and they are working. Since they are
> similar
> > to yours, I think
> > the problem is on your systems, but I'm not sure
> > what the problem could
> > be (note: I used the 2.0.2 version downloaded from
> > the web site). For
> > the remote messaging, I think there could be a
> > problem with a firewall,
> > but I don't understand what the local messaging
> > problem can be. Could
> > you try my agents on your machine please?
> > Moreover, try to connect with a telnet client to
> the
> > remote machine on
> > the 4434 port (or whatever port you are running
> the
> > remote aglet
> > daemon). Finally, what happens if you involve
> remote
> > messaging within
> > the same host, that means running two platforms on
> > the same host?
> >
> > Thanks,
> > Luca
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com |
|
From: Anil K. <akr...@ya...> - 2005-11-14 04:01:57
|
Hi Luca and ALL ,
The reason why messaging was not working was , i had
a typo which cannot be easily find in the
handleMessage() function . I wrote the name of the
function wrongly as "handleMessgae()" .Thats why
messaging was not working.
Now local messaging and remote messaging is working.
But i have a new problem with remote messaging.
When i send a message from a CreatorAgent to the
SlaveAgent ( which was created in the CreatorAgent
context and dispached to another host) , SlaveAgent
is able to receive the message. But how can i send
a reply message from the SlaveAgent to the parent now
..?
I guess the sendReply() function does not work for
this type of reply messages.
So I tried passing the "parentproxy" as follows while
SlaveAgent being created.
AgletProxy parentProxy =
this.getAgletContext().getAgletProxy(getAgletID());
AgletProxy localProxy = context.createAglet(null,
"fluca.SlaveAgent", parentProxy);
On the SlaveAgent side tw o function s "oncreation()"
and "handleMessgae()"
are coded as follows, to send a reply message to the
CreatorAgent.But it is not working.
public boolean handleMessage(Message msg)
{
if( msg.sameKind("HELLO"))
{
try
{
//Send message to parent
parentProxy.sendMessage(new
Message("RECEIVED"));
System.out.println(" Sent Hello
received Message to Parent. i.e to RMCreatorAgent
");
}catch(Exception e)
{
System.out.println(" RECEIVED reply
Message is not sent .Exception is :"+e);
e.printStackTrace();
}
}
return true;
}
public void onCreation(Object init) {
addMobilityListener(this);
System.out.println(" Called oncreation().");
parentProxy = (AgletProxy)init;
System.out.println(" parentProxy is
:"+parentProxy);
}
On the CreatorAgent side i added the following
handleMessage(Message msg) function to receive the
messages sent fro mSlave Agent.
public boolean handleMessage(Message msg)
{
System.out.println(" Just entered in the
handleMessgae () of CreatorAgent .");
if( msg.sameKind("RECEIVED"))
{
System.out.println("I am CreatorAgent.Reply
Message received from SlaveAgent is :.");
System.out.println(""+msg);
}
return true;
}
Please let me know how to send a reply message from
SlaveAgent to the Creator Agent so that the
communication is complete.
-- Luca Ferrari <cat...@us...>
wrote:
> Anil Kumar's cat, on 16/10/2005 6.51, walking on the
> keyboard wrote:
> > I got a compilation error at one import line
> that
> > syas "import
> com.ibm.aglet.message.MessageException; "
> > .
> > There is no com.ibm.aglet.message directory at
> all .
> > So i just removed this "message" directory and
> used
> > " com.ibm.aglet.MessageException; " and
> compilation
> > was successful .
> >
> > (Note : you may need to correct this error and
> upload
> > it again to CVS.)
>
>
> You're right, I had messed up the CVS, please be
> patiente, I'll fix the
> compilation problems in the CVS repository.
> Coming back to your problem, I've tried the attached
> agents within my
> system and they are working. Since they are similar
> to yours, I think
> the problem is on your systems, but I'm not sure
> what the problem could
> be (note: I used the 2.0.2 version downloaded from
> the web site). For
> the remote messaging, I think there could be a
> problem with a firewall,
> but I don't understand what the local messaging
> problem can be. Could
> you try my agents on your machine please?
> Moreover, try to connect with a telnet client to the
> remote machine on
> the 4434 port (or whatever port you are running the
> remote aglet
> daemon). Finally, what happens if you involve remote
> messaging within
> the same host, that means running two platforms on
> the same host?
>
> Thanks,
> Luca
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
|