 | Level: Intermediate Nicholas Chase (ibmquestions@nicholaschase.com), Writer, Freelance
11 May 2007 You've heard the hype about Second Life®, and how it's becoming the
environment of choice for ... well ... everything, it seems. But work can't stop
just because you want to hang out. Fortunately, the IBM® Lotus® Sametime® Software
Development Kit (SDK) and Second Life scripting make it possible to combine the two.
This tutorial shows you how to create a Sametime bot that listens for conversations
in Second Life and relays them to your IBM Lotus Sametime Connect client or
vice-versa, making it possible to let people alert you when you're needed, but
you're not "in-world" as well as to be in-world without missing important
conversations.
In this tutorial
- Create a Sametime bot
- Communicate with Lotus Sametime from outside Lotus Sametime Connect
- Integrate a Sametime bot with a Java servlet
- Create basic Second Life scripts
- Speak and listen in Second Life
- Use HTTP requests with Second Life
- Create a PHP "proxy" to solve connectivity problems
 |
Take a peek at what you'll learn in this tutorial.
Show me.
Or, read the script.
|
|
Prerequisites
You should be familiar with general Java™
programming concepts. Familiarity with servlets and concepts such as threads
would also be helpful, but is not required. This tutorial assumes that you are
not necessarily familiar with programming in Linden Script Language, the
scripting language of Second Life.
System requirements
To complete the steps in this tutorial, you need to have the following tools
installed and/or available to you.
- Lotus Sametime V7.5: This tutorial doesn't require you to have your own
Sametime server available; you can use the
Sametime 7.5 Demo server.
You can, however, download a trial version of Lotus Sametime .
-
Lotus Sametime SDK V7.5:
This toolkit provides the necessary support classes and files for interacting
with Lotus Sametime from various environments. This tutorial uses the Lotus
Sametime Connect Java client JAR files.
-
Lotus Sametime Connect:
You need a Sametime client to communicate with the avatar in Second Life.
-
Second Life: You
can download the Second Life client for free after signing up for a free
account at http://www.secondlife.com.
(All steps in this tutorial were carried out with a free account.) See the
system requirements for Second Life.
Note that at the time of this writing, Microsoft® Windows® Vista support was
just coming online.
-
IBM
Rational Application Developer or another Eclipse-based IDE:
You develop a Java class and a Java servlet, so your life will be much easier
if you use a tool such as Rational Application Developer.
Animated demos
If this is your first encounter with a developerWorks tutorial
that includes demos, here are a few things you might want to know:
Demos are an optional way to see the same steps described in
the article. To see an animated demo, click the Show me link.
The demo opens in a new browser window.
Each demo contains
a navigation bar at the bottom of the screen. Use the navigation
bar to to pause, exit, rewind, or fast forward portions of the
demo. JavaScript must be enabled in your browser and Macromedia Flash
Player 6 or higher must be installed.
Duration
1 hour
Formats html, pdf, swf
|  | |  |