<?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: Implement, deploy and call an EJB 3.0 webservice using Glassfish and JAX-WS</title>
	<atom:link href="http://www.it-eye.nl/weblog/2006/03/08/138/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.it-eye.nl/weblog/2006/03/08/138/</link>
	<description>Where Business meets IT</description>
	<lastBuildDate>Wed, 10 Mar 2010 11:20:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Teresa</title>
		<link>http://www.it-eye.nl/weblog/2006/03/08/138/comment-page-1/#comment-170495</link>
		<dc:creator>Teresa</dc:creator>
		<pubDate>Fri, 18 Jan 2008 00:13:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.it-eye.nl/weblog/2006/03/08/138/#comment-170495</guid>
		<description>I realize this is an old blog, but I have a similar situation maybe one of you can help me with?  

We have a large PowerBuilder/Oracle application. The db consists of over 500 tables and the client consists of several thousand PB components. A user creates &quot;transactions&quot; which contain a series of &quot;sub-transactions&quot; within. Most of the data is collected and stored locally in the client in a series of datastores. When the &quot;finalize&quot; happens, the records are validated and sent to the database.

We are in the process of moving each of the subtransactions (currently in the PB client) into subPROCESSES on a java project. We are using the JAX-WS framework to develop the web services in Netbeans.  For writing data back to the database, we are using the Java Persistence API to function outside of an EJB container but will shortly be migrating to the Glassfish application server to use several of the EJB container frameworks including the EntityManager.

I&#039;m trying to figure out a deployment methodology that will provide minimal impact on existing applications and maximal re-use of code (i.e. loosely coupled).

We will want to use the persistence code, the data access code, and a few other pieces of code in several applications.

Is it common practice to use the same libraries over and over in several applications?

What are some common deployment models?

How can we determine where our breaks between applications should be so that we can loosely couple code in a sane manner?

Any suggestions would be so helpful and appreciated!

Thanks!</description>
		<content:encoded><![CDATA[<p>I realize this is an old blog, but I have a similar situation maybe one of you can help me with?  </p>
<p>We have a large PowerBuilder/Oracle application. The db consists of over 500 tables and the client consists of several thousand PB components. A user creates &#8220;transactions&#8221; which contain a series of &#8220;sub-transactions&#8221; within. Most of the data is collected and stored locally in the client in a series of datastores. When the &#8220;finalize&#8221; happens, the records are validated and sent to the database.</p>
<p>We are in the process of moving each of the subtransactions (currently in the PB client) into subPROCESSES on a java project. We are using the JAX-WS framework to develop the web services in Netbeans.  For writing data back to the database, we are using the Java Persistence API to function outside of an EJB container but will shortly be migrating to the Glassfish application server to use several of the EJB container frameworks including the EntityManager.</p>
<p>I&#8217;m trying to figure out a deployment methodology that will provide minimal impact on existing applications and maximal re-use of code (i.e. loosely coupled).</p>
<p>We will want to use the persistence code, the data access code, and a few other pieces of code in several applications.</p>
<p>Is it common practice to use the same libraries over and over in several applications?</p>
<p>What are some common deployment models?</p>
<p>How can we determine where our breaks between applications should be so that we can loosely couple code in a sane manner?</p>
<p>Any suggestions would be so helpful and appreciated!</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark B.</title>
		<link>http://www.it-eye.nl/weblog/2006/03/08/138/comment-page-1/#comment-6067</link>
		<dc:creator>Mark B.</dc:creator>
		<pubDate>Mon, 17 Jul 2006 13:39:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.it-eye.nl/weblog/2006/03/08/138/#comment-6067</guid>
		<description>In case anyone is interested in the solution to the problem mentioned above :
http://forums.oracle.com/forums/thread.jspa?messageID=1379129&amp;#1379129</description>
		<content:encoded><![CDATA[<p>In case anyone is interested in the solution to the problem mentioned above :<br />
<a href="http://forums.oracle.com/forums/thread.jspa?messageID=1379129&amp;#1379129" rel="nofollow">http://forums.oracle.com/forums/thread.jspa?messageID=1379129&amp;#1379129</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark B.</title>
		<link>http://www.it-eye.nl/weblog/2006/03/08/138/comment-page-1/#comment-5928</link>
		<dc:creator>Mark B.</dc:creator>
		<pubDate>Fri, 14 Jul 2006 15:26:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.it-eye.nl/weblog/2006/03/08/138/#comment-5928</guid>
		<description>oops.. I meant to say I DIDNT use the jax-rpc client libraries in my project.</description>
		<content:encoded><![CDATA[<p>oops.. I meant to say I DIDNT use the jax-rpc client libraries in my project.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark B.</title>
		<link>http://www.it-eye.nl/weblog/2006/03/08/138/comment-page-1/#comment-5924</link>
		<dc:creator>Mark B.</dc:creator>
		<pubDate>Fri, 14 Jul 2006 14:25:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.it-eye.nl/weblog/2006/03/08/138/#comment-5924</guid>
		<description>thanks for the reply, but I am talking about the embedded oc4j. which makes a great difference in that sense that I cant test my code after I write it. For now I am deploying it to tomcat with the consequence that I have to reboot tomcat each time.

As for your suggestion, I did use the oracle jax-rpc client libraries in my project, I only added my own wsdl4j and jax-rpc-api saaj jars. For whatever reason in the embedded oc4j, the container still loads the oracle ws libraries. 

You would think that this is a very common thing to do, however the boys at Oracle have no clue which I find rather surpring since this is nothing abnormal. Anyway, steven davelaar and mike de groot didnt know, perhaps I should try one league up and email Steve muench. Thanks for the effort anyway..</description>
		<content:encoded><![CDATA[<p>thanks for the reply, but I am talking about the embedded oc4j. which makes a great difference in that sense that I cant test my code after I write it. For now I am deploying it to tomcat with the consequence that I have to reboot tomcat each time.</p>
<p>As for your suggestion, I did use the oracle jax-rpc client libraries in my project, I only added my own wsdl4j and jax-rpc-api saaj jars. For whatever reason in the embedded oc4j, the container still loads the oracle ws libraries. </p>
<p>You would think that this is a very common thing to do, however the boys at Oracle have no clue which I find rather surpring since this is nothing abnormal. Anyway, steven davelaar and mike de groot didnt know, perhaps I should try one league up and email Steve muench. Thanks for the effort anyway..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Hofte</title>
		<link>http://www.it-eye.nl/weblog/2006/03/08/138/comment-page-1/#comment-5906</link>
		<dc:creator>Tom Hofte</dc:creator>
		<pubDate>Fri, 14 Jul 2006 06:09:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.it-eye.nl/weblog/2006/03/08/138/#comment-5906</guid>
		<description>I do not think so..

Have you tried to pack your application as a ear file, containing the standard Java JAX-RPC libs, to a stand-alone OC4J container. 

What you also could try is to remove the Oracle JAX-RPC libraries from your project properties and add the specific Java JAX-RPC..

If it still not work after trying the suggestions above, you can also post on the JDeveloper forum on OTN...</description>
		<content:encoded><![CDATA[<p>I do not think so..</p>
<p>Have you tried to pack your application as a ear file, containing the standard Java JAX-RPC libs, to a stand-alone OC4J container. </p>
<p>What you also could try is to remove the Oracle JAX-RPC libraries from your project properties and add the specific Java JAX-RPC..</p>
<p>If it still not work after trying the suggestions above, you can also post on the JDeveloper forum on OTN&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark B.</title>
		<link>http://www.it-eye.nl/weblog/2006/03/08/138/comment-page-1/#comment-5869</link>
		<dc:creator>Mark B.</dc:creator>
		<pubDate>Thu, 13 Jul 2006 21:11:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.it-eye.nl/weblog/2006/03/08/138/#comment-5869</guid>
		<description>Am I Tied to Oracle jax-rpc-client libraries when using oc4j ? 

I ran in to a problem with jdevelopers embedded OC4J container when using web service libraries such as wsdl4j, saaj, jax-rpc.
With the code that I am currently writing, for example I used wsdl4j from Axis:   

import javax.wsdl.factory.WSDLFactory;
import javax.wsdl.xml.WSDLReader;

WSDLFactory wsdlFactory = WSDLFactory.newInstance();
WSDLReader reader = wsdlFactory.newWSDLReader(); 

As this code runs normal in the jvm, it didn’t work any more ones I had deployed to oc4j and ran it from a servlet.
When I started the debugger, I noticed that the ‘reader’ variable in the code example above, was of type oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl instead of type javax.wsdl.xml.WSDLReader.

Apparently oc4j’s class-loader can’t resolve the wsdl4j.jar and uses the standard webservice jar files that are contained in the Oracle JAX-RPC CLIENT library that come with the jdeveloper installation. If I am not mistaken these are located at …\jdev1013\webservices\lib\  .

I also notices that in this lib directory oracle contains jar files for saaj, jax-rpc ect. 
Does this mean you are tied down to using the oracle implementation’s of these components, or is there a way to use libraries of your chosing ?
If not I have a huge problem, either I refactor my code to work with the oracle libraries or I abandon jdeveloper completely.
Without being able to deploy my own jar files to oc4j, jdeveloper is of no use to me.. unfortunately because until now I found it a great tool.</description>
		<content:encoded><![CDATA[<p>Am I Tied to Oracle jax-rpc-client libraries when using oc4j ? </p>
<p>I ran in to a problem with jdevelopers embedded OC4J container when using web service libraries such as wsdl4j, saaj, jax-rpc.<br />
With the code that I am currently writing, for example I used wsdl4j from Axis:   </p>
<p>import javax.wsdl.factory.WSDLFactory;<br />
import javax.wsdl.xml.WSDLReader;</p>
<p>WSDLFactory wsdlFactory = WSDLFactory.newInstance();<br />
WSDLReader reader = wsdlFactory.newWSDLReader(); </p>
<p>As this code runs normal in the jvm, it didn’t work any more ones I had deployed to oc4j and ran it from a servlet.<br />
When I started the debugger, I noticed that the ‘reader’ variable in the code example above, was of type oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl instead of type javax.wsdl.xml.WSDLReader.</p>
<p>Apparently oc4j’s class-loader can’t resolve the wsdl4j.jar and uses the standard webservice jar files that are contained in the Oracle JAX-RPC CLIENT library that come with the jdeveloper installation. If I am not mistaken these are located at …\jdev1013\webservices\lib\  .</p>
<p>I also notices that in this lib directory oracle contains jar files for saaj, jax-rpc ect.<br />
Does this mean you are tied down to using the oracle implementation’s of these components, or is there a way to use libraries of your chosing ?<br />
If not I have a huge problem, either I refactor my code to work with the oracle libraries or I abandon jdeveloper completely.<br />
Without being able to deploy my own jar files to oc4j, jdeveloper is of no use to me.. unfortunately because until now I found it a great tool.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Hofte</title>
		<link>http://www.it-eye.nl/weblog/2006/03/08/138/comment-page-1/#comment-1235</link>
		<dc:creator>Tom Hofte</dc:creator>
		<pubDate>Wed, 12 Apr 2006 07:16:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.it-eye.nl/weblog/2006/03/08/138/#comment-1235</guid>
		<description>The server you use to deploy a JAX-ws webservice, should be J2EE 1.5 compliant. This is because jax-ws havily depends on the use of annotations, an feature introduced from JEE 1.5</description>
		<content:encoded><![CDATA[<p>The server you use to deploy a JAX-ws webservice, should be J2EE 1.5 compliant. This is because jax-ws havily depends on the use of annotations, an feature introduced from JEE 1.5</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Miller</title>
		<link>http://www.it-eye.nl/weblog/2006/03/08/138/comment-page-1/#comment-1222</link>
		<dc:creator>Jon Miller</dc:creator>
		<pubDate>Tue, 11 Apr 2006 22:01:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.it-eye.nl/weblog/2006/03/08/138/#comment-1222</guid>
		<description>Thanks for the info. I wonder if the RI can be used with Tomcat in standalone mode? Or, do you need Sun&#039;s app server? The user guide says you need a &quot;JAX-WS 2.0 SI enabled servlet container.&quot;

So, NetBeans was smart enough to use JAX-WS 2.0 just by seeing the jar files there? Or, did you have to mess around with Ant scripts?</description>
		<content:encoded><![CDATA[<p>Thanks for the info. I wonder if the RI can be used with Tomcat in standalone mode? Or, do you need Sun&#8217;s app server? The user guide says you need a &#8220;JAX-WS 2.0 SI enabled servlet container.&#8221;</p>
<p>So, NetBeans was smart enough to use JAX-WS 2.0 just by seeing the jar files there? Or, did you have to mess around with Ant scripts?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Hofte</title>
		<link>http://www.it-eye.nl/weblog/2006/03/08/138/comment-page-1/#comment-1221</link>
		<dc:creator>Tom Hofte</dc:creator>
		<pubDate>Tue, 11 Apr 2006 19:12:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.it-eye.nl/weblog/2006/03/08/138/#comment-1221</guid>
		<description>I have downloaded it from the java.net: https://jax-ws.dev.java.net/
and add it as a library to my project.  You&#039;ll all the libs in the directory to your project. Note that I have done this in version 5.0 and not in 5.5. But I can imagine that it will work the same for 5.5

success</description>
		<content:encoded><![CDATA[<p>I have downloaded it from the java.net: <a href="https://jax-ws.dev.java.net/" rel="nofollow">https://jax-ws.dev.java.net/</a><br />
and add it as a library to my project.  You&#8217;ll all the libs in the directory to your project. Note that I have done this in version 5.0 and not in 5.5. But I can imagine that it will work the same for 5.5</p>
<p>success</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Miller</title>
		<link>http://www.it-eye.nl/weblog/2006/03/08/138/comment-page-1/#comment-1220</link>
		<dc:creator>Jon Miller</dc:creator>
		<pubDate>Tue, 11 Apr 2006 18:50:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.it-eye.nl/weblog/2006/03/08/138/#comment-1220</guid>
		<description>Did you get it to work with NetBeans? What&#039;s the name of the jar file that I need to add? Are they bundled with NetBeans?</description>
		<content:encoded><![CDATA[<p>Did you get it to work with NetBeans? What&#8217;s the name of the jar file that I need to add? Are they bundled with NetBeans?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
