<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Exposing/Accessing JBoss JNDI Objects/Datasources From an External JVM</title>
	<atom:link href="http://www.engfers.com/2008/08/07/exposing_accessing-jboss-jndi-objects_datasources-from-an-external-jvm/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.engfers.com/2008/08/07/exposing_accessing-jboss-jndi-objects_datasources-from-an-external-jvm/</link>
	<description>» scrumptions blog &#038; code » nothing more, nothing less</description>
	<lastBuildDate>Thu, 29 Jul 2010 18:30:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Abdul Mohsin</title>
		<link>http://www.engfers.com/2008/08/07/exposing_accessing-jboss-jndi-objects_datasources-from-an-external-jvm/comment-page-1/#comment-6943</link>
		<dc:creator>Abdul Mohsin</dc:creator>
		<pubDate>Thu, 29 Jul 2010 18:30:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.engfers.com/?p=161#comment-6943</guid>
		<description>Hats off to you .. Exact resolution of the problem and brilliant explanation.

Thanks so much for sharing this information .

Abdul Mohsin</description>
		<content:encoded><![CDATA[<p>Hats off to you .. Exact resolution of the problem and brilliant explanation.</p>
<p>Thanks so much for sharing this information .</p>
<p>Abdul Mohsin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven</title>
		<link>http://www.engfers.com/2008/08/07/exposing_accessing-jboss-jndi-objects_datasources-from-an-external-jvm/comment-page-1/#comment-5861</link>
		<dc:creator>Steven</dc:creator>
		<pubDate>Wed, 10 Mar 2010 21:56:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.engfers.com/?p=161#comment-5861</guid>
		<description>i should have expanded... is HTTP communication the only way that you can secure access to the JNDI entry? JNP doesnt allow such a thing? it just feels like my datasources are living in the wild for anyone who could try to access (assuming firewalls allow ports to be used that is)</description>
		<content:encoded><![CDATA[<p>i should have expanded&#8230; is HTTP communication the only way that you can secure access to the JNDI entry? JNP doesnt allow such a thing? it just feels like my datasources are living in the wild for anyone who could try to access (assuming firewalls allow ports to be used that is)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven</title>
		<link>http://www.engfers.com/2008/08/07/exposing_accessing-jboss-jndi-objects_datasources-from-an-external-jvm/comment-page-1/#comment-5860</link>
		<dc:creator>Steven</dc:creator>
		<pubDate>Wed, 10 Mar 2010 21:41:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.engfers.com/?p=161#comment-5860</guid>
		<description>this was VERY helpful - wanted to get this going for a while now and most documents i found never mentioned the  attribute in the datasource config files. that was the piece i was missing!

however, it does bring a conern to mind. now that this datasource is exposed, how can i restrict who can use it?</description>
		<content:encoded><![CDATA[<p>this was VERY helpful &#8211; wanted to get this going for a while now and most documents i found never mentioned the  attribute in the datasource config files. that was the piece i was missing!</p>
<p>however, it does bring a conern to mind. now that this datasource is exposed, how can i restrict who can use it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raquel</title>
		<link>http://www.engfers.com/2008/08/07/exposing_accessing-jboss-jndi-objects_datasources-from-an-external-jvm/comment-page-1/#comment-4912</link>
		<dc:creator>Raquel</dc:creator>
		<pubDate>Wed, 18 Nov 2009 19:33:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.engfers.com/?p=161#comment-4912</guid>
		<description>Hi!

I solved my problem :)

Let me explian you:
I have two Datasources because I want to use two databases in the same class communicating one to each other.

I solved the problem with a property in JBoss file: jbossts-properties.xml:
</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>I solved my problem <img src='http://www.engfers.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Let me explian you:<br />
I have two Datasources because I want to use two databases in the same class communicating one to each other.</p>
<p>I solved the problem with a property in JBoss file: jbossts-properties.xml:</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: engfer</title>
		<link>http://www.engfers.com/2008/08/07/exposing_accessing-jboss-jndi-objects_datasources-from-an-external-jvm/comment-page-1/#comment-4911</link>
		<dc:creator>engfer</dc:creator>
		<pubDate>Wed, 18 Nov 2009 16:56:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.engfers.com/?p=161#comment-4911</guid>
		<description>I guess I&#039;m at a loss to understand the issue you are having... What specific situation are you referring to? 

On the outset, I would tell you to make sure that both of your datasource xml&#039;s are using the global JNDI namespace. You should be able to connect to both...</description>
		<content:encoded><![CDATA[<p>I guess I&#8217;m at a loss to understand the issue you are having&#8230; What specific situation are you referring to? </p>
<p>On the outset, I would tell you to make sure that both of your datasource xml&#8217;s are using the global JNDI namespace. You should be able to connect to both&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raquel</title>
		<link>http://www.engfers.com/2008/08/07/exposing_accessing-jboss-jndi-objects_datasources-from-an-external-jvm/comment-page-1/#comment-4910</link>
		<dc:creator>Raquel</dc:creator>
		<pubDate>Wed, 18 Nov 2009 15:56:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.engfers.com/?p=161#comment-4910</guid>
		<description>Great post but what about having 2 datasources and use them at the same time? When I have two datasources I just can acceed the first one! I don&#039;t know how to solve this...</description>
		<content:encoded><![CDATA[<p>Great post but what about having 2 datasources and use them at the same time? When I have two datasources I just can acceed the first one! I don&#8217;t know how to solve this&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vladimir</title>
		<link>http://www.engfers.com/2008/08/07/exposing_accessing-jboss-jndi-objects_datasources-from-an-external-jvm/comment-page-1/#comment-2898</link>
		<dc:creator>Vladimir</dc:creator>
		<pubDate>Wed, 17 Jun 2009 17:07:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.engfers.com/?p=161#comment-2898</guid>
		<description>Hi Jason, you can&#039;t get a specific Oracle object because you are running in a different JVM; that&#039;s why you only get a proxy.

The good news is you don&#039;t need it if you are using an oracle jdbc driver 10.2 or newer. To work with clobs/blobs, use:

  ResultSet rs = ...
  byte[] myBlob = rs.getBytes(1);
  String myClob = rs.getString(2);

or:

  Statement s = ...
  byte[] myBlob = ...
  s.setBytes(1, myBlob);
  String myClob = &quot;This is my huge clob.&quot;);
  s.setString(2, myClob);

hope it helps,
Vladimir</description>
		<content:encoded><![CDATA[<p>Hi Jason, you can&#8217;t get a specific Oracle object because you are running in a different JVM; that&#8217;s why you only get a proxy.</p>
<p>The good news is you don&#8217;t need it if you are using an oracle jdbc driver 10.2 or newer. To work with clobs/blobs, use:</p>
<p>  ResultSet rs = &#8230;<br />
  byte[] myBlob = rs.getBytes(1);<br />
  String myClob = rs.getString(2);</p>
<p>or:</p>
<p>  Statement s = &#8230;<br />
  byte[] myBlob = &#8230;<br />
  s.setBytes(1, myBlob);<br />
  String myClob = &#8220;This is my huge clob.&#8221;);<br />
  s.setString(2, myClob);</p>
<p>hope it helps,<br />
Vladimir</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://www.engfers.com/2008/08/07/exposing_accessing-jboss-jndi-objects_datasources-from-an-external-jvm/comment-page-1/#comment-2433</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Mon, 11 May 2009 17:51:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.engfers.com/?p=161#comment-2433</guid>
		<description>Excellent article, wish I&#039;d found it sooner!!  We are using this technique to access an Oracle data source while running batch java (which is naturally outside the container). The problem we are having is that we have an XMLType field in the database, so we need the actual OracleConnection object in order to create a CLOB or XMLType to store in there. If running inside the container from MDB or web, no problems. However, if running in batch we can&#039;t get the Oracle data types. The JNDI lookup works just fine, we get a java.sql.Connection. The problem is we can&#039;t cast that to any Oracle data type. Inspecting the data source object in debug mode, we find that it evaluates to $Proxy1. Any thoughts on that?  Thanks!</description>
		<content:encoded><![CDATA[<p>Excellent article, wish I&#8217;d found it sooner!!  We are using this technique to access an Oracle data source while running batch java (which is naturally outside the container). The problem we are having is that we have an XMLType field in the database, so we need the actual OracleConnection object in order to create a CLOB or XMLType to store in there. If running inside the container from MDB or web, no problems. However, if running in batch we can&#8217;t get the Oracle data types. The JNDI lookup works just fine, we get a java.sql.Connection. The problem is we can&#8217;t cast that to any Oracle data type. Inspecting the data source object in debug mode, we find that it evaluates to $Proxy1. Any thoughts on that?  Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Recent Links Tagged With "jvm" - JabberTags</title>
		<link>http://www.engfers.com/2008/08/07/exposing_accessing-jboss-jndi-objects_datasources-from-an-external-jvm/comment-page-1/#comment-1075</link>
		<dc:creator>Recent Links Tagged With "jvm" - JabberTags</dc:creator>
		<pubDate>Sun, 07 Dec 2008 17:34:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.engfers.com/?p=161#comment-1075</guid>
		<description>[...] public links &gt;&gt; jvm   Exposing/Accessing JBoss JNDI Objects/Datasources From an External JVM Saved by goldduke on Sun 16-11-2008   JSR 326 - Post mortem JVM Diagnostics API Saved by [...]</description>
		<content:encoded><![CDATA[<p>[...] public links &gt;&gt; jvm   Exposing/Accessing JBoss JNDI Objects/Datasources From an External JVM Saved by goldduke on Sun 16-11-2008   JSR 326 &#8211; Post mortem JVM Diagnostics API Saved by [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yassine</title>
		<link>http://www.engfers.com/2008/08/07/exposing_accessing-jboss-jndi-objects_datasources-from-an-external-jvm/comment-page-1/#comment-669</link>
		<dc:creator>Yassine</dc:creator>
		<pubDate>Wed, 22 Oct 2008 08:20:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.engfers.com/?p=161#comment-669</guid>
		<description>Many many thanks your post clarified my understanding related to remotely exposining JNDI resources.

keep up the good work
merci!!</description>
		<content:encoded><![CDATA[<p>Many many thanks your post clarified my understanding related to remotely exposining JNDI resources.</p>
<p>keep up the good work<br />
merci!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
