APIFinder
   The essential directory of application programming interfaces
Submit an API
DevX
Function
Language/OS
Contribute
About
Browse DevX
advertisement
Log In | Register
Build Your Own Messaging Application in Java with jYMSG
This new Java API provides you all the necessary functionality to build your own messaging application in conjunction with Yahoo's instant messaging and chat software. 
May 6, 2008

advertisement
Instant messaging represents a medium via which messaging partners can interact in a synchronous fashion. Correspondence can occur in a near "instant" manner. Chances are the majority of workgroups in your company rely on one of the "big four" instant messaging programs: AOL Instant Messenger, MSN Messenger, Lotus Sametime, or Yahoo! Instant Messenger. Yahoo! Instant Messenger in particular has accumulated a significant following because of its easy to use, rich graphical user interface. Facilities such as the ability to leave "offline" instant messages make Yahoo! Instant Messenger particularly attractive. If Yahoo turns out to be the instant messaging application that makes the most sense for you to use, then you'll certainly want to know about jYMSG.

YMSG (without the j) is the protocol used by Yahoo's instant messaging and chat software. jYMSG is a Java API that allows you to interact programmatically with Yahoo's messaging and chat services. For example, with jYMSG you can have an instant message sent to your system administrator from your J2EE application server when a critical error requiring attention occurs. Sending a Yahoo instant message via Java is made quite easy with jYMSG. This article shows you how to build a Swing-based application through which you can instant message your Yahoo messaging partners. Though it will not be as feature rich as the Yaoo! Instant Messenger client, you will get a good introduction to the power of jYMSG.

jYMSG is released under the GNU General Public License. It is a SourceForge.net project that has gained a significant following due to the ease of use of its API. However, it is not endorsed or supported by Yahoo! Inc. It abstracts the more complex underlying interaction with Yahoo's publicly released API.

jYMSG is written purely in Java and uses no native code. Consequently, you can use the API on basically any platform that supports Java.

Obtaining jYMSG
To begin, download the jYMSG API from SourceForge. Because of a change in the login protocol, you will need to download a patch packaged as a JAR file that will allow you to connect to Yahoo via the API. This patch JAR (ymsg_network_v0_51.jar) will need to replace the ymsg_network_v0_5.jar, which ships with the v0.5 download. This file as well as ymsg_support_v0_5.jar will need to be included in your runtime and Java build path.

Supported Features
The jYMSG API supports a slew of the Yahoo Instant Messenger protocol's offerings, some of which are outlined below:

  • Login/Logout
  • Fallback ports
  • Login timeouts
  • HTML/Socks proxy support
  • Groups and Friends list
  • Adding and removing friends
  • Ignore
  • Conferences
  • Chatrooms
  • Typing notification
  • File Transfer
  • New mail updates
This article showcases just some of the API offerings of jYMSG; a full list of capabilities is available on the project page. But this article should prepare you to venture out on your own, focusing, in particular, on jYMSG's messaging support.

Continue reading the article on DevX.com...

Glen Kunene is a Senior Editor for DevX.


Yahoo Instant Messenger Support for Java (jYMSG) API
The jYMSG API provides a way for Java applications to connect and use the Yahoo Instant Messenger protocol, version 10 (YMSG-10) in a reasonably coder friendly and abstract way. Although methods the API exposes are clearly matched to Yahoo IM features, the API attempts to hide as much of the nitty-gritty as possible.
Provider: Yahoo!   Cost: 0




JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Solutions
Whitepapers and eBooks
Microsoft Article: Will Hyper-V Make VMware This Decade's Netscape?
Microsoft Article: 7.0, Microsoft's Lucky Version?
Microsoft Article: Hyper-V--The Killer Feature in Windows Server 2008
Avaya Article: How to Feed Data into the Avaya Event Processor
Microsoft Article: Install What You Need with Windows Server 2008
HP eBook: Putting the Green into IT
Whitepaper: HP Integrated Citrix XenServer for HP ProLiant Servers
Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 1
Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 2--The Future of Concurrency
Avaya Article: Setting Up a SIP A/S Development Environment
IBM Article: How Cool Is Your Data Center?
Microsoft Article: Managing Virtual Machines with Microsoft System Center
HP eBook: Storage Networking , Part 1
Microsoft Article: Solving Data Center Complexity with Microsoft System Center Configuration Manager 2007
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Intel Video: Are Multi-core Processors Here to Stay?
On-Demand Webcast: Five Virtualization Trends to Watch
HP Video: Page Cost Calculator
Intel Video: APIs for Parallel Programming
HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
Microsoft Silverlight Video: Creating Fading Controls with Expression Design and Expression Blend 2
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Sun Download: Solaris 8 Migration Assistant
Sybase Download: SQL Anywhere Developer Edition
Red Gate Download: SQL Backup Pro and free DBA Best Practices eBook
Red Gate Download: SQL Compare Pro 6
Iron Speed Designer Application Generator
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
How-to-Article: Preparing for Hyper-Threading Technology and Dual Core Technology
eTouch PDF: Conquering the Tyranny of E-Mail and Word Processors
IBM Article: Collaborating in the High-Performance Workplace
HP Demo: StorageWorks EVA4400
Intel Featured Algorhythm: Intel Threading Building Blocks--The Pipeline Class
Microsoft How-to Article: Get Going with Silverlight and Windows Live
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES