<?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>NewPush &#187; Java</title> <atom:link href="http://newpush.com/tag/java/feed/" rel="self" type="application/rss+xml" /><link>http://newpush.com</link> <description>Server Hosting, Data Warehouse Hosting, Collaboration</description> <lastBuildDate>Mon, 30 Jan 2012 15:40:45 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>Java Shopping Cart and eCommerce Solutions</title><link>http://newpush.com/2010/12/java-shopping-cart-and-ecommerce-solutions/</link> <comments>http://newpush.com/2010/12/java-shopping-cart-and-ecommerce-solutions/#comments</comments> <pubDate>Tue, 07 Dec 2010 07:27:38 +0000</pubDate> <dc:creator>Pete</dc:creator> <category><![CDATA[AIX]]></category> <category><![CDATA[Cloud Computing]]></category> <category><![CDATA[Data Warehouse]]></category> <category><![CDATA[DB2]]></category> <category><![CDATA[Dedicated Servers]]></category> <category><![CDATA[Hosting Support]]></category> <category><![CDATA[Java]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Managed Hosting]]></category> <category><![CDATA[eCommerce]]></category> <category><![CDATA[Shopping Cart]]></category><guid isPermaLink="false">http://newpush.com/?p=860</guid> <description><![CDATA[Java Shopping Cart Hosting The need to host a shopping cart comes up on a regular basis. There are literally hundreds of very good solutions out there. Here is a list of carts that satisfy the following criteria: - configurable &#8230; <a href="http://newpush.com/2010/12/java-shopping-cart-and-ecommerce-solutions/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<h1>Java Shopping Cart Hosting</h1><p>The need to host a shopping cart comes up on a regular basis.  There are  literally hundreds of very good solutions out there.  Here is a list of carts that satisfy the following criteria:<br /> - configurable<br /> - customizable<br /> - embeddable<br /> - has a flexible API<br /> - compatible with IBM DB2<a rel="attachment wp-att-865" href="http://newpush.com/2010/12/java-shopping-cart-and-ecommerce-solutions/im-mark-170x22/"> <img class="size-full wp-image-865 alignright" title="Java Shopping Cart Hosting for IBM DB2" src="http://newpush.com/wp-content/uploads/2010/12/im-mark-170x22.gif?9d7bd4" alt="Java Shopping Cart Hosting for IBM DB2" width="170" height="22" /></a><br /> - scalable<br /> - reliable</p><p>With these requirements, Java EE is a good technology to settle on, hence the need to find Java Shopping Cart Hosting.</p><h2>Java Shopping Cart Hosting &#8211; Ready to Go Solutions</h2><p>The following products have been identified as viable solutions for Java Shopping Cart Hosting deployments:</p><ul><li>http://www-01.ibm.com/software/genservers/commerce/express/<a rel="attachment wp-att-866" href="http://newpush.com/2010/12/java-shopping-cart-and-ecommerce-solutions/ws-mark-170x22/"> <img class="size-full wp-image-866 alignright" title="IBM Websphere Commerce" src="http://newpush.com/wp-content/uploads/2010/12/ws-mark-170x22.gif?9d7bd4" alt="Java Shopping Cart Hosting with IBM Websphere Commerce" width="170" height="22" /></a></li><li>http://www.softslate.com/</li><li>http://ofbiz.apache.org/</li><li>http://www.shopizer.com/</li><li>http://www.jadasite.com/</li><li>http://www.openedit.org/</li><li>http://www.konakart.com/</li><li>http://www.avetti.com/</li><li>http://allbinary.appspot.com/Weblisket.jsp</li></ul><h3>Java Shopping Cart Hosting &#8211; Tutorials</h3><p>There are also a couple good tutorials we found that would walk you through how to create a shopping cart from scratch to embed into an existing application:</p><ul><li>http://www.ibm.com/developerworks/library/j-ajax1/</li><li>http://www.tech-freaks.in/Java-Programming/JSP-Servlets/shopping-cart.html</li></ul><p>Any of the above is supported in our <a href="/category/services/managed-hosting/">Managed Hosting</a> environment for a successful Java Shopping Cart Hosting deployment.</p> ]]></content:encoded> <wfw:commentRss>http://newpush.com/2010/12/java-shopping-cart-and-ecommerce-solutions/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Creating a User Defined Function (UDF) in Java for IBM DB2 9.7</title><link>http://newpush.com/2009/08/creating-a-user-defined-function-udf-in-java-for-ibm-db2-9-7/</link> <comments>http://newpush.com/2009/08/creating-a-user-defined-function-udf-in-java-for-ibm-db2-9-7/#comments</comments> <pubDate>Mon, 24 Aug 2009 08:32:17 +0000</pubDate> <dc:creator>Balazs</dc:creator> <category><![CDATA[DB2]]></category> <category><![CDATA[DB2 9.7]]></category> <category><![CDATA[IBM]]></category> <category><![CDATA[Java]]></category> <category><![CDATA[UDF]]></category><guid isPermaLink="false">http://www.wdream.com/?p=387</guid> <description><![CDATA[Intro One of the great features of DB2 is that it can be extended with custom code using SQL, C/C++, Java and COBOL. One of the great new features added to DB2 in 9.7 is the ability to run native &#8230; <a href="http://newpush.com/2009/08/creating-a-user-defined-function-udf-in-java-for-ibm-db2-9-7/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<h4>Intro</h4><p>One of the great features of DB2 is that it can be extended with custom code using SQL, C/C++, Java and COBOL.  One of the great new features added to DB2 in 9.7 is the ability to run native Oracle PL/SQL code, that capability opens up a world of possibilities, and at the same time, the need to extend DB2 with functions that might have been available on the Oracle install and now need to be replicated on DB2.  In this short article I describe how to extend DB2 9.7 with Java UDFs.</p><h4>Prerequisites</h4><ul><li>Check that Java is properly installed and configured on DB2:<code><br /> db2 get dbm config|grep JDK</code><br /> The output should show the path to the JDK installation in DB2.  If that isn&#8217;t the case, you need to consult the DB2 install manual and make sure Java is installed and configured for DB2.</li><li>Make sure that your user has access to java and javac, and that it is the same version or compatible with DB2&#8242;s JDK</li><li>Set the database manager parameter <code>KEEPFENCED</code> to <code>NO</code>, so that the UDF will be reloaded in each call.</li></ul><h4>Writing the test code</h4><ul><li>Use your favorite text editor or IDE and create a file called <code>udftest.java</code> with the sample code:<pre>
public class udftest {
        public static String udftest(String domainName) {
                return "Domain Name: " + domainName;
        }
}</pre></li><li>Compile the java program:<code><br /> javac udftest.java </code></li><li>Create a jar file:<code><br /> jar cvf udftest.jar udftest.class</code></li><li>Register the jar file with DB2:<code><br /> db2 "CALL sqlj.install_jar('file:/home/bnagy/dev/java/udf/udftest.jar','UDFTESTJAR')"</code></li></ul><h4>Creating the UDF in DB2</h4><ul><li>Use your favorite text editor or IDE and create a file called <code>udftest-create.sql</code> with the sample code:<code><br /> CONNECT TO SAMPLE;<br /> CREATE FUNCTION udftest(VARCHAR(255)) RETURNS VARCHAR(255)<br /> FENCED<br /> EXTERNAL NAME 'UDFTESTJAR:udftest.udftest'<br /> NOT VARIANT NO SQL PARAMETER STYLE java LANGUAGE java<br /> NO EXTERNAL ACTION;<br /> CONNECT RESET;</code></li><li>Run the scritpt in DB2:<code><br /> db2 -tvf  udftest-create.sql</code></li></ul><h4>Testing</h4><p>To check that the function works, run the following command on the command line:<code><br /> db2 "select udftest('test.com') from sysibm.sysdummy1"</code><br /> You should get a regular SELECT result set with the expected values.  If something goes wrong, you can look at the <code>db2diag.log</code> that will contain any Java stack trace that would be generated.</p><h4>References</h4><ul><li><a href="http://www.amazon.com/gp/product/0738427675?ie=UTF8&#038;tag=wdr-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=0738427675">Up and Running With DB2 for Linux (Ibm Redbooks.)</a><img src="http://www.assoc-amazon.com/e/ir?t=wdr-20&#038;l=as2&#038;o=1&#038;a=0738427675" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></li></ul> ]]></content:encoded> <wfw:commentRss>http://newpush.com/2009/08/creating-a-user-defined-function-udf-in-java-for-ibm-db2-9-7/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>How to create an MD5 password in java or Tomcat</title><link>http://newpush.com/2009/05/how-to-create-an-md5-password-in-java-or-tomcat/</link> <comments>http://newpush.com/2009/05/how-to-create-an-md5-password-in-java-or-tomcat/#comments</comments> <pubDate>Sun, 31 May 2009 14:13:34 +0000</pubDate> <dc:creator>Balazs</dc:creator> <category><![CDATA[Java]]></category> <category><![CDATA[MD5]]></category> <category><![CDATA[Tomcat]]></category><guid isPermaLink="false">http://www.wdream.com/?p=236</guid> <description><![CDATA[To create an MD5 password at the prompt, assuming you have tomcat installed in /usr/local/tomcat, type $ export TOMCAT="/usr/local/tomcat" $ java -cp "$TOMCAT/server/lib/catalina.jar:/usr/share/java/jmxri.jar:$TOMCAT/bin/commons-logging-api.jar" \ org.apache.catalina.realm.RealmBase -a md5 [secret] by replacing &#8220;[secret]&#8221; with the password. Some systems have a working digest.sh &#8230; <a href="http://newpush.com/2009/05/how-to-create-an-md5-password-in-java-or-tomcat/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p><span class="grey">To create an MD5 password at the prompt, assuming you have tomcat installed in /usr/local/tomcat, type</p><pre>$ export TOMCAT="/usr/local/tomcat"
$ java -cp "$TOMCAT/server/lib/catalina.jar:/usr/share/java/jmxri.jar:$TOMCAT/bin/commons-logging-api.jar" \
org.apache.catalina.realm.RealmBase -a md5 [secret]</pre><p>by replacing &#8220;[secret]&#8221; with the password.<br /> Some systems have a working <code>digest.sh</code> script that does the same thing. </span></p> ]]></content:encoded> <wfw:commentRss>http://newpush.com/2009/05/how-to-create-an-md5-password-in-java-or-tomcat/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Problems starting Java</title><link>http://newpush.com/2009/05/problems-starting-java/</link> <comments>http://newpush.com/2009/05/problems-starting-java/#comments</comments> <pubDate>Sun, 31 May 2009 14:12:06 +0000</pubDate> <dc:creator>Balazs</dc:creator> <category><![CDATA[Java]]></category> <category><![CDATA[JDK]]></category> <category><![CDATA[RedHat]]></category><guid isPermaLink="false">http://www.wdream.com/?p=234</guid> <description><![CDATA[If running a legacy java app on a newer RH or RHEL system, youget: Error occurred during initialization of VM Unable to load native library: .../libjava.so: symbol __libc_wait, version GLIBC_2.0 not defined in file libc.so.6 with link time reference This &#8230; <a href="http://newpush.com/2009/05/problems-starting-java/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p><span class="grey">If running a legacy java app on a newer RH or RHEL system, youget:</p><pre>Error occurred during initialization of VM
Unable to load native library:
.../libjava.so: symbol __libc_wait, version GLIBC_2.0 not
defined in file libc.so.6 with link time reference</pre><p>This is a symptom of an older JDKs that is buggy. <a href="mailto:jakub@redhat.com">Jakub Jelinek</a> of <a href="http://www.redhat.com/">RedHat</a> suggests the following:</p><pre>gcc -O2 -shared -o ~/libcwait.so -fpic -xc - &lt;&lt;EOF
#include &lt;errno.h&gt;
#include &lt;sys/syscall.h&gt;
#include &lt;sys/types.h&gt;
#include &lt;sys/wait.h&gt;
pid_t
__libc_wait (int *status)
{
  int res;
  asm volatile ("pushl %%ebxnt"
                "movl %2, %%ebxnt"
                "movl %1, %%eaxnt"
                "int $0x80nt"
                "popl %%ebx"
                : "=a" (res)
                : "i" (__NR_wait4), "0" (WAIT_ANY), "c" (status), "d" (0),
                  "S" (0));
  return res;
}
EOF</pre><p>and using LD_ASSUME_KERNEL=2.4.19 LD_PRELOAD=~/libcwait.so when you need to load the buggy JDK. </span></p> ]]></content:encoded> <wfw:commentRss>http://newpush.com/2009/05/problems-starting-java/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Served from: newpush.com @ 2012-02-09 21:41:55 by W3 Total Cache -->
