<?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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Ijaz ahmed's Weblog</title>
	<atom:link href="http://ijaxahmed.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ijaxahmed.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Mon, 04 May 2009 16:40:59 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='ijaxahmed.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/a652176f89145cdd940c621c976f1ec1?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Ijaz ahmed's Weblog</title>
		<link>http://ijaxahmed.wordpress.com</link>
	</image>
			<item>
		<title>Adding Axis1.* to running project</title>
		<link>http://ijaxahmed.wordpress.com/2009/04/27/adding-axis1-to-running-project/</link>
		<comments>http://ijaxahmed.wordpress.com/2009/04/27/adding-axis1-to-running-project/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 14:07:25 +0000</pubDate>
		<dc:creator>Ijaz Ahmed</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ijaxahmed.wordpress.com/?p=27</guid>
		<description><![CDATA[I had gone through lost of taturial about how to configure axis1 or axis2 then add your projetcs to Axisp.but there is no taturial that tells about &#8220;how to add Axis1 into running projetc&#8221; instead of adding projetc to Axis..so i have made this short taturial for it..its v simple
Simply follow these smal steps..
1-Downlaod Axis1.* [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ijaxahmed.wordpress.com&blog=4198829&post=27&subd=ijaxahmed&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I had gone through lost of taturial about how to configure axis1 or axis2 then add your projetcs to Axisp.but there is no taturial that tells about &#8220;how to add Axis1 into running projetc&#8221; instead of adding projetc to Axis..so i have made this short taturial for it..its v simple</p>
<p>Simply follow these smal steps..</p>
<p>1-Downlaod Axis1.*  and put somewhere in your computer.</p>
<p>2-copy all jar files from Axis lib folder  to your application lib folder(fir example in my case its HOMEPATH/axis-1_4\lib, the real Path is     D:\axis-1_4\lib)</p>
<p>3-copy All servcila mappings from web.xml of Axis1.4(D:\axis-1_4\webapps\axis\WEB-INF\web.xl) to your projetc web.xml</p>
<p>4-set Folwing path in your seysetn Enviorment Veriables.</p>
<p>AXIS_HOME=D:\axis-1_4</p>
<p>AXIS_LIB=%AXIS_HOME%\lib</p>
<p>AXISCLASSPATH=%AXIS_LIB%\axis.jar;%AXIS_LIB%\commons-discovery-0.2.jar;%AXIS_LIB%\commons-logging-1.0.4.jar;%AXIS_LIB%\jaxrpc.jar;%AXIS_LIB%\saaj.jar;%AXIS_LIB%\log4j-1.2.8.jar;%AXIS_LIB%\xml-apis.jar;%AXIS_LIB%\xercesImpl.jar</p>
<p>5-Then Simple open command prompt and us any of follwing command to depoly the web servcie</p>
<p> </p>
<p>java -cp %AXISCLASSPATH% org.apache.axis.client.AdminClient -1http://localhost:8081/HyperCupSample/servlet/AxisServlet deploy.wsdd</p>
<p>or</p>
<p>D:\axis-1_4\lib&gt;java -cp activation.jar:axis-ant.jar:axis.jar:axis-schema.jar:commons-discovery-0.2.jar:commons-logging-1.0.4.jar:jaxrpc.jar:log4j-1.2.8.jar:saaj.jar:wsdl4j-1.5.1.jar:. org.apache.axis.client.AdminClient -1http://localhost:8080/HyperCupSample/servlet/AxisServlet deploy.wsdd</p>
<p> </p>
<p>Enjoyyyyyyyyyyyyyy!!!!</p>
<p>if you find some problem then simply email me and if your like this short taturail then please comment something.thanks</p>
<div></div>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ijaxahmed.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ijaxahmed.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ijaxahmed.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ijaxahmed.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ijaxahmed.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ijaxahmed.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ijaxahmed.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ijaxahmed.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ijaxahmed.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ijaxahmed.wordpress.com/27/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ijaxahmed.wordpress.com&blog=4198829&post=27&subd=ijaxahmed&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ijaxahmed.wordpress.com/2009/04/27/adding-axis1-to-running-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/21f105e095863a9637636d6c07eea276?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ijaxahmed</media:title>
		</media:content>
	</item>
		<item>
		<title>Javascript calendar</title>
		<link>http://ijaxahmed.wordpress.com/2008/09/17/javascript-calendar/</link>
		<comments>http://ijaxahmed.wordpress.com/2008/09/17/javascript-calendar/#comments</comments>
		<pubDate>Wed, 17 Sep 2008 07:43:10 +0000</pubDate>
		<dc:creator>Ijaz Ahmed</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ijaxahmed.wordpress.com/?p=23</guid>
		<description><![CDATA[i have used this javascript calendare on my web pag..its good
check this link to follow
http://ui.jquery.com/repository/latest/demos/functional/#ui.datepicker
http://docs.jquery.com/UI/Datepicker
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ijaxahmed.wordpress.com&blog=4198829&post=23&subd=ijaxahmed&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>i have used this javascript calendare on my web pag..its good</p>
<p>check this link to follow</p>
<p>http://ui.jquery.com/repository/latest/demos/functional/#ui.datepicker</p>
<p>http://docs.jquery.com/UI/Datepicker</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ijaxahmed.wordpress.com/23/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ijaxahmed.wordpress.com/23/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ijaxahmed.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ijaxahmed.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ijaxahmed.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ijaxahmed.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ijaxahmed.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ijaxahmed.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ijaxahmed.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ijaxahmed.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ijaxahmed.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ijaxahmed.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ijaxahmed.wordpress.com&blog=4198829&post=23&subd=ijaxahmed&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ijaxahmed.wordpress.com/2008/09/17/javascript-calendar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/21f105e095863a9637636d6c07eea276?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ijaxahmed</media:title>
		</media:content>
	</item>
		<item>
		<title>Get Path Where A Class Is Located -java</title>
		<link>http://ijaxahmed.wordpress.com/2008/09/02/get-path-where-a-class-is-located-java/</link>
		<comments>http://ijaxahmed.wordpress.com/2008/09/02/get-path-where-a-class-is-located-java/#comments</comments>
		<pubDate>Tue, 02 Sep 2008 10:35:13 +0000</pubDate>
		<dc:creator>Ijaz Ahmed</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ijaxahmed.wordpress.com/?p=19</guid>
		<description><![CDATA[if you want to get path where calss is located ..here is code
URL url =getClass().getProtectionDomain().getCodeSource().getLocation();
hop its helpfull
write here if you feel its helpful
cherrrrrrrrrrzzzzzzzzzzzzz
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ijaxahmed.wordpress.com&blog=4198829&post=19&subd=ijaxahmed&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>if you want to get path where calss is located ..here is code</p>
<p>URL url =getClass().getProtectionDomain().getCodeSource().getLocation();</p>
<p>hop its helpfull</p>
<p>write here if you feel its helpful</p>
<p>cherrrrrrrrrrzzzzzzzzzzzzz</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ijaxahmed.wordpress.com/19/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ijaxahmed.wordpress.com/19/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ijaxahmed.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ijaxahmed.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ijaxahmed.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ijaxahmed.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ijaxahmed.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ijaxahmed.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ijaxahmed.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ijaxahmed.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ijaxahmed.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ijaxahmed.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ijaxahmed.wordpress.com&blog=4198829&post=19&subd=ijaxahmed&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ijaxahmed.wordpress.com/2008/09/02/get-path-where-a-class-is-located-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/21f105e095863a9637636d6c07eea276?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ijaxahmed</media:title>
		</media:content>
	</item>
		<item>
		<title>Add Env variable in web application using web.xml</title>
		<link>http://ijaxahmed.wordpress.com/2008/09/02/add-env-variable-in-web-application-using-webxml/</link>
		<comments>http://ijaxahmed.wordpress.com/2008/09/02/add-env-variable-in-web-application-using-webxml/#comments</comments>
		<pubDate>Tue, 02 Sep 2008 10:33:04 +0000</pubDate>
		<dc:creator>Ijaz Ahmed</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ijaxahmed.wordpress.com/?p=17</guid>
		<description><![CDATA[How to add veriable/enviorment variabls in web application.these are the variable you can access anywhere in project
here is solution
addfollwing tag to web xm&#8230;and given values of your own choics
&#60;env-entry&#62;
    &#60;env-entry-name&#62;webmasterEmail&#60;/env-entry-name&#62;
    &#60;env-entry-value&#62;admin@domain.com&#60;/env-entry-value&#62;
    &#60;env-entry-type&#62;java.lang.String&#60;/env-entry-type&#62;
&#60;/env-entry&#62;

you can access in a code by this

// Get a handle to the JNDI environment naming context
Context env = (Context)new InitialContext().lookup("java:comp/env");
// Get a single value
String webmasterEmail = (String)env.lookup("webmasterEmail");

thats It ...enjoyyyyyyyy

here is the helping uRL
http://wiki.metawerx.net/wiki/Web.xml.EnvEntry

comment here [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ijaxahmed.wordpress.com&blog=4198829&post=17&subd=ijaxahmed&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>How to add veriable/enviorment variabls in web application.these are the variable you can access anywhere in project</p>
<p>here is solution</p>
<p>addfollwing tag to web xm&#8230;and given values of your own choics</p>
<pre>&lt;env-entry&gt;
    &lt;env-entry-name&gt;webmasterEmail&lt;/env-entry-name&gt;
    &lt;env-entry-value&gt;admin@domain.com&lt;/env-entry-value&gt;
    &lt;env-entry-type&gt;java.lang.String&lt;/env-entry-type&gt;
&lt;/env-entry&gt;

you can access in a code by this
<code>
<span style="color:#3f7f5f;">// Get a handle to the JNDI environment naming context</span>
<span style="color:#000000;">Context env = </span><span style="color:#000000;">(</span><span style="color:#000000;">Context</span><span style="color:#000000;">)</span><span style="color:#7f0055;"><strong>new </strong></span><span style="color:#000000;">InitialContext</span><span style="color:#000000;">()</span><span style="color:#000000;">.lookup</span><span style="color:#000000;">(</span><span style="color:#2a00ff;">"java:comp/env"</span><span style="color:#000000;">)</span><span style="color:#000000;">;</span>
<span style="color:#3f7f5f;">// Get a single value</span>
<span style="color:#000000;">String webmasterEmail = </span><span style="color:#000000;">(</span><span style="color:#000000;">String</span><span style="color:#000000;">)</span><span style="color:#000000;">env.lookup</span><span style="color:#000000;">(</span><span style="color:#2a00ff;">"webmasterEmail"</span><span style="color:#000000;">)</span><span style="color:#000000;">;</span></code>

thats It ...enjoyyyyyyyy

here is the helping uRL
http://wiki.metawerx.net/wiki/Web.xml.EnvEntry

comment here if it is useful for you <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </pre>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ijaxahmed.wordpress.com/17/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ijaxahmed.wordpress.com/17/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ijaxahmed.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ijaxahmed.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ijaxahmed.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ijaxahmed.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ijaxahmed.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ijaxahmed.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ijaxahmed.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ijaxahmed.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ijaxahmed.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ijaxahmed.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ijaxahmed.wordpress.com&blog=4198829&post=17&subd=ijaxahmed&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ijaxahmed.wordpress.com/2008/09/02/add-env-variable-in-web-application-using-webxml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/21f105e095863a9637636d6c07eea276?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ijaxahmed</media:title>
		</media:content>
	</item>
		<item>
		<title>get Server Context Path</title>
		<link>http://ijaxahmed.wordpress.com/2008/09/01/get-server-context-path/</link>
		<comments>http://ijaxahmed.wordpress.com/2008/09/01/get-server-context-path/#comments</comments>
		<pubDate>Mon, 01 Sep 2008 13:05:03 +0000</pubDate>
		<dc:creator>Ijaz Ahmed</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ijaxahmed.wordpress.com/?p=15</guid>
		<description><![CDATA[Q:how take server(tomcat, Jboss)context  path for any work e:g file upload.
A:here is the solution
make a class of any name and implements ServletContextListener(its servlet calss)
write body of contextInitialized(ServletContextEvent event)  method
like this
public void contextInitialized(ServletContextEvent event) {
yourUtilitiesClass.FILES_PATH = event.getServletContext().getRealPath(”&#8221;) + File.separator + “files” + File.separator;
yourUtilitiesClass.IMAGES_FILES_PATH = event.getServletContext().getRealPath(”&#8221;) + File.separator + “images” + File.separator;
yourUtilitiesClass.MY_RATES_XML_PATH = event.getServletContext().getRealPath(”&#8221;) + [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ijaxahmed.wordpress.com&blog=4198829&post=15&subd=ijaxahmed&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Q:how take server(tomcat, Jboss)context  path for any work e:g file upload.</p>
<p>A:here is the solution<br />
make a class of any name and implements ServletContextListener(its servlet calss)</p>
<p>write body of contextInitialized(ServletContextEvent event)  method</p>
<p>like this</p>
<p>public void contextInitialized(ServletContextEvent event) {</p>
<p>yourUtilitiesClass.FILES_PATH = event.getServletContext().getRealPath(”&#8221;) + File.separator + “files” + File.separator;<br />
yourUtilitiesClass.IMAGES_FILES_PATH = event.getServletContext().getRealPath(”&#8221;) + File.separator + “images” + File.separator;<br />
yourUtilitiesClass.MY_RATES_XML_PATH = event.getServletContext().getRealPath(”&#8221;) + File.separator + “flash” + File.separator;<br />
}</p>
<p>add follwing tag in the web.xml of you web application and give your class name in the listener-class tag (that you write above)</p>
<p>&lt;listener&gt;<br />
&lt;listener-class&gt;com.myproject.portal.utilities.ContextListener&lt;/listener-class&gt;<br />
&lt;/listener&gt;</p>
<p>now what happend<br />
on every event on your web application server.xml call the listen and set the paths in your static(calss level) variable so you can use any where in the project.</p>
<p>this is the sample calss</p>
<p>import java.io.File;<br />
import javax.servlet.ServletContextEvent;<br />
import javax.servlet.ServletContextListener;</p>
<p>public class ContextListener implements ServletContextListener {</p>
<p>public ContextListener() {<br />
super();<br />
}</p>
<p>public void contextInitialized(ServletContextEvent event) {<br />
yourUtilities.FILES_PATH = event.getServletContext().getRealPath(&#8220;&#8221;) + File.separator + &#8220;files&#8221; + File.separator;<br />
yourUtilities.IMAGES_FILES_PATH = event.getServletContext().getRealPath(&#8220;&#8221;) + File.separator + &#8220;images&#8221; + File.separator;<br />
yourUtilities.VOPIUM_RATES_XML_PATH = event.getServletContext().getRealPath(&#8220;&#8221;) + File.separator + &#8220;flash&#8221; + File.separator;<br />
}</p>
<p>public void contextDestroyed(ServletContextEvent event) {</p>
<p>}</p>
<p>}</p>
<p>cheeerrrrrrrrs!!!</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ijaxahmed.wordpress.com/15/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ijaxahmed.wordpress.com/15/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ijaxahmed.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ijaxahmed.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ijaxahmed.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ijaxahmed.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ijaxahmed.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ijaxahmed.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ijaxahmed.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ijaxahmed.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ijaxahmed.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ijaxahmed.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ijaxahmed.wordpress.com&blog=4198829&post=15&subd=ijaxahmed&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ijaxahmed.wordpress.com/2008/09/01/get-server-context-path/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/21f105e095863a9637636d6c07eea276?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ijaxahmed</media:title>
		</media:content>
	</item>
		<item>
		<title>DBCp connection!</title>
		<link>http://ijaxahmed.wordpress.com/2008/08/13/dbcp-connection/</link>
		<comments>http://ijaxahmed.wordpress.com/2008/08/13/dbcp-connection/#comments</comments>
		<pubDate>Wed, 13 Aug 2008 10:43:15 +0000</pubDate>
		<dc:creator>Ijaz Ahmed</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ijaxahmed.wordpress.com/?p=11</guid>
		<description><![CDATA[1.create your own context.xml file and put in Yourapp/META-INF/  location
its contents should be
&#60;Context  docBase=&#8221;Tracker&#8221; path=&#8221;/Tracker&#8221;&#62;
&#60;Resource name=&#8221;jdbc/tracker&#8221; scope=&#8221;Shareable&#8221; type=&#8221;javax.sql.DataSource&#8221;
factory=&#8221;org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory&#8221;
url=&#8221;jdbc:mysql://localhost:3306/tracker?autoReconnect=true&#8221;
driverClassName=&#8221;com.mysql.jdbc.Driver&#8221;
username=&#8221;root&#8221;
password=&#8221;admin&#8221;
maxIdle=&#8221;5&#8243;
maxActive=&#8221;50&#8243;
/&#62;
2.Then make entry in web.xml
&#60;resource-ref&#62;
&#60;description&#62;DB Connection&#60;/description&#62;
&#60;res-ref-name&#62;jdbc/tracker&#60;/res-ref-name&#62;
&#60;res-type&#62;javax.sql.DataSource&#60;/res-type&#62;
&#60;res-auth&#62;Container&#60;/res-auth&#62;
&#60;/resource-ref&#62;
3.Then  place mysql-connector-java-3.1.13.jar in  TOMCAT_HOME/common/lib folder
4.place jstl.jar.standar,jar in TOMCAT_HOME/common/lib folder/
or
in you webInf/lib folder(this is optional stepp if u using jstl)
5. use any where with code
Context ctx = new InitialContext();
DataSource [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ijaxahmed.wordpress.com&blog=4198829&post=11&subd=ijaxahmed&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>1.create your own context.xml file and put in Yourapp/META-INF/  location</p>
<p>its contents should be<br />
&lt;Context  docBase=&#8221;Tracker&#8221; path=&#8221;/Tracker&#8221;&gt;</p>
<p>&lt;Resource name=&#8221;jdbc/tracker&#8221; scope=&#8221;Shareable&#8221; type=&#8221;javax.sql.DataSource&#8221;<br />
factory=&#8221;org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory&#8221;<br />
url=&#8221;jdbc:mysql://localhost:3306/tracker?autoReconnect=true&#8221;<br />
driverClassName=&#8221;com.mysql.jdbc.Driver&#8221;<br />
username=&#8221;root&#8221;<br />
password=&#8221;admin&#8221;<br />
maxIdle=&#8221;5&#8243;<br />
maxActive=&#8221;50&#8243;</p>
<p>/&gt;<br />
2.Then make entry in web.xml<br />
&lt;resource-ref&gt;<br />
&lt;description&gt;DB Connection&lt;/description&gt;<br />
&lt;res-ref-name&gt;jdbc/tracker&lt;/res-ref-name&gt;<br />
&lt;res-type&gt;javax.sql.DataSource&lt;/res-type&gt;<br />
&lt;res-auth&gt;Container&lt;/res-auth&gt;<br />
&lt;/resource-ref&gt;</p>
<p>3.Then  place mysql-connector-java-3.1.13.jar in  TOMCAT_HOME/common/lib folder<br />
4.place jstl.jar.standar,jar in TOMCAT_HOME/common/lib folder/</p>
<p>or</p>
<p>in you webInf/lib folder(this is optional stepp if u using jstl)</p>
<p>5. use any where with code<br />
Context ctx = new InitialContext();<br />
DataSource ds = (DataSource)ctx.lookup(&#8220;java:comp/env/jdbc/tracker&#8221;);<br />
connection = ds.getConnection();</p>
<p>Note:</p>
<p>-download <a href="http://www.mysql.com/products/connector-j">Connector/J</a> 3.0.11-stable (the official JDBC Driver)</p>
<p>-Downlaod jstl lib(standard.jar, jstl.jar agian this is optional)</p>
<p>you can email me for jdbc connector and JStl lib at aijaza.b@gmail.com</p>
<p>for refrence also check that link</p>
<p>http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ijaxahmed.wordpress.com/11/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ijaxahmed.wordpress.com/11/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ijaxahmed.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ijaxahmed.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ijaxahmed.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ijaxahmed.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ijaxahmed.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ijaxahmed.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ijaxahmed.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ijaxahmed.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ijaxahmed.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ijaxahmed.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ijaxahmed.wordpress.com&blog=4198829&post=11&subd=ijaxahmed&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ijaxahmed.wordpress.com/2008/08/13/dbcp-connection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/21f105e095863a9637636d6c07eea276?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ijaxahmed</media:title>
		</media:content>
	</item>
		<item>
		<title>send configration sms on mobile</title>
		<link>http://ijaxahmed.wordpress.com/2008/08/07/send-configration-sms-on-mobile/</link>
		<comments>http://ijaxahmed.wordpress.com/2008/08/07/send-configration-sms-on-mobile/#comments</comments>
		<pubDate>Thu, 07 Aug 2008 12:42:00 +0000</pubDate>
		<dc:creator>Ijaz Ahmed</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[configration sms]]></category>
		<category><![CDATA[OMA]]></category>
		<category><![CDATA[OTA]]></category>
		<category><![CDATA[sync]]></category>

		<guid isPermaLink="false">http://ijaxahmed.wordpress.com/?p=7</guid>
		<description><![CDATA[Q.how to send an configration SMS(like mobile operators send GPRS setting, its an configration SMS)
A.configration SMS is not a simple text sms.you have to send your message using  Over The Air(OTA) or Open Mobile Alaince (OMA).
you can download OTA spacification document from there but first you have to make a login to nokia forum.open the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ijaxahmed.wordpress.com&blog=4198829&post=7&subd=ijaxahmed&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Q.how to send an configration SMS(like mobile operators send GPRS setting, its an configration SMS)</p>
<p>A.configration SMS is not a simple text sms.you have to send your message using  Over The Air(OTA) or Open Mobile Alaince (OMA).</p>
<p>you can download OTA spacification document from there but first you have to make a login to nokia forum.open the link make you registration the download the pdf file</p>
<p>http://www.forum.nokia.com/info/sw.nokia.com/id/3377eb33-cb1d-490e-a1cb-8735d785e1d3/OTA_settings_general_7_0.pdf.html</p>
<p>you can also download OMA specification</p>
<p>http://www.forum.nokia.com/info/sw.nokia.com/id/8d85ad81-5a9b-40fe-bf2a-d567dfd755ec/Series_40_DP_2_0_OMA_Client_Provisioning_v1_3_en.pdf.html</p>
<p>-i wanna send configration sms for synch settings . for that i read the these above spacification(parameters required).<br />
-then i create an xml according to OMA/OTA spacification.<br />
-and concert this xml to wbxml</p>
<p>how convert xml to wbxml<br />
there is two solution for that, you can find two APIs on the internet<br />
-wbxml this is c++ library<br />
can be downlaoded for here http://libwbxml.aymerick.com/<br />
-kxml this is java library<br />
can be donwlaod from here http://kxmlrpc.objectweb.org/software/downloads/</p>
<p>i converted my xml to wbxml using kxml api.here is code</p>
<p>package test.kxml;</p>
<p>import java.io.ByteArrayInputStream;<br />
import java.io.ByteArrayOutputStream;<br />
import java.io.File;<br />
import java.io.FileInputStream;<br />
import java.io.FileOutputStream;<br />
import java.io.InputStream;<br />
import java.io.InputStreamReader;</p>
<p>import org.kxml.io.AbstractXmlWriter;<br />
import org.kxml.kdom.Document;<br />
import org.kxml.parser.XmlParser;<br />
import org.kxml.wap.WbxmlWriter;</p>
<p>public class Converter {</p>
<p>public static void main(String args[]){</p>
<p>byte[] bytes=null;</p>
<p>try {<br />
File file = new File(&#8220;D:\\xml\\OMA2.xml&#8221;);</p>
<p>InputStream is = new FileInputStream(file);</p>
<p>// Get the size of the file<br />
long length = file.length();</p>
<p>// You cannot create an array using a long type.<br />
// It needs to be an int type.<br />
// Before converting to an int type, check<br />
// to ensure that file is not larger than Integer.MAX_VALUE.<br />
if (length &gt; Integer.MAX_VALUE) {<br />
// File is too large<br />
}</p>
<p>// Create the byte array to hold the data<br />
bytes = new byte[(int)length];</p>
<p>// Read in the bytes<br />
int offset = 0;<br />
int numRead = 0;<br />
while (offset &lt; bytes.length<br />
&amp;&amp; (numRead=is.read(bytes, offset, bytes.length-offset)) &gt;= 0) {<br />
offset += numRead;<br />
}</p>
<p>} catch (Exception e) {<br />
// TODO: handle exception<br />
}</p>
<p>try {<br />
FileOutputStream fOutStream = new FileOutputStream(&#8220;D:\\xml\\OMA2.wbxml&#8221;);<br />
// Construct an InputStreamReader on ByterArrayInputStream.<br />
InputStreamReader in = new InputStreamReader(new ByteArrayInputStream(bytes));</p>
<p>// Make parser using this Reader.<br />
XmlParser parser = new XmlParser(in);</p>
<p>// Construct a DOM Document to parse XML.<br />
Document document = new Document ();<br />
document.parse(parser);<br />
in.close();</p>
<p>// Make an OutputStream on which WbxmlWriter can write.<br />
ByteArrayOutputStream out = new ByteArrayOutputStream();<br />
//AbstractXmlWriter writer = new WbxmlWriter(out);</p>
<p>AbstractXmlWriter writer = new WbxmlWriter(fOutStream);<br />
document.write(writer);<br />
writer.close();</p>
<p>System.out.println(&#8220;&#8212;&#8212;&#8212;&#8212;-&#8221;+out.toString());<br />
//out.writeTo(fOutStream);<br />
// Get WBXML from this stream.<br />
bytes = out.toString().getBytes();</p>
<p>out.close();</p>
<p>}//try<br />
catch (Exception e) { e.printStackTrace(); }</p>
<p>}//End of MAin</p>
<p>}</p>
<p>i also have the exe file of wbxml lib(complied and convert to exe). you can run it on command promt.<br />
place the xml file and related dll in a folder the open the command promt and point to that folder and the write that command<br />
xml2wbxml.exe<br />
then write this command<br />
xml2wbxml -o output.wbxml input.xml<br />
xml2wbxml -k -n -v 1.1 -o output.wbxml input.xml</p>
<p>then your file convertd to wbxml. for wbxml exe file you can email me at aijaz.a.b@gmail.com</p>
<p>wbxml is short form of xml mean all xml data converted to binary so file size get commpressed. when you convert the xml to wbxml you will see all tags are converted into binary form but the text will remain the same.<br />
then convert it to Hexadecimal form and send it to your mobile.</p>
<p>downlaod hex-editor form that link http://www.brothersoft.com/free-hex-editor-download-40299.html, it will convert wbxml to hex.</p>
<p>how to send to the mobile you have to read your gate spacificatio. i am using unwire gateway so for that i set the &#8220;type&#8221; varibale to &#8220;raw&#8221; in the url and set the header.i didnt able to get sms on mobile therefor i contacted to my gateway provider but these all step really help to send the configration SMS.</p>
<p>the sms you will send it will have two parts<br />
first is UDH head<br />
what is UDH head read this link<br />
http://dev.mobi/article/binary-sms-sending-rich-content-devices-using-sms</p>
<p>the samlple i send like this<br />
(UDH header)Header1: 0B0504C34FC0020003B90201<br />
(hexdecimal form of wbxml)Body1: 010604039481EA00010045C60601871245018713110331302E392E382E37000187146101872111032B333637303730303039323700018722700187231103766F6461776170000187241103766F646177617000018728730187296C0101C606018712410187131103323232000187146001871A11032B33363730393939363530<br />
Header2: 0B0504C34FC0020003B90202</p>
<p>hope this all will help</p>
<p>also read this link .might be it will be helpful<br />
http://dev.mobi/article/email-configuration-sms</p>
<p>this is the example that i tryied with some gatway</p>
<p>i used this url of my gateway provider to send sms on mobile</p>
<p><!--[if gte mso 9]&gt;  Normal 0     false false false  EN-US X-NONE X-NONE              MicrosoftInternetExplorer4              &lt;![endif]--><!--[if gte mso 9]&gt;                                                                                                                                            &lt;![endif]--><!--  /* Font Definitions */  @font-face 	{font-family:"Cambria Math"; 	panose-1:2 4 5 3 5 4 6 3 2 4; 	mso-font-charset:0; 	mso-generic-font-family:roman; 	mso-font-pitch:variable; 	mso-font-signature:-1610611985 1107304683 0 0 159 0;} @font-face 	{font-family:Calibri; 	panose-1:2 15 5 2 2 2 4 3 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:-1610611985 1073750139 0 0 159 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-unhide:no; 	mso-style-qformat:yes; 	mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-fareast-font-family:Calibri; 	mso-fareast-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman";} a:link, span.MsoHyperlink 	{mso-style-priority:99; 	color:blue; 	text-decoration:underline; 	text-underline:single;} a:visited, span.MsoHyperlinkFollowed 	{mso-style-noshow:yes; 	mso-style-priority:99; 	color:purple; 	mso-themecolor:followedhyperlink; 	text-decoration:underline; 	text-underline:single;} .MsoChpDefault 	{mso-style-type:export-only; 	mso-default-props:yes; 	font-size:10.0pt; 	mso-ansi-font-size:10.0pt; 	mso-bidi-font-size:10.0pt;} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.0in 1.0in 1.0in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --><!--[if gte mso 10]&gt; &lt;!   /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-priority:99; 	mso-style-qformat:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:"Times New Roman"; 	mso-fareast-theme-font:minor-fareast; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi;} --> <!--[endif]--></p>
<p class="MsoNormal"><span style="color:#1f497d;"><a href="http://mobile.unwire.dk/java/servlet/smspush?user=jmobile&amp;password=SczX17o&amp;to=923224414591&amp;smsc=dk.tdc&amp;udh=0605040B840000&amp;text=02056A0045C60C037777772E6465762E6D6F62692F69735F66756E2E68746D6C0011033635333200070103446576446F744D6F62692069732046756E2021000101&amp;phoneno=923224414591&amp;mediacode=Vopium&amp;appnr=321&amp;from=Vopium&amp;type=raw&amp;">http://mobile.unwire.dk/java/servlet/smspush?user=test&amp;password=</a></span><a href="http://mobile.unwire.dk/java/servlet/smspush?user=jmobile&amp;password=SczX17o&amp;to=923224414591&amp;smsc=dk.tdc&amp;udh=0605040B840000&amp;text=02056A0045C60C037777772E6465762E6D6F62692F69735F66756E2E68746D6C0011033635333200070103446576446F744D6F62692069732046756E2021000101&amp;phoneno=923224414591&amp;mediacode=Vopium&amp;appnr=321&amp;from=Vopium&amp;type=raw&amp;">test</a><span style="color:#1f497d;"><a href="http://mobile.unwire.dk/java/servlet/smspush?user=jmobile&amp;password=SczX17o&amp;to=923224414591&amp;smsc=dk.tdc&amp;udh=0605040B840000&amp;text=02056A0045C60C037777772E6465762E6D6F62692F69735F66756E2E68746D6C0011033635333200070103446576446F744D6F62692069732046756E2021000101&amp;phoneno=923224414591&amp;mediacode=Vopium&amp;appnr=321&amp;from=Vopium&amp;type=raw&amp;">&amp;to=92322111111&amp;smsc=dk.tdc&amp;udh=0605040B840000&amp;text=02056A0045C60C037777772E6465762E6D6F62692F69735F66756E2E68746D6C0011033635333200070103446576446F744D6F62692069732046756E2021000101&amp;phoneno=92322111111&amp;mediacode=ijazcompnay&amp;appnr=321&amp;from=ijax&amp;type=raw&amp;</a></span></p>
<p class="MsoNormal">
<p class="MsoNormal">see type variable</p>
<p class="MsoNormal">
<p class="MsoNormal">
<p>cheeeeeeeeeeeeeeerz</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ijaxahmed.wordpress.com/7/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ijaxahmed.wordpress.com/7/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ijaxahmed.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ijaxahmed.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ijaxahmed.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ijaxahmed.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ijaxahmed.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ijaxahmed.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ijaxahmed.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ijaxahmed.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ijaxahmed.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ijaxahmed.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ijaxahmed.wordpress.com&blog=4198829&post=7&subd=ijaxahmed&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ijaxahmed.wordpress.com/2008/08/07/send-configration-sms-on-mobile/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/21f105e095863a9637636d6c07eea276?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ijaxahmed</media:title>
		</media:content>
	</item>
		<item>
		<title>Inversion of Conmtrol vs Dependency Injection</title>
		<link>http://ijaxahmed.wordpress.com/2008/07/11/inversion-of-conmtrol-vs-dependency-injection/</link>
		<comments>http://ijaxahmed.wordpress.com/2008/07/11/inversion-of-conmtrol-vs-dependency-injection/#comments</comments>
		<pubDate>Fri, 11 Jul 2008 12:34:12 +0000</pubDate>
		<dc:creator>Ijaz Ahmed</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[spring]]></category>

		<guid isPermaLink="false">http://ijaxahmed.wordpress.com/?p=6</guid>
		<description><![CDATA[ I would say that IOC and Dependency Injection are not the same thing. Both are design patterns. Inversion of Control is the more abstract notion. Dependency injection is more specific.
They overlap a lot &#8211; hence the confusion above. I would say this &#8211; &#8220;Dependency Injection is only one pattern which makes use of the IOC [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ijaxahmed.wordpress.com&blog=4198829&post=6&subd=ijaxahmed&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p> I would say that IOC and Dependency Injection are not the same thing. Both are design patterns. Inversion of Control is the more abstract notion. Dependency injection is more specific.</p>
<p>They overlap a lot &#8211; hence the confusion above. I would say this &#8211; &#8220;Dependency Injection is only one pattern which makes use of the IOC pattern&#8221;.</p>
<p>The IOC pattern simply says that objects are enabled for something else to configure/control them. This &#8220;something else&#8221; might be a framework or it might be another object &#8211; it is not necessarily a framework that is doing the configuring. In the most abstract sense a network of cooperating objects could mutually configure each other and all will be happy.</p>
<p>A perfect example of IOC that would *not* be dependency injection would be a piece of Java code which wanted to display a calendar widget within a GUI. The code creates a calendar widget object, then calls methods in the calendar widget instance and sets a few parameters like background color. Then the Panel widget is called (another example of IOC) and told to add the calendar widget instance to the panel in the upper left hand corner. The panel and calendar widgets are allowing themselves to be configured via IOC &#8211; but the calling code (in control) is just another piece of Java code and not particularly a &#8220;framework&#8221;.</p>
<p>Martin Fowler&#8217;s coining of the terms IOC 1,2,3 really were talking about the interaction between a framework and a component working within the framework. Perhaps a better way to title Martin&#8217;s work would be &#8220;Three different ways that frameworks use the IOC pattern&#8221;. Dependency Injection is best described as &#8220;What Spring Does&#8221;. Spring (a framework) feeds an object (a component) configuration values and classes (implementations) for requested APIs (Interfaces) using the IOC pattern.</p>
<p>Another way to look at this from a Java perspective &#8211; the notion of setters is the most basic form of IOC. Martin&#8217;s work took the setter pattern and suggested that the best way for a component to find its dependencies was through the setter pattern (i.e. IOC is the best way for a component to get its dependencies from a framework).</p>
<p>The Sakai framework component approach are based on this notion of Dependency injection. Sakai uses classic IOC throughout tools, presentation layer, etc etc.</p>
<p>There are places in Sakai where IOC/Dependency Injection is not practical or quite inconvienent and so different patterns are used. That is a different fun debate when IOC purists meet the real world.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ijaxahmed.wordpress.com/6/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ijaxahmed.wordpress.com/6/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ijaxahmed.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ijaxahmed.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ijaxahmed.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ijaxahmed.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ijaxahmed.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ijaxahmed.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ijaxahmed.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ijaxahmed.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ijaxahmed.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ijaxahmed.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ijaxahmed.wordpress.com&blog=4198829&post=6&subd=ijaxahmed&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ijaxahmed.wordpress.com/2008/07/11/inversion-of-conmtrol-vs-dependency-injection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/21f105e095863a9637636d6c07eea276?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ijaxahmed</media:title>
		</media:content>
	</item>
		<item>
		<title>Hello world!</title>
		<link>http://ijaxahmed.wordpress.com/2008/07/11/hello-world/</link>
		<comments>http://ijaxahmed.wordpress.com/2008/07/11/hello-world/#comments</comments>
		<pubDate>Fri, 11 Jul 2008 12:07:27 +0000</pubDate>
		<dc:creator>Ijaz Ahmed</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ijaxahmed.wordpress.com&blog=4198829&post=1&subd=ijaxahmed&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Welcome to <a href="http://wordpress.com/">WordPress.com</a>. This is your first post. Edit or delete it and start blogging!</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ijaxahmed.wordpress.com/1/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ijaxahmed.wordpress.com/1/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ijaxahmed.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ijaxahmed.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ijaxahmed.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ijaxahmed.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ijaxahmed.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ijaxahmed.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ijaxahmed.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ijaxahmed.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ijaxahmed.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ijaxahmed.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ijaxahmed.wordpress.com&blog=4198829&post=1&subd=ijaxahmed&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://ijaxahmed.wordpress.com/2008/07/11/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/21f105e095863a9637636d6c07eea276?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ijaxahmed</media:title>
		</media:content>
	</item>
	</channel>
</rss>