<?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/"
	>

<channel>
	<title>betweenGo &#187; Programming</title>
	<atom:link href="http://betweengo.com/category/atg/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://betweengo.com</link>
	<description>We make Ruby on Rails easy.  We make ATG easy.</description>
	<lastBuildDate>Thu, 24 Jun 2010 19:42:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Combining XML in ATG</title>
		<link>http://betweengo.com/2010/01/12/combining-xml-in-atg/</link>
		<comments>http://betweengo.com/2010/01/12/combining-xml-in-atg/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 19:58:07 +0000</pubDate>
		<dc:creator>Frank Kim</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[ID generators]]></category>
		<category><![CDATA[product catalog]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://betweengo.com/2010/01/12/combining-xml-in-atg/</guid>
		<description><![CDATA[ 
(Photo: Legospective by Guillermо)

ATG uses XML files sometimes instead of Java properties files for configuration.&#160; Combining them is not as straight-forward as with Java properties files but more flexible.
The XML File Combination section in the Nucleus: Organizing JavaBean Components chapter of the ATG Programming guide gives a good explanation.&#160; You can combine XML files [...]


Related posts:<ol><li><a href='http://betweengo.com/2007/11/29/cannot-create-new-scenario/' rel='bookmark' title='Permanent Link: Cannot Create New ATG Scenario'>Cannot Create New ATG Scenario</a></li>
<li><a href='http://betweengo.com/2010/01/25/configuring-atg-to-send-email-via-comcast-smtp/' rel='bookmark' title='Permanent Link: Configuring ATG to Send Email via Comcast SMTP'>Configuring ATG to Send Email via Comcast SMTP</a></li>
<li><a href='http://betweengo.com/2009/07/22/how-to-get-permission-to-create-scenarios-in-acc/' rel='bookmark' title='Permanent Link: How to Get Permission to Create Scenarios in ACC'>How to Get Permission to Create Scenarios in ACC</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p align="center"><a href="http://www.flickr.com/photos/grdloizaga/817443503/"><img style="display: inline; margin-left: 0px; margin-right: 0px" title="Legospective on Flickr" alt="Legospective on Flickr" src="http://farm2.static.flickr.com/1197/817443503_e9766c35fd.jpg" /></a> </p>
<p align="center">(Photo: <a title="Legospective on Flickr" href="http://www.flickr.com/photos/grdloizaga/817443503/">Legospective</a> by <a title="Flickr: Guillermо&#39;s Photostream" href="http://www.flickr.com/photos/grdloizaga/">Guillermо</a>)</p>
</p>
<p>ATG uses XML files sometimes instead of Java properties files for configuration.&#160; Combining them is not as straight-forward as with Java properties files but more flexible.</p>
<p>The <a title="XML File Combination" href="http://www.atg.com/repositories/ContentCatalogRepository_en/manuals/ATG2006.3/dynprog/dynprog0207.html">XML File Combination</a> section in the <a title="Nucleus: Organizing JavaBean Components" href="http://www.atg.com/repositories/ContentCatalogRepository_en/manuals/ATG2006.3/dynprog/dynprog0201.html">Nucleus: Organizing JavaBean Components</a> chapter of the <a href="http://www.atg.com/repositories/ContentCatalogRepository_en/manuals/ATG2006.3/dynprog/index.html">ATG Programming guide</a> gives a good explanation.&#160; You can combine XML files using one of these methods.</p>
<ul>
<li>replace </li>
<li>remove </li>
<li>append </li>
<li>append-without-matching </li>
<li>prepend </li>
<li>prepend-without-matching </li>
</ul>
<p>In most cases you will append.&#160; In one case I wanted to update the <a title="ID Generators" href="http://www.atg.com/repositories/ContentCatalogRepository_en/manuals/ATG2006.3/dynprog/dynprog0509.html">id-spaces</a> for orders but I had to first remove before appending because replace did not work in this case.&#160; This is how I did it.</p>
<pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;

&lt;id-spaces&gt;
  &lt;id-space xml-combine=&quot;remove&quot; name=&quot;order&quot; seed=&quot;1&quot; batch-size=&quot;10000&quot; prefix=&quot;o&quot;/&gt;
  &lt;id-space name=&quot;order&quot; seed=&quot;100&quot; batch-size=&quot;1&quot; prefix=&quot;m&quot;/&gt;
&lt;/id-spaces&gt;</pre>
<p>To see the result of XML combining you can use the Dynamo Administration Server’s Component Browser to go to the component and then click on the property which specifies the XML file(s).</p>
<p>For example to find the result of combining idspaces.xml’s you would go to <a href="http://localhost:8080/dyn/admin/nucleus/atg/dynamo/service/IdGenerator/?propertyName=initialIdSpaces">http://localhost:8080/dyn/admin/nucleus/atg/dynamo/service/IdGenerator/?propertyName=initialIdSpaces</a>.</p>
<p>To find the result of combining productCatalogs.xml’s you would go to <a href="http://localhost:8080/dyn/admin/nucleus/atg/commerce/catalog/ProductCatalog/?propertyName=definitionFiles">http://localhost:8080/dyn/admin/nucleus/atg/commerce/catalog/ProductCatalog/?propertyName=definitionFiles</a>.</p>


<p>Related posts:<ol><li><a href='http://betweengo.com/2007/11/29/cannot-create-new-scenario/' rel='bookmark' title='Permanent Link: Cannot Create New ATG Scenario'>Cannot Create New ATG Scenario</a></li>
<li><a href='http://betweengo.com/2010/01/25/configuring-atg-to-send-email-via-comcast-smtp/' rel='bookmark' title='Permanent Link: Configuring ATG to Send Email via Comcast SMTP'>Configuring ATG to Send Email via Comcast SMTP</a></li>
<li><a href='http://betweengo.com/2009/07/22/how-to-get-permission-to-create-scenarios-in-acc/' rel='bookmark' title='Permanent Link: How to Get Permission to Create Scenarios in ACC'>How to Get Permission to Create Scenarios in ACC</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://betweengo.com/2010/01/12/combining-xml-in-atg/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debug ATG running on JBoss with Eclipse</title>
		<link>http://betweengo.com/2009/07/27/debug-atg-running-on-jboss-with-eclipse/</link>
		<comments>http://betweengo.com/2009/07/27/debug-atg-running-on-jboss-with-eclipse/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 12:00:00 +0000</pubDate>
		<dc:creator>Frank Kim</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[ATG]]></category>
		<category><![CDATA[JBoss]]></category>

		<guid isPermaLink="false">http://betweengo.com/2009/07/27/debug-atg-running-on-jboss-with-eclipse/</guid>
		<description><![CDATA[&#160; 
With Eclipse debugging an ATG application running on JBoss is fairly straightforward.

Configure JBoss to start up with Java options for debugging.      
On UNIX you do this by uncommenting this line in &#60;JBoss&#62;/bin/run.conf.
#JAVA_OPTS=&#34;$JAVA_OPTS -Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y&#34;
On Windows you do this by uncommenting this line in &#60;JBoss&#62;/bin/run.bat. 
rem set JAVA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y %JAVA_OPTS%

Create [...]


Related posts:<ol><li><a href='http://betweengo.com/2009/07/14/recurring-illegal-access-errors-in-jboss-when-running-atg/' rel='bookmark' title='Permanent Link: Recurring Illegal Access Errors in JBoss when running ATG'>Recurring Illegal Access Errors in JBoss when running ATG</a></li>
<li><a href='http://betweengo.com/2009/09/28/running-jboss-with-oracle/' rel='bookmark' title='Permanent Link: Running JBoss with Oracle'>Running JBoss with Oracle</a></li>
<li><a href='http://betweengo.com/2009/07/20/create-additional-jboss-application-server-configurations/' rel='bookmark' title='Permanent Link: Create Additional JBoss Application Server Configurations'>Create Additional JBoss Application Server Configurations</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><a href="http://oreilly.com/java/archive/eclipse-jboss-remote-debug.html?page=8"><img title="Configuring Eclipse for Remote Debugging - O&#39;Reilly Media" alt="Configuring Eclipse for Remote Debugging - O&#39;Reilly Media" src="http://oreillynet.com/onjava/2005/08/31/graphics/Image16.gif" /></a>&#160; </p>
<p>With <a title="Eclipse" href="http://eclipse.org">Eclipse</a> debugging an <a title="ATG" href="http://atg.com/">ATG</a> application running on <a title="JBoss" href="http://jboss.org/">JBoss</a> is fairly straightforward.</p>
<ol>
<li>Configure JBoss to start up with Java options for debugging.      </p>
<p>On UNIX you do this by uncommenting this line in &lt;JBoss&gt;/bin/run.conf.
<pre>#JAVA_OPTS=&quot;$JAVA_OPTS -Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y&quot;</pre>
<p>On Windows you do this by uncommenting this line in &lt;JBoss&gt;/bin/run.bat. </p>
<pre>rem set JAVA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y %JAVA_OPTS%</pre>
</li>
<li>Create a remote Java application debug configuration using the port you specified in step 1.&#160; The default port is 8787. </li>
</ol>
<p>For further reading please see <a title="Debugging Nucleus components in JBoss with Eclipse - KnobsLeversButtons" href="http://blog.pulleman.com/2007/05/27/debugging-nucleus-components-in-jboss-with-eclipse/">Debugging Nucleus components in JBoss with Eclipse</a> or <a title="EclipseZone - Remote Debugging with Eclipse" href="http://www.eclipsezone.com/eclipse/forums/t53459.html">Remote Debugging with Eclipse</a>.&#160; There is also a very complete tutorial from <a title="Technology Books, Tech Conferences, IT Courses, News - O’Reilly Media" href="http://oreilly.com/">O’Reilly Media</a> called <a title="Configuring Eclipse for Remote Debugging - O&#39;Reilly Media" href="http://oreilly.com/java/archive/eclipse-jboss-remote-debug.html">Configuring Eclipse for Remote Debugging</a>.</p>


<p>Related posts:<ol><li><a href='http://betweengo.com/2009/07/14/recurring-illegal-access-errors-in-jboss-when-running-atg/' rel='bookmark' title='Permanent Link: Recurring Illegal Access Errors in JBoss when running ATG'>Recurring Illegal Access Errors in JBoss when running ATG</a></li>
<li><a href='http://betweengo.com/2009/09/28/running-jboss-with-oracle/' rel='bookmark' title='Permanent Link: Running JBoss with Oracle'>Running JBoss with Oracle</a></li>
<li><a href='http://betweengo.com/2009/07/20/create-additional-jboss-application-server-configurations/' rel='bookmark' title='Permanent Link: Create Additional JBoss Application Server Configurations'>Create Additional JBoss Application Server Configurations</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://betweengo.com/2009/07/27/debug-atg-running-on-jboss-with-eclipse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>java.io.FileNotFoundException for valid URL</title>
		<link>http://betweengo.com/2005/09/14/java-filenotfoundexception-for-valid-url/</link>
		<comments>http://betweengo.com/2005/09/14/java-filenotfoundexception-for-valid-url/#comments</comments>
		<pubDate>Wed, 14 Sep 2005 20:32:13 +0000</pubDate>
		<dc:creator>Frank Kim</dc:creator>
				<category><![CDATA[Java SE]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[ATG]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://betweengo.com/?p=29</guid>
		<description><![CDATA[In one of our ATG servlet&#8217;s we were making a normal HTTP call to a page located on our ATG Dynamo server.

url = new URL(urlString);
connection = (HttpURLConnection)url.openConnection();
reader = new InputStreamReader(connection.getInputStream());

However when trying to get the input stream we got a FileNotFoundException yet we were able to go to the same URL using a browser.  [...]


Related posts:<ol><li><a href='http://betweengo.com/2007/02/28/updating-atg-after-installing-new-java-sdk/' rel='bookmark' title='Permanent Link: Updating ATG after installing new Java SDK'>Updating ATG after installing new Java SDK</a></li>
<li><a href='http://betweengo.com/2009/01/15/urlequals-and-hashcode-make-blocking-internet-connections/' rel='bookmark' title='Permanent Link: URL.equals and hashCode make blocking Internet connections'>URL.equals and hashCode make blocking Internet connections</a></li>
<li><a href='http://betweengo.com/2009/07/21/namenotfoundexceptions-during-start-up-of-atg-application-on-jboss/' rel='bookmark' title='Permanent Link: NameNotFoundExceptions during start up of ATG application on JBoss'>NameNotFoundExceptions during start up of ATG application on JBoss</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>In one of our ATG servlet&#8217;s we were making a normal HTTP call to a page located on our ATG Dynamo server.<br />
<code><br />
url = new URL(urlString);<br />
connection = (HttpURLConnection)url.openConnection();<br />
reader = new InputStreamReader(connection.getInputStream());<br />
</code></p>
<p>However when trying to get the input stream we got a <code>FileNotFoundException</code> yet we were able to go to the same URL using a browser.  Googling around we found this <a href="http://forum.java.sun.com/thread.jspa?threadID=337084&amp;tstart=15">lovely thread about the same problem</a>.</p>
<p>To summarize the thread, the problem was in our proxy settings which are set on Windows in <code>localconfig/environment.bat</code> and on UNIX in <code>localconfig/environment.sh</code>.  An example of proxy settings on Windows is <code>set PROXY_ARGS=-Dhttp.proxyHost=192.168.1.134 -Dhttp.proxyPort=8080</code>.</p>
<p>The proxy server did not recognize our machines as valid clients so it rejected our requests.  Once we changed the <code>proxyHost</code> argument to point to a valid server then this problem was fixed.</p>


<p>Related posts:<ol><li><a href='http://betweengo.com/2007/02/28/updating-atg-after-installing-new-java-sdk/' rel='bookmark' title='Permanent Link: Updating ATG after installing new Java SDK'>Updating ATG after installing new Java SDK</a></li>
<li><a href='http://betweengo.com/2009/01/15/urlequals-and-hashcode-make-blocking-internet-connections/' rel='bookmark' title='Permanent Link: URL.equals and hashCode make blocking Internet connections'>URL.equals and hashCode make blocking Internet connections</a></li>
<li><a href='http://betweengo.com/2009/07/21/namenotfoundexceptions-during-start-up-of-atg-application-on-jboss/' rel='bookmark' title='Permanent Link: NameNotFoundExceptions during start up of ATG application on JBoss'>NameNotFoundExceptions during start up of ATG application on JBoss</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://betweengo.com/2005/09/14/java-filenotfoundexception-for-valid-url/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JSP Dynamo Request Retrieval</title>
		<link>http://betweengo.com/2005/08/30/jsp-dynamo-request-retrieval/</link>
		<comments>http://betweengo.com/2005/08/30/jsp-dynamo-request-retrieval/#comments</comments>
		<pubDate>Tue, 30 Aug 2005 21:18:24 +0000</pubDate>
		<dc:creator>Frank Kim</dc:creator>
				<category><![CDATA[Page Development]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[ATG]]></category>

		<guid isPermaLink="false">http://betweengo.com/?p=26</guid>
		<description><![CDATA[In JHTML pages, the request object is of class DynamoHttpServletRequest which has many methods that are not part of the HttpServletRequest interface including the very useful resolveName method for looking up components in Nucleus.
In JSP pages on ATG there is no guarantee that the request object is of class DynamoHttpServletRequest.  According to the JSP [...]


Related posts:<ol><li><a href='http://betweengo.com/2009/05/04/get-jstl-vars-from-pagecontext/' rel='bookmark' title='Permanent Link: Get JSTL Vars from PageContext'>Get JSTL Vars from PageContext</a></li>
<li><a href='http://betweengo.com/2009/04/10/getting-the-request-parameter/' rel='bookmark' title='Permanent Link: Getting the request parameter'>Getting the request parameter</a></li>
<li><a href='http://betweengo.com/2008/08/22/trim-white-space-from-jsp/' rel='bookmark' title='Permanent Link: Trim White Space from JSP'>Trim White Space from JSP</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>In JHTML pages, the request object is of class <code>DynamoHttpServletRequest</code> which has many methods that are not part of the <code>HttpServletRequest</code> interface including the very useful <code>resolveName</code> method for looking up components in Nucleus.</p>
<p>In JSP pages on ATG there is no guarantee that the request object is of class <code>DynamoHttpServletRequest</code>.  According to the JSP specification the request object always implements the <code>HttpServletRequest</code> interface.</p>
<p>If you need to get the  <code>DynamoHttpServletRequest</code> do something like this:</p>
<pre>DynamoHttpServletRequest dynRequest  = atg.servlet.ServletUtil.getDynamoRequest(request);
</pre>
<p>If you need to get a <code>PortalServletRequest</code> do something like this:</p>
<pre>PortalServletRequest portalRequest = (PortalServletRequest) request.getAttribute(atg.portal.servlet.Attributes.PORTALSERVLETREQUEST);</pre>


<p>Related posts:<ol><li><a href='http://betweengo.com/2009/05/04/get-jstl-vars-from-pagecontext/' rel='bookmark' title='Permanent Link: Get JSTL Vars from PageContext'>Get JSTL Vars from PageContext</a></li>
<li><a href='http://betweengo.com/2009/04/10/getting-the-request-parameter/' rel='bookmark' title='Permanent Link: Getting the request parameter'>Getting the request parameter</a></li>
<li><a href='http://betweengo.com/2008/08/22/trim-white-space-from-jsp/' rel='bookmark' title='Permanent Link: Trim White Space from JSP'>Trim White Space from JSP</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://betweengo.com/2005/08/30/jsp-dynamo-request-retrieval/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->