<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-12168038.post7036238860860001601..comments</id><updated>2011-12-21T20:14:58.489+05:30</updated><category term='Redmine'/><category term='PHP'/><category term='Tomcat'/><category term='WebService'/><category term='JBoss'/><category term='Http'/><category term='Maven'/><category term='Linux'/><category term='Hudson'/><category term='JTA'/><category term='Atomikos'/><category term='Apache'/><category term='Spring'/><category term='Java'/><category term='SVN'/><category term='NoSQL'/><category term='Artifactory'/><category term='Google'/><title type='text'>Comments on Vinod Singh: JNDI lookup on Tomcat and JBoss using Spring</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.vinodsingh.com/feeds/7036238860860001601/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12168038/7036238860860001601/comments/default'/><link rel='alternate' type='text/html' href='http://blog.vinodsingh.com/2008/12/jndi-lookup-on-tomcat-and-jboss-using.html'/><author><name>विनोद सिंह</name><uri>https://profiles.google.com/103834618757927017718</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-xXpn1uzbbGo/AAAAAAAAAAI/AAAAAAAAC_c/hhEBO9tdJ54/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-12168038.post-2072723586718390133</id><published>2011-12-21T20:14:58.489+05:30</published><updated>2011-12-21T20:14:58.489+05:30</updated><title type='text'>hey Matt, you are absolutely right. jboss-web.xml ...</title><content type='html'>hey Matt, you are absolutely right. jboss-web.xml really saved my day. Thank you.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12168038/7036238860860001601/comments/default/2072723586718390133'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12168038/7036238860860001601/comments/default/2072723586718390133'/><link rel='alternate' type='text/html' href='http://blog.vinodsingh.com/2008/12/jndi-lookup-on-tomcat-and-jboss-using.html?showComment=1324478698489#c2072723586718390133' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.vinodsingh.com/2008/12/jndi-lookup-on-tomcat-and-jboss-using.html' ref='tag:blogger.com,1999:blog-12168038.post-7036238860860001601' source='http://www.blogger.com/feeds/12168038/posts/default/7036238860860001601' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-470177568'/></entry><entry><id>tag:blogger.com,1999:blog-12168038.post-733869319202305355</id><published>2010-04-07T21:16:44.840+05:30</published><updated>2010-04-07T21:16:44.840+05:30</updated><title type='text'>The first anon commenter actually has the correct ...</title><content type='html'>The first anon commenter actually has the correct answer. You should be defining your resource mappings in your web xml.. then upon deployment to the application server (Jboss, WAS, etc) you should be binding the resource declaration with the app server&amp;#39;s specific jndi tree. I know it is all the rage to be more &amp;quot;portable&amp;quot; than jee but writing a class like this is really unnecessary. Of course this requires that you use the indirection already built into the jee spec. I feel like developers don&amp;#39;t usually get this one right because they aren&amp;#39;t usually in charge of deploying many applications on an app server. The step (putting resources in web.xml) feels unnecessary to developers because they don&amp;#39;t really get why you should do it.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12168038/7036238860860001601/comments/default/733869319202305355'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12168038/7036238860860001601/comments/default/733869319202305355'/><link rel='alternate' type='text/html' href='http://blog.vinodsingh.com/2008/12/jndi-lookup-on-tomcat-and-jboss-using.html?showComment=1270655204840#c733869319202305355' title=''/><author><name>Matt</name><uri>http://mattfleming.com/</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/openid16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.vinodsingh.com/2008/12/jndi-lookup-on-tomcat-and-jboss-using.html' ref='tag:blogger.com,1999:blog-12168038.post-7036238860860001601' source='http://www.blogger.com/feeds/12168038/posts/default/7036238860860001601' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-940950686'/></entry><entry><id>tag:blogger.com,1999:blog-12168038.post-6343531722476060764</id><published>2009-06-03T16:43:45.284+05:30</published><updated>2009-06-03T16:43:45.284+05:30</updated><title type='text'>Thanks for this post. I was having a nightmare wit...</title><content type='html'>Thanks for this post. I was having a nightmare with this issue across different app servers but this has made things very clear to me now. I ended up using the jboss-web.xml solution of mapping the jndi name in Jboss.&lt;br /&gt;Thanks!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12168038/7036238860860001601/comments/default/6343531722476060764'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12168038/7036238860860001601/comments/default/6343531722476060764'/><link rel='alternate' type='text/html' href='http://blog.vinodsingh.com/2008/12/jndi-lookup-on-tomcat-and-jboss-using.html?showComment=1244027625284#c6343531722476060764' title=''/><author><name>andyb</name><uri>http://www.blogger.com/profile/13645866679530866703</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://photos1.blogger.com/img/83/1543/200/joshua.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.vinodsingh.com/2008/12/jndi-lookup-on-tomcat-and-jboss-using.html' ref='tag:blogger.com,1999:blog-12168038.post-7036238860860001601' source='http://www.blogger.com/feeds/12168038/posts/default/7036238860860001601' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2087602641'/></entry><entry><id>tag:blogger.com,1999:blog-12168038.post-6790408575191448553</id><published>2009-05-20T22:59:04.395+05:30</published><updated>2009-05-20T22:59:04.395+05:30</updated><title type='text'>You could also use a SimpleJndiBeanFactory where y...</title><content type='html'>You could also use a SimpleJndiBeanFactory where you can specify if you want the java:comp/env to be added or not, with the setResourceRef method, see the Spring API.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12168038/7036238860860001601/comments/default/6790408575191448553'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12168038/7036238860860001601/comments/default/6790408575191448553'/><link rel='alternate' type='text/html' href='http://blog.vinodsingh.com/2008/12/jndi-lookup-on-tomcat-and-jboss-using.html?showComment=1242840544395#c6790408575191448553' title=''/><author><name>Per Lilja</name><uri>http://www.blogger.com/profile/05968607125512843329</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.vinodsingh.com/2008/12/jndi-lookup-on-tomcat-and-jboss-using.html' ref='tag:blogger.com,1999:blog-12168038.post-7036238860860001601' source='http://www.blogger.com/feeds/12168038/posts/default/7036238860860001601' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1873792011'/></entry><entry><id>tag:blogger.com,1999:blog-12168038.post-7142029912428662532</id><published>2008-12-27T13:24:00.000+05:30</published><updated>2008-12-27T13:24:00.000+05:30</updated><title type='text'>My intention is to make it work across application...</title><content type='html'>My intention is to make it work across application servers without any changes. The jboss-web.xml is JBoss specific stuff, which I do not want.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12168038/7036238860860001601/comments/default/7142029912428662532'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12168038/7036238860860001601/comments/default/7142029912428662532'/><link rel='alternate' type='text/html' href='http://blog.vinodsingh.com/2008/12/jndi-lookup-on-tomcat-and-jboss-using.html?showComment=1230364440000#c7142029912428662532' title=''/><author><name>Vinod Singh</name><uri>http://www.blogger.com/profile/14429571106836951918</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_Kn0LXTsgm7w/SOFoeyYlzRI/AAAAAAAAAAM/xEr5n8EVELE/S220/DSC00150.JPG'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.vinodsingh.com/2008/12/jndi-lookup-on-tomcat-and-jboss-using.html' ref='tag:blogger.com,1999:blog-12168038.post-7036238860860001601' source='http://www.blogger.com/feeds/12168038/posts/default/7036238860860001601' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-330575695'/></entry><entry><id>tag:blogger.com,1999:blog-12168038.post-9068543061569170602</id><published>2008-12-27T06:31:00.000+05:30</published><updated>2008-12-27T06:31:00.000+05:30</updated><title type='text'>Or you could use the more standard way of declarin...</title><content type='html'>Or you could use the more standard way of declaring the resource-ref jdbc/myDatasource in web.xml and adding a jboss-web.xml that maps the ref to a global jndi name. Now both containers are using the jndi name java:/comp/env/jdbc/myDatasource.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/12168038/7036238860860001601/comments/default/9068543061569170602'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/12168038/7036238860860001601/comments/default/9068543061569170602'/><link rel='alternate' type='text/html' href='http://blog.vinodsingh.com/2008/12/jndi-lookup-on-tomcat-and-jboss-using.html?showComment=1230339660000#c9068543061569170602' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.vinodsingh.com/2008/12/jndi-lookup-on-tomcat-and-jboss-using.html' ref='tag:blogger.com,1999:blog-12168038.post-7036238860860001601' source='http://www.blogger.com/feeds/12168038/posts/default/7036238860860001601' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1505256809'/></entry></feed>
