Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Aglet code example.

  1. #1
    Junior Member
    Join Date
    Dec 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Aglet code example.

    Hello, developers. Can someone help me with a code sample of an aglet dispatched from a local Tahiti server to a remote Tahiti server here a stationary aglet is running. The dispatched aglet sends a message to the stationary aglet (e.g "Hello") containing a string "all is well". The aglet should dispose of itself when a message containing the string "Message Received" is sent from the stationary aglet. Otherwise it should do nothing.

    It is assumed that the aglet is dispatched using the Tahiti dispatch button. No "master" aglet required.

    Thanks.


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,312
    My Mood
    Mellow
    Thanks
    194
    Thanked 669 Times in 656 Posts

    Default Re: Aglet code example.

    Hmmm. What's your definition of aglet?

  3. #3
    Junior Member
    Join Date
    Dec 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Aglet code example.

    An Aglet, also known as "Agile Applet", is a small application program or applet with the capability to serve as a mobile agent of services in a computer network. Below is an example of a "hello world" aglet code.

    import com.ibm.aglet.*;
    import com.ibm.aglet.event.*;
    public class HelloWorld extends Aglet {
    public void onCreation(Object init) {
    setText("Hello World.");
    }
    }

  4. #4
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,312
    My Mood
    Mellow
    Thanks
    194
    Thanked 669 Times in 656 Posts

    Default Re: Aglet code example.

    It seems to be a dead project, or at best in a coma on life support since 2004. I've never heard/seen the technology mentioned before, but there's a lot I don't know and haven't heard or seen.

    Good luck.

Similar Threads

  1. Replies: 3
    Last Post: April 27th, 2013, 07:19 AM
  2. Replies: 4
    Last Post: January 24th, 2013, 10:20 AM
  3. Replies: 7
    Last Post: January 24th, 2013, 09:41 AM
  4. Replies: 5
    Last Post: November 14th, 2012, 09:47 AM
  5. Replies: 3
    Last Post: September 3rd, 2012, 11:36 AM