<?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/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3027141113157201177</id><updated>2011-11-28T07:56:09.157+08:00</updated><category term='Service'/><category term='JVM'/><category term='jsf'/><category term='ViewExpired Exception'/><category term='GenericValue'/><category term='spring framework'/><category term='viewhandler'/><category term='factor'/><category term='heap fragmentation'/><category term='delegator'/><category term='remove()'/><category term='Java'/><category term='RAM'/><category term='httpsession'/><category term='findOne'/><category term='PhaseListener'/><category term='session timeout'/><category term='product'/><category term='phaseevent'/><category term='JVM performance'/><category term='makeValue'/><category term='OFBiz'/><category term='Map'/><category term='non-negative integer'/><category term='ServiceUtil'/><category term='GenericEntityException'/><category term='dmidecode --type 17'/><category term='session handling'/><category term='view expired exception'/><category term='java server faces'/><category term='Factorial'/><category term='Linux'/><category term='session'/><category term='StringUtils'/><category term='faces-config.xml'/><category term='code optimization'/><category term='DispatchContext'/><category term='dmidecode'/><category term='store()'/><category term='count'/><category term='ViewExpiredException'/><category term='memory leak'/><title type='text'>I am a Java Developer</title><subtitle type='html'>How can I help you?</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://iamajavadeveloper.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3027141113157201177/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://iamajavadeveloper.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>yours truly</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/-hY0a17ar5GI/TlDhn-M3C9I/AAAAAAAAAG4/DuS0KXP6p_I/s1600/41034_426439444964_784344964_4905225_7688754_n.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3027141113157201177.post-8887459602720417702</id><published>2009-10-08T13:17:00.002+08:00</published><updated>2009-10-08T13:22:07.883+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Map'/><category scheme='http://www.blogger.com/atom/ns#' term='ServiceUtil'/><category scheme='http://www.blogger.com/atom/ns#' term='GenericValue'/><category scheme='http://www.blogger.com/atom/ns#' term='GenericEntityException'/><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='OFBiz'/><category scheme='http://www.blogger.com/atom/ns#' term='findOne'/><category scheme='http://www.blogger.com/atom/ns#' term='DispatchContext'/><category scheme='http://www.blogger.com/atom/ns#' term='delegator'/><category scheme='http://www.blogger.com/atom/ns#' term='remove()'/><title type='text'>Deleting a Record in OFBiz using Java</title><summary type='text'>This is an example on how to delete a record in OFBiz using Java. I am assuming that the you have created the service of this method in you service.xml.public static Map deletePerson(DispatchContext dctx, Map context) {       Map resultMap = ServiceUtil.returnSuccess();       String id = (String) context.get("id");       try {             GenericValue personGV = delegator.findOne("Person", </summary><link rel='replies' type='application/atom+xml' href='http://iamajavadeveloper.blogspot.com/feeds/8887459602720417702/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iamajavadeveloper.blogspot.com/2009/10/deleting-record-in-ofbiz-using-java.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3027141113157201177/posts/default/8887459602720417702'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3027141113157201177/posts/default/8887459602720417702'/><link rel='alternate' type='text/html' href='http://iamajavadeveloper.blogspot.com/2009/10/deleting-record-in-ofbiz-using-java.html' title='Deleting a Record in OFBiz using Java'/><author><name>yours truly</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/-hY0a17ar5GI/TlDhn-M3C9I/AAAAAAAAAG4/DuS0KXP6p_I/s1600/41034_426439444964_784344964_4905225_7688754_n.jpg'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3027141113157201177.post-6025262845828696598</id><published>2009-10-08T13:04:00.005+08:00</published><updated>2009-10-08T13:23:29.570+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Map'/><category scheme='http://www.blogger.com/atom/ns#' term='ServiceUtil'/><category scheme='http://www.blogger.com/atom/ns#' term='GenericValue'/><category scheme='http://www.blogger.com/atom/ns#' term='GenericEntityException'/><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='OFBiz'/><category scheme='http://www.blogger.com/atom/ns#' term='findOne'/><category scheme='http://www.blogger.com/atom/ns#' term='store()'/><category scheme='http://www.blogger.com/atom/ns#' term='DispatchContext'/><category scheme='http://www.blogger.com/atom/ns#' term='delegator'/><title type='text'>Updating a Record in OFBiz using Java</title><summary type='text'>This is an example on how to update a record in OFBiz using Java as engine. I am assuming that the you have created the service of this method in you service.xml.public static Map updatePerson(DispatchContext dctx, Map context) {       Map resultMap = ServiceUtil.returnSuccess();       //this is how you fetch the values from the request       String id = (String) context.get("id");       String </summary><link rel='replies' type='application/atom+xml' href='http://iamajavadeveloper.blogspot.com/feeds/6025262845828696598/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iamajavadeveloper.blogspot.com/2009/10/updating-record-in-ofbiz-using-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3027141113157201177/posts/default/6025262845828696598'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3027141113157201177/posts/default/6025262845828696598'/><link rel='alternate' type='text/html' href='http://iamajavadeveloper.blogspot.com/2009/10/updating-record-in-ofbiz-using-java.html' title='Updating a Record in OFBiz using Java'/><author><name>yours truly</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/-hY0a17ar5GI/TlDhn-M3C9I/AAAAAAAAAG4/DuS0KXP6p_I/s1600/41034_426439444964_784344964_4905225_7688754_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3027141113157201177.post-9209979077360895155</id><published>2009-10-07T18:27:00.012+08:00</published><updated>2009-10-07T19:12:31.735+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Map'/><category scheme='http://www.blogger.com/atom/ns#' term='makeValue'/><category scheme='http://www.blogger.com/atom/ns#' term='ServiceUtil'/><category scheme='http://www.blogger.com/atom/ns#' term='GenericValue'/><category scheme='http://www.blogger.com/atom/ns#' term='GenericEntityException'/><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='OFBiz'/><category scheme='http://www.blogger.com/atom/ns#' term='Service'/><category scheme='http://www.blogger.com/atom/ns#' term='DispatchContext'/><title type='text'>Creating a New Record in OFBiz using Java</title><summary type='text'>This is an example on how to create a record in OFBiz using Java as engine. First, you have to create a service containing the attributes/values to be passed in your Java method. This service is invoked in your controller.xml.&lt;service name=“addPerson” engine=“java” location=“org.ofbiz.person.PersonServices” invoke=“addPerson” auth=“true”&gt;       &lt;description&gt;Add Person Service&lt;/description&gt;       </summary><link rel='replies' type='application/atom+xml' href='http://iamajavadeveloper.blogspot.com/feeds/9209979077360895155/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iamajavadeveloper.blogspot.com/2009/10/creating-new-record-in-ofbiz-using-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3027141113157201177/posts/default/9209979077360895155'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3027141113157201177/posts/default/9209979077360895155'/><link rel='alternate' type='text/html' href='http://iamajavadeveloper.blogspot.com/2009/10/creating-new-record-in-ofbiz-using-java.html' title='Creating a New Record in OFBiz using Java'/><author><name>yours truly</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/-hY0a17ar5GI/TlDhn-M3C9I/AAAAAAAAAG4/DuS0KXP6p_I/s1600/41034_426439444964_784344964_4905225_7688754_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3027141113157201177.post-1631416075450375772</id><published>2009-10-04T16:50:00.006+08:00</published><updated>2009-10-05T13:49:06.185+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JVM performance'/><category scheme='http://www.blogger.com/atom/ns#' term='memory leak'/><category scheme='http://www.blogger.com/atom/ns#' term='code optimization'/><category scheme='http://www.blogger.com/atom/ns#' term='heap fragmentation'/><category scheme='http://www.blogger.com/atom/ns#' term='JVM'/><title type='text'>JVM Performance</title><summary type='text'>In Java, making your code running is just a part of the development. Aside from that, you must also consider the performance of your system. Your system should response immediately even at unusually high or peak loads. Therefore, you must be aware of the things your code might bring because Memory leaks, heap fragmentation and others are actually caused by your own code. Here's a PDF file I found</summary><link rel='replies' type='application/atom+xml' href='http://iamajavadeveloper.blogspot.com/feeds/1631416075450375772/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iamajavadeveloper.blogspot.com/2009/10/jvm-performance.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3027141113157201177/posts/default/1631416075450375772'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3027141113157201177/posts/default/1631416075450375772'/><link rel='alternate' type='text/html' href='http://iamajavadeveloper.blogspot.com/2009/10/jvm-performance.html' title='JVM Performance'/><author><name>yours truly</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/-hY0a17ar5GI/TlDhn-M3C9I/AAAAAAAAAG4/DuS0KXP6p_I/s1600/41034_426439444964_784344964_4905225_7688754_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3027141113157201177.post-8821442224798882063</id><published>2009-10-04T16:19:00.009+08:00</published><updated>2009-10-04T17:44:46.040+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='non-negative integer'/><category scheme='http://www.blogger.com/atom/ns#' term='factor'/><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='Factorial'/><category scheme='http://www.blogger.com/atom/ns#' term='product'/><category scheme='http://www.blogger.com/atom/ns#' term='count'/><title type='text'>Factorial Code Snippet</title><summary type='text'>Here's a Java code example for Factorial. In this example, we will compute for the Factorial of 6 which is denoted by variable n:        int n = 6; // where n is a non-negative integer        int count=1, product=1, factor=1;        do{               product = product * factor++;               count++;        }while(count &lt;= n);        System.out.println(n + "! = " + product);</summary><link rel='replies' type='application/atom+xml' href='http://iamajavadeveloper.blogspot.com/feeds/8821442224798882063/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iamajavadeveloper.blogspot.com/2009/10/factorial-code-snippet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3027141113157201177/posts/default/8821442224798882063'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3027141113157201177/posts/default/8821442224798882063'/><link rel='alternate' type='text/html' href='http://iamajavadeveloper.blogspot.com/2009/10/factorial-code-snippet.html' title='Factorial Code Snippet'/><author><name>yours truly</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/-hY0a17ar5GI/TlDhn-M3C9I/AAAAAAAAAG4/DuS0KXP6p_I/s1600/41034_426439444964_784344964_4905225_7688754_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3027141113157201177.post-8097856806869943335</id><published>2009-10-01T23:48:00.004+08:00</published><updated>2009-10-27T11:50:54.912+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='dmidecode --type 17'/><category scheme='http://www.blogger.com/atom/ns#' term='dmidecode'/><category scheme='http://www.blogger.com/atom/ns#' term='RAM'/><title type='text'>How check your RAM information in Linux</title><summary type='text'>To know your RAM/memory information. First, you need to be root. Then just type the following:    # su    # dmidecode --type 17</summary><link rel='replies' type='application/atom+xml' href='http://iamajavadeveloper.blogspot.com/feeds/8097856806869943335/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iamajavadeveloper.blogspot.com/2009/10/how-check-your-ram-in-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3027141113157201177/posts/default/8097856806869943335'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3027141113157201177/posts/default/8097856806869943335'/><link rel='alternate' type='text/html' href='http://iamajavadeveloper.blogspot.com/2009/10/how-check-your-ram-in-linux.html' title='How check your RAM information in Linux'/><author><name>yours truly</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/-hY0a17ar5GI/TlDhn-M3C9I/AAAAAAAAAG4/DuS0KXP6p_I/s1600/41034_426439444964_784344964_4905225_7688754_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3027141113157201177.post-1373704244436161485</id><published>2009-09-24T11:57:00.001+08:00</published><updated>2009-09-24T12:04:39.486+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='phaseevent'/><category scheme='http://www.blogger.com/atom/ns#' term='PhaseListener'/><category scheme='http://www.blogger.com/atom/ns#' term='viewhandler'/><category scheme='http://www.blogger.com/atom/ns#' term='session handling'/><category scheme='http://www.blogger.com/atom/ns#' term='session'/><category scheme='http://www.blogger.com/atom/ns#' term='faces-config.xml'/><category scheme='http://www.blogger.com/atom/ns#' term='httpsession'/><category scheme='http://www.blogger.com/atom/ns#' term='session timeout'/><category scheme='http://www.blogger.com/atom/ns#' term='jsf'/><title type='text'>JSF Session Timeout Handling</title><summary type='text'>Here's my solution for session handling. When your session timed out, you will be redirected to the index page which is commonly the login page to login again.package com.mypackage.web.session;import javax.faces.FacesException;import javax.faces.application.Application;import javax.faces.application.ViewHandler;import javax.faces.component.UIViewRoot;import javax.faces.context.ExternalContext;</summary><link rel='replies' type='application/atom+xml' href='http://iamajavadeveloper.blogspot.com/feeds/1373704244436161485/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iamajavadeveloper.blogspot.com/2009/09/jsf-sesion-timeout-handling.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3027141113157201177/posts/default/1373704244436161485'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3027141113157201177/posts/default/1373704244436161485'/><link rel='alternate' type='text/html' href='http://iamajavadeveloper.blogspot.com/2009/09/jsf-sesion-timeout-handling.html' title='JSF Session Timeout Handling'/><author><name>yours truly</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/-hY0a17ar5GI/TlDhn-M3C9I/AAAAAAAAAG4/DuS0KXP6p_I/s1600/41034_426439444964_784344964_4905225_7688754_n.jpg'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3027141113157201177.post-8321321177374012003</id><published>2009-09-24T10:57:00.001+08:00</published><updated>2009-09-24T14:27:43.092+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='StringUtils'/><category scheme='http://www.blogger.com/atom/ns#' term='view expired exception'/><category scheme='http://www.blogger.com/atom/ns#' term='java server faces'/><category scheme='http://www.blogger.com/atom/ns#' term='ViewExpired Exception'/><category scheme='http://www.blogger.com/atom/ns#' term='spring framework'/><category scheme='http://www.blogger.com/atom/ns#' term='ViewExpiredException'/><category scheme='http://www.blogger.com/atom/ns#' term='jsf'/><title type='text'>How to Handle ViewExpiredException in JSF</title><summary type='text'>Here's the solution on how to handle the ViewExpiredException in JSF. This occurs when your session timed out or you tried to invalidate the session when you logged out. I've used this code to my 2 previous projects and it really worked fine.First, you just need to add Spring 2.5 to your project libraries. Download Spring 2.5 here and just copy the code below.import </summary><link rel='replies' type='application/atom+xml' href='http://iamajavadeveloper.blogspot.com/feeds/8321321177374012003/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iamajavadeveloper.blogspot.com/2009/09/how-to-handle-viewexpiredexception-in.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3027141113157201177/posts/default/8321321177374012003'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3027141113157201177/posts/default/8321321177374012003'/><link rel='alternate' type='text/html' href='http://iamajavadeveloper.blogspot.com/2009/09/how-to-handle-viewexpiredexception-in.html' title='How to Handle ViewExpiredException in JSF'/><author><name>yours truly</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/-hY0a17ar5GI/TlDhn-M3C9I/AAAAAAAAAG4/DuS0KXP6p_I/s1600/41034_426439444964_784344964_4905225_7688754_n.jpg'/></author><thr:total>6</thr:total></entry></feed>
