<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Sutra ........</title>
	<atom:link href="http://softwaresutra.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://softwaresutra.wordpress.com</link>
	<description>Sutra&#039;s for life....</description>
	<lastBuildDate>Thu, 15 Oct 2009 05:43:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='softwaresutra.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Sutra ........</title>
		<link>http://softwaresutra.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://softwaresutra.wordpress.com/osd.xml" title="Sutra ........" />
	<atom:link rel='hub' href='http://softwaresutra.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Reading Experimental Result Code in Sun Diameter stack</title>
		<link>http://softwaresutra.wordpress.com/2009/10/15/reading-experimental-result-code-in-sun-diameter-stack/</link>
		<comments>http://softwaresutra.wordpress.com/2009/10/15/reading-experimental-result-code-in-sun-diameter-stack/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 05:43:03 +0000</pubDate>
		<dc:creator>softwaresutra</dc:creator>
				<category><![CDATA[How do I]]></category>
		<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[AVP]]></category>
		<category><![CDATA[Diameter]]></category>
		<category><![CDATA[Sun diameter]]></category>

		<guid isPermaLink="false">http://softwaresutra.wordpress.com/?p=147</guid>
		<description><![CDATA[Here is a code snippet that shows how to read AVP&#8217;s that any of the response API&#8217;s does not directly expose. In this case we see how to read Experimental Result Code AVP value. UserProfileConnection upc = hss.createConnection(); ReadProfileKey rpk = new ReadProfileKey(); rpk.addDataReference(DataReference.IMS_USER_STATE); rpk.addServiceIndicator("default_sp"); UserIdentity uID = new UserIdentity("sip:bob@open-ims.test", UserIdentityType.PUBLIC_USER_ID); rpk.setUserIdentity(uID); rpk.validate(); UserProfileReadResponse response [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=softwaresutra.wordpress.com&amp;blog=8990906&amp;post=147&amp;subd=softwaresutra&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here is a code snippet that shows how to read AVP&#8217;s that any of the response API&#8217;s does not directly expose.<br />
In this case we see how to read Experimental Result Code AVP value.</p>
<p><code><br />
  UserProfileConnection upc = hss.createConnection();<br />
            ReadProfileKey rpk = new ReadProfileKey();<br />
            rpk.addDataReference(DataReference.IMS_USER_STATE);<br />
            rpk.addServiceIndicator("default_sp");<br />
            UserIdentity uID = new UserIdentity("sip:bob@open-ims.test", UserIdentityType.PUBLIC_USER_ID);<br />
            rpk.setUserIdentity(uID);<br />
            rpk.validate();<br />
            UserProfileReadResponse response = upc.read(rpk, false);<br />
            if (response == null) {<br />
                throw new RuntimeException("response is null");<br />
            }<br />
            ProfileData data = ((UDResponse) response).getProfileData();</p>
<p>            if (data != null) {<br />
                System.out.println(count++ + ":" + new String(data.toBytes()));<br />
            }<br />
          ExperimentalResult result = (ExperimentalResult)response.getAVP(297);<br />
               System.out.println((result.getExperimentalResultCode()));</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/softwaresutra.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/softwaresutra.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/softwaresutra.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/softwaresutra.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/softwaresutra.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/softwaresutra.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/softwaresutra.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/softwaresutra.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/softwaresutra.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/softwaresutra.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/softwaresutra.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/softwaresutra.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/softwaresutra.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/softwaresutra.wordpress.com/147/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=softwaresutra.wordpress.com&amp;blog=8990906&amp;post=147&amp;subd=softwaresutra&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://softwaresutra.wordpress.com/2009/10/15/reading-experimental-result-code-in-sun-diameter-stack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bd612e65094f702475d84ad4e1578497?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">softwaresutra</media:title>
		</media:content>
	</item>
		<item>
		<title>Reset mysql root password in ubuntu</title>
		<link>http://softwaresutra.wordpress.com/2009/10/07/reset-mysql-root-password-in-ubuntu/</link>
		<comments>http://softwaresutra.wordpress.com/2009/10/07/reset-mysql-root-password-in-ubuntu/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 05:28:36 +0000</pubDate>
		<dc:creator>softwaresutra</dc:creator>
				<category><![CDATA[Information Technology]]></category>

		<guid isPermaLink="false">http://softwaresutra.wordpress.com/?p=134</guid>
		<description><![CDATA[Here is what I did to reset the root user password for mysql 5.0 on my ubuntu desktop. sudo dpkg-reconfigure mysql-server-5.0 This command  will pop up aUI which enables you to set a new password.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=softwaresutra.wordpress.com&amp;blog=8990906&amp;post=134&amp;subd=softwaresutra&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here is what I did to reset the root user password for mysql 5.0 on my ubuntu desktop.</p>
<p>sudo dpkg-reconfigure mysql-server-5.0</p>
<p>This command  will pop up aUI which enables you to set a new password.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/softwaresutra.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/softwaresutra.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/softwaresutra.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/softwaresutra.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/softwaresutra.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/softwaresutra.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/softwaresutra.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/softwaresutra.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/softwaresutra.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/softwaresutra.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/softwaresutra.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/softwaresutra.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/softwaresutra.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/softwaresutra.wordpress.com/134/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=softwaresutra.wordpress.com&amp;blog=8990906&amp;post=134&amp;subd=softwaresutra&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://softwaresutra.wordpress.com/2009/10/07/reset-mysql-root-password-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bd612e65094f702475d84ad4e1578497?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">softwaresutra</media:title>
		</media:content>
	</item>
		<item>
		<title>Difference between PUT and POST in HTTP</title>
		<link>http://softwaresutra.wordpress.com/2009/08/13/difference-between-put-and-post-in-http/</link>
		<comments>http://softwaresutra.wordpress.com/2009/08/13/difference-between-put-and-post-in-http/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 12:55:31 +0000</pubDate>
		<dc:creator>hra078</dc:creator>
				<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[HTTP]]></category>
		<category><![CDATA[REST]]></category>
		<category><![CDATA[WebServices]]></category>

		<guid isPermaLink="false">http://softwaresutra.wordpress.com/?p=3</guid>
		<description><![CDATA[An area of confusion in REST over HTTP is the difference between PUT and POST. PUT is used to create or replace a resource. URI in a PUT request identifies the entity enclosed with the request . POST is used to create a subordinate resource. The URI in a POST request identifies the resource that will [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=softwaresutra.wordpress.com&amp;blog=8990906&amp;post=3&amp;subd=softwaresutra&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>An area of confusion in REST over HTTP is the difference between PUT and POST.</p>
<p><a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.6">PUT</a> is used to create or replace a resource. URI in a PUT request identifies the entity enclosed with the request . <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.5">POST</a> is used to create a subordinate resource. The URI in a POST request identifies the resource that will handle the enclosed entity. Very often PUT is mapped to Update task of a <a href="http://en.wikipedia.org/wiki/Create,_read,_update_and_delete">CRUD</a> applications and POST is mapped to Create task . There are some caveats though as pointed <a href="http://www.infoq.com/news/2009/07/CRUDREST">here</a>.</p>
<ul>
<li>PUT requires a complete replacement</li>
<li>PUT can be used to Create a resource (when the URI is set by the client)</li>
<li>POST supports only the creation of a child resource.</li>
<li>POST supports partial updates.</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/softwaresutra.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/softwaresutra.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/softwaresutra.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/softwaresutra.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/softwaresutra.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/softwaresutra.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/softwaresutra.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/softwaresutra.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/softwaresutra.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/softwaresutra.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/softwaresutra.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/softwaresutra.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/softwaresutra.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/softwaresutra.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=softwaresutra.wordpress.com&amp;blog=8990906&amp;post=3&amp;subd=softwaresutra&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://softwaresutra.wordpress.com/2009/08/13/difference-between-put-and-post-in-http/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d56aa252754e4d47c7d7747d41e74110?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hra078</media:title>
		</media:content>
	</item>
		<item>
		<title>Diameter Online Charging(Ro) Javadocs available</title>
		<link>http://softwaresutra.wordpress.com/2009/07/28/diameter-online-chargingro-javadocs-available/</link>
		<comments>http://softwaresutra.wordpress.com/2009/07/28/diameter-online-chargingro-javadocs-available/#comments</comments>
		<pubDate>Tue, 28 Jul 2009 02:45:23 +0000</pubDate>
		<dc:creator>softwaresutra</dc:creator>
				<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[Diameter]]></category>
		<category><![CDATA[HSS]]></category>
		<category><![CDATA[Rf]]></category>
		<category><![CDATA[Ro]]></category>
		<category><![CDATA[Sh]]></category>

		<guid isPermaLink="false">http://softwaresutra.wordpress.com/2009/07/28/diameter-online-chargingro-javadocs-available/</guid>
		<description><![CDATA[Javadocs for Sun Diameter Online charging API&#8217;s are now available here.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=softwaresutra.wordpress.com&amp;blog=8990906&amp;post=11&amp;subd=softwaresutra&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Javadocs for Sun Diameter Online charging API&#8217;s are now available <A HREF="https://sailfin.dev.java.net/nonav/diameter/apidocs/index.html" NAME="here">here</A>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/softwaresutra.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/softwaresutra.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/softwaresutra.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/softwaresutra.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/softwaresutra.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/softwaresutra.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/softwaresutra.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/softwaresutra.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/softwaresutra.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/softwaresutra.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/softwaresutra.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/softwaresutra.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/softwaresutra.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/softwaresutra.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=softwaresutra.wordpress.com&amp;blog=8990906&amp;post=11&amp;subd=softwaresutra&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://softwaresutra.wordpress.com/2009/07/28/diameter-online-chargingro-javadocs-available/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bd612e65094f702475d84ad4e1578497?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">softwaresutra</media:title>
		</media:content>
	</item>
		<item>
		<title>Code Syntax highlighter</title>
		<link>http://softwaresutra.wordpress.com/2009/07/20/code-syntax-highlighter/</link>
		<comments>http://softwaresutra.wordpress.com/2009/07/20/code-syntax-highlighter/#comments</comments>
		<pubDate>Mon, 20 Jul 2009 04:10:31 +0000</pubDate>
		<dc:creator>softwaresutra</dc:creator>
				<category><![CDATA[Information Technology]]></category>

		<guid isPermaLink="false">http://softwaresutra.wordpress.com/2009/07/20/code-syntax-highlighter/</guid>
		<description><![CDATA[A nice set of scripts from http://code.google.com/p/syntaxhighlighter/ //Read User Profile information //Create a ReadProfile key identifying data to be read. ReadProfileKey rpk = new ReadProfileKey(); UserIdentity uID = new UserIdentity(&#8220;sip:bob@open-ims.test&#8221;, UserIdentityType.PUBLIC_USER_ID); rpk.addDataReference(DataReference.REPOSITORY_DATA); rpk.addServiceIndicator(&#8220;default_sp&#8221;); rpk.setUserIdentity(uID); //check if all the required information is present. rpk.validate(); //get profile data UserProfileReadResponse profileResponse = upc.read(rpk, false); //now read the information. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=softwaresutra.wordpress.com&amp;blog=8990906&amp;post=12&amp;subd=softwaresutra&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A nice set of scripts from http://code.google.com/p/syntaxhighlighter/</p>
<p>//Read User Profile information<br />
//Create a ReadProfile key identifying data to be read.<br />
ReadProfileKey rpk = new ReadProfileKey();<br />
UserIdentity uID = new UserIdentity(&#8220;sip:bob@open-ims.test&#8221;, UserIdentityType.PUBLIC_USER_ID);<br />
rpk.addDataReference(DataReference.REPOSITORY_DATA);<br />
rpk.addServiceIndicator(&#8220;default_sp&#8221;);<br />
rpk.setUserIdentity(uID);<br />
//check if all the required information is present.<br />
rpk.validate();<br />
//get profile data<br />
UserProfileReadResponse profileResponse = upc.read(rpk, false);<br />
//now read the information.<br />
ProfileData profileData = ((UDResponse) profileResponse).getProfileData();<br />
JAXBContext context = JAXBContext.newInstance(&#8220;com.sun.diameter.application.sh.userdata&#8221;);<br />
JAXBElement ob = (JAXBElement) context.createUnmarshaller().unmarshal(new ByteArrayInputStream(profileData.toBytes()));<br />
//UPDATE userpfofile information using setter methods provided on JAXB objects  and increment the sequence number&#8230;.<br />
TTransparentData transData = (TTransparentData) ((ob.getValue()).getRepositoryData()).get(0);<br />
transData.setSequenceNumber(transData.getSequenceNumber() + 1);<br />
//Prepare to update the HSS with modified user profile information<br />
UpdateKey upk = new UpdateKey();<br />
upk.addDataReference(DataReference.REPOSITORY_DATA);<br />
upk.setUserIdentity(uID);<br />
upk.setServiceIndicator(&#8220;default_sp&#8221;);<br />
JAXBSource jxsource = new JAXBSource(context, ob);<br />
//update the HSS<br />
UserProfileUpdateResponse response = upc.update(upk, jxsource, false);</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/softwaresutra.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/softwaresutra.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/softwaresutra.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/softwaresutra.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/softwaresutra.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/softwaresutra.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/softwaresutra.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/softwaresutra.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/softwaresutra.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/softwaresutra.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/softwaresutra.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/softwaresutra.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/softwaresutra.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/softwaresutra.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=softwaresutra.wordpress.com&amp;blog=8990906&amp;post=12&amp;subd=softwaresutra&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://softwaresutra.wordpress.com/2009/07/20/code-syntax-highlighter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bd612e65094f702475d84ad4e1578497?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">softwaresutra</media:title>
		</media:content>
	</item>
		<item>
		<title>Updating user profile information in HSS using Sailfin diameter Sh API.</title>
		<link>http://softwaresutra.wordpress.com/2009/07/16/updating-user-profile-information-in-hss-using-sailfin-diameter-sh-api/</link>
		<comments>http://softwaresutra.wordpress.com/2009/07/16/updating-user-profile-information-in-hss-using-sailfin-diameter-sh-api/#comments</comments>
		<pubDate>Thu, 16 Jul 2009 03:06:16 +0000</pubDate>
		<dc:creator>softwaresutra</dc:creator>
				<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[Diameter]]></category>
		<category><![CDATA[HSS]]></category>
		<category><![CDATA[Rf]]></category>
		<category><![CDATA[Ro]]></category>
		<category><![CDATA[Sh]]></category>

		<guid isPermaLink="false">http://softwaresutra.wordpress.com/2009/07/16/updating-user-profile-information-in-hss-using-sailfin-diameter-sh-api/</guid>
		<description><![CDATA[In the below code snippet we see how to read the user repository data from HSS,modify the data and update the HSS. Sh API makes this operation a breeze. OpenIMS HSS is one of the HSS server being used to test SH API&#8217;s. In simple steps : 1.Look up HSS server 2.Create ReadProfileKey with required [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=softwaresutra.wordpress.com&amp;blog=8990906&amp;post=13&amp;subd=softwaresutra&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><P STYLE="margin-bottom: 0in"><FONT SIZE="1">In the below code snippet we see how to read the user repository data from HSS,modify the data and update the HSS. Sh API makes this operation a breeze. OpenIMS HSS is one of the HSS server being used to test SH API&#8217;s.<br />
In simple steps :<br />
1.Look up HSS server<br />
2.Create ReadProfileKey with required information and validate it to ensure required information to construct a valid message is there.<br />
3.convert the retrieved profile data into JAXB objects<br />
4.Update the profile data using setter methods provided by JAXB<br />
5.Create a UpdateKey<br />
6.send out the modified information.<br />
</FONT></P><br />
Use ViewImage option to look @ the code snippet&#8230;<br />
<img src="http://blogs.sun.com/venu/resource/update_sh_data.jpg" alt="Update userprofile information" width="1090" />.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/softwaresutra.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/softwaresutra.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/softwaresutra.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/softwaresutra.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/softwaresutra.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/softwaresutra.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/softwaresutra.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/softwaresutra.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/softwaresutra.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/softwaresutra.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/softwaresutra.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/softwaresutra.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/softwaresutra.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/softwaresutra.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=softwaresutra.wordpress.com&amp;blog=8990906&amp;post=13&amp;subd=softwaresutra&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://softwaresutra.wordpress.com/2009/07/16/updating-user-profile-information-in-hss-using-sailfin-diameter-sh-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bd612e65094f702475d84ad4e1578497?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">softwaresutra</media:title>
		</media:content>

		<media:content url="http://blogs.sun.com/venu/resource/update_sh_data.jpg" medium="image">
			<media:title type="html">Update userprofile information</media:title>
		</media:content>
	</item>
		<item>
		<title>Quick look @ Online Charging in Sailfin Communication server</title>
		<link>http://softwaresutra.wordpress.com/2009/07/15/quick-look-online-charging-in-sailfin-communication-server/</link>
		<comments>http://softwaresutra.wordpress.com/2009/07/15/quick-look-online-charging-in-sailfin-communication-server/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 10:11:03 +0000</pubDate>
		<dc:creator>softwaresutra</dc:creator>
				<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[Diameter]]></category>
		<category><![CDATA[HSS]]></category>
		<category><![CDATA[Rf]]></category>
		<category><![CDATA[Ro]]></category>
		<category><![CDATA[Sh]]></category>

		<guid isPermaLink="false">http://softwaresutra.wordpress.com/2009/07/15/quick-look-online-charging-in-sailfin-communication-server/</guid>
		<description><![CDATA[Wrapping up development on Online and Offline charging API in Sailfin communication server. Here is a sample that shows a charging client accessing Ericsson Charging Server. PartOne: Initial Request in Session based online charging. View image to look at the source. PartTwo: Update and Terminate Request in Session based online charging. The below code snippet [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=softwaresutra.wordpress.com&amp;blog=8990906&amp;post=14&amp;subd=softwaresutra&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><P STYLE="margin-bottom: 0in"><FONT SIZE="1">Wrapping up development on Online and Offline charging API in Sailfin communication server. Here is a sample that shows a charging client accessing Ericsson Charging Server.</FONT></P><br />
<FONT SIZE="2"><U><B>PartOne: Initial Request in Session based online charging.</B></U></FONT><br />
View image to look at the source.<br />
<img src="http://blogs.sun.com/venu/resource/charging_code_one.jpg" alt="Session Charging" width="1090" /><br />
<FONT SIZE="2"><U><B>PartTwo: Update and Terminate Request in Session based online charging.</B></U></FONT><br />
<FONT SIZE="1">The below code snippet shows how to update a charging session and terminate one. The code snippet has comments to help you understand the code.<br />
</FONT><br />
<img src="http://blogs.sun.com/venu/resource/update_terminate.jpg" alt="Updating and terminating charging session" width="1090" />. <br />
<FONT SIZE="2"><br />
<U><B>Highlights of Diameter support in Sailfin </B></U><br />
1.Easy to use API , interfaces provided for AVP&#8217;s defined in 3GPP specs and RFC&#8217;s<br />
2.Easy to query additional AVP&#8217;s  in a Grouped AVP.<br />
3.Easy to add new AVP support using dictionary or annotations.<br />
4.Ability to send messages in a synchronous or asynchronous manner(Listener support to receive asynchronous responses)<br />
5.Interfaces defined to build messages as per 3GPP specifications.<br />
6.Easy to build custom messages as shown in the code snippet.<br />
7.Diameter Resource adapter.<br />
8.Sailfin Admin console and Admin GUI support for local/remote configuration<br />
9.TLS support.<br />
more later&#8230;.<br />
</FONT><br />
<FONT SIZE="2"> If you have questions write to dev@sailfin.dev.java.net.</FONT></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/softwaresutra.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/softwaresutra.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/softwaresutra.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/softwaresutra.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/softwaresutra.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/softwaresutra.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/softwaresutra.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/softwaresutra.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/softwaresutra.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/softwaresutra.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/softwaresutra.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/softwaresutra.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/softwaresutra.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/softwaresutra.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=softwaresutra.wordpress.com&amp;blog=8990906&amp;post=14&amp;subd=softwaresutra&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://softwaresutra.wordpress.com/2009/07/15/quick-look-online-charging-in-sailfin-communication-server/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bd612e65094f702475d84ad4e1578497?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">softwaresutra</media:title>
		</media:content>

		<media:content url="http://blogs.sun.com/venu/resource/charging_code_one.jpg" medium="image">
			<media:title type="html">Session Charging</media:title>
		</media:content>

		<media:content url="http://blogs.sun.com/venu/resource/update_terminate.jpg" medium="image">
			<media:title type="html">Updating and terminating charging session</media:title>
		</media:content>
	</item>
		<item>
		<title>Code Generation API</title>
		<link>http://softwaresutra.wordpress.com/2009/06/24/code-generation-api/</link>
		<comments>http://softwaresutra.wordpress.com/2009/06/24/code-generation-api/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 23:22:00 +0000</pubDate>
		<dc:creator>softwaresutra</dc:creator>
				<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[Diameter]]></category>
		<category><![CDATA[HSS]]></category>
		<category><![CDATA[Rf]]></category>
		<category><![CDATA[Ro]]></category>
		<category><![CDATA[Sh]]></category>

		<guid isPermaLink="false">http://softwaresutra.wordpress.com/2009/06/24/code-generation-api/</guid>
		<description><![CDATA[While I was looking at tools to generate code, I found Codemodel[codemodel.dev.java.net] to be a pretty good one. It is used by JAXB and by quite a number of internal projects within SUN. If you are not looking for a template based approach for generating JAVA code[as in http://apt-jelly.sourceforge.net/] I strongly recommend using Codemodel, nice [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=softwaresutra.wordpress.com&amp;blog=8990906&amp;post=15&amp;subd=softwaresutra&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>While I was looking at tools to generate code, I found Codemodel[codemodel.dev.java.net] to be a pretty good one. It is used by JAXB and by quite a number of internal projects within SUN. If you are not looking for a template based approach for generating JAVA code[as in http://apt-jelly.sourceforge.net/] I strongly recommend using Codemodel, nice thing I found in Codemodel is that generated code is nicely formatted <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> , it was a onestop solution for me.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/softwaresutra.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/softwaresutra.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/softwaresutra.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/softwaresutra.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/softwaresutra.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/softwaresutra.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/softwaresutra.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/softwaresutra.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/softwaresutra.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/softwaresutra.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/softwaresutra.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/softwaresutra.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/softwaresutra.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/softwaresutra.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=softwaresutra.wordpress.com&amp;blog=8990906&amp;post=15&amp;subd=softwaresutra&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://softwaresutra.wordpress.com/2009/06/24/code-generation-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bd612e65094f702475d84ad4e1578497?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">softwaresutra</media:title>
		</media:content>
	</item>
		<item>
		<title>Annotations and AVP code generation tool</title>
		<link>http://softwaresutra.wordpress.com/2009/05/28/annotations-and-avp-code-generation-tool/</link>
		<comments>http://softwaresutra.wordpress.com/2009/05/28/annotations-and-avp-code-generation-tool/#comments</comments>
		<pubDate>Thu, 28 May 2009 23:00:51 +0000</pubDate>
		<dc:creator>softwaresutra</dc:creator>
				<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[Diameter]]></category>
		<category><![CDATA[HSS]]></category>
		<category><![CDATA[Rf]]></category>
		<category><![CDATA[Ro]]></category>
		<category><![CDATA[Sh]]></category>

		<guid isPermaLink="false">http://softwaresutra.wordpress.com/2009/05/28/annotations-and-avp-code-generation-tool/</guid>
		<description><![CDATA[As we progressed through adding features to diameter module in sailfin, we felt the need to speed up the process of adding new application support into Diameter base protocol. Inorder to enable this we added few annotations and came up with a tool that uses metadata from the dictionary to generate the huge number of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=softwaresutra.wordpress.com&amp;blog=8990906&amp;post=16&amp;subd=softwaresutra&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>As we progressed through adding features to diameter module in sailfin, we felt the need to speed up the process of adding new application support into Diameter base protocol. Inorder to enable this we added few annotations and came up with a tool that uses metadata from the dictionary to generate the huge number of AVP&#8217;s the 3GPP specs define.<br />
Hoping to improve the tool as we progress&#8230;. Will publish the updated  API&#8217;s and Annotations soon&#8230;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/softwaresutra.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/softwaresutra.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/softwaresutra.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/softwaresutra.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/softwaresutra.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/softwaresutra.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/softwaresutra.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/softwaresutra.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/softwaresutra.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/softwaresutra.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/softwaresutra.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/softwaresutra.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/softwaresutra.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/softwaresutra.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=softwaresutra.wordpress.com&amp;blog=8990906&amp;post=16&amp;subd=softwaresutra&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://softwaresutra.wordpress.com/2009/05/28/annotations-and-avp-code-generation-tool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bd612e65094f702475d84ad4e1578497?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">softwaresutra</media:title>
		</media:content>
	</item>
		<item>
		<title>Support for Diameter Sh API in sailfin</title>
		<link>http://softwaresutra.wordpress.com/2009/04/13/support-for-diameter-sh-api-in-sailfin/</link>
		<comments>http://softwaresutra.wordpress.com/2009/04/13/support-for-diameter-sh-api-in-sailfin/#comments</comments>
		<pubDate>Mon, 13 Apr 2009 22:00:30 +0000</pubDate>
		<dc:creator>softwaresutra</dc:creator>
				<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[Diameter]]></category>
		<category><![CDATA[HSS]]></category>
		<category><![CDATA[Rf]]></category>
		<category><![CDATA[Ro]]></category>
		<category><![CDATA[Sh]]></category>

		<guid isPermaLink="false">http://softwaresutra.wordpress.com/2009/04/13/support-for-diameter-sh-api-in-sailfin/</guid>
		<description><![CDATA[Sailfin project will soon support Diameter protocol and will have API&#8217;s to enable applications to use Sh,Ro,Rf functionality. As we progress towards providing Diameter support in Sailfin, we have released Sh API&#8217;s to solicit your valuable feedback. In course of time we will publish API&#8217;s for Ro and Rf applications too. Javadocs for Sh API [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=softwaresutra.wordpress.com&amp;blog=8990906&amp;post=17&amp;subd=softwaresutra&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><font face="Courier New">Sailfin project will soon support Diameter protocol and will have API&#8217;s to enable applications to use Sh,Ro,Rf functionality. As we progress towards providing Diameter support in Sailfin, we have released Sh API&#8217;s to solicit your valuable feedback. In course of time we will publish API&#8217;s for Ro and Rf applications too.<br />
<a href="https://sailfin.dev.java.net/nonav/diameter/apidocs/index.html">Javadocs</a>  for Sh API is published <a href="https://sailfin.dev.java.net/nonav/diameter/apidocs/index.html">here</a>. I will keep writing here on Sh API&#8217;, to start with let us quickly look at a simple sample  on how to use Sh API in a SIP Servlet.</p>
<table style="text-align:left;background-color:rgb(204,204,255);width:100%;" cellpadding="2" cellspacing="2">
<tbody>
<tr>
<td>
public class RegisterServlet extends SipServlet {<br />
&nbsp;&nbsp;&nbsp;&nbsp;    protected void doInvite(SipServletRequest req) throws ServletException, IOException {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;         ProfileData data = readUserState(req.getSubscriberURI().toString());<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;         SipServletResponse resp = req.createResponse(180);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;         req.setExpires(2000000);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;         resp.send();<br />
&nbsp;&nbsp;&nbsp;&nbsp;  }<br />
&nbsp;&nbsp;&nbsp;&nbsp;   private ProfileData readUserState(String user) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;           try {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;             InitialContext context = new InitialContext();<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;          //configuration of HSS server is configured using Sailfin Admin UI.<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;             UserProfileServer connectionFactory = (UserProfileServer) context.lookup(&#8220;eis/SH&#8221;);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;             UserProfileConnection connection = connectionFactory.createConnection();<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;          // Configure Key specifying information to read.<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;            ReadProfileKey rpk = new ReadProfileKey();<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;            rpk.addDataReference(DataReference.IMS_USER_STATE);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;           eg:&#8221;sip:bob@open-ims.test&#8221;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;            UserIdentity uID = new UserIdentity(user, UserIdentityType.PUBLIC_USER_ID);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;            rpk.setUserIdentity(uID);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;            //validate if the constructed key is correct and all information needed is provided.<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;           rpk.validate();<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;            //perform a read operation from HSS server in synchronous mode.<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;           UserProfileReadResponse urr = connection.read(rpk, false);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;            ProfileData data = urr.getProfileData();<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;            //read the information as bytes,XMLStream or JAXBObject<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;            System.out.println(&#8220;User Profile data is&#8221; + new String(data.toBytes()));<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;            return data;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;        } catch (KeyValidationException ex) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;            Logger.getLogger(RegisterServlet.class.getName()).log(Level.SEVERE, null, ex);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;        } catch (ConnectException ex) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;            Logger.getLogger(RegisterServlet.class.getName()).log(Level.SEVERE, null, ex);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;        } catch (NamingException ex) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;              Logger.getLogger(RegisterServlet.class.getName()).log(Level.SEVERE, null, ex);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;        }<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;        return null;<br />
}<br />
}
</td>
</tr>
</tbody>
</table>
<p>We encourage users to look at <a href="https://sailfin.dev.java.net/nonav/diameter/apidocs/index.html">Javadocs</a> and provide us feedback. Please write to us at dev@sailfin.dev.java.net</font></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/softwaresutra.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/softwaresutra.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/softwaresutra.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/softwaresutra.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/softwaresutra.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/softwaresutra.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/softwaresutra.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/softwaresutra.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/softwaresutra.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/softwaresutra.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/softwaresutra.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/softwaresutra.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/softwaresutra.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/softwaresutra.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=softwaresutra.wordpress.com&amp;blog=8990906&amp;post=17&amp;subd=softwaresutra&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://softwaresutra.wordpress.com/2009/04/13/support-for-diameter-sh-api-in-sailfin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bd612e65094f702475d84ad4e1578497?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">softwaresutra</media:title>
		</media:content>
	</item>
	</channel>
</rss>
