<?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:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8943868472966502596</id><updated>2010-11-11T16:07:41.981-08:00</updated><title type='text'>The J2EE Struggle</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.thej2eestruggle.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default'/><link rel='alternate' type='text/html' href='http://blog.thej2eestruggle.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default?start-index=26&amp;max-results=25'/><author><name>Anders Mathisen</name><uri>http://www.blogger.com/profile/12292801252481847900</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>50</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8943868472966502596.post-2415858828996058818</id><published>2010-09-03T01:56:00.000-07:00</published><updated>2010-09-03T02:04:48.734-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='GWT'/><category scheme='http://www.blogger.com/atom/ns#' term='chrome'/><title type='text'>bypassing Same Origin Policy in Chrome to allow debugging GWT</title><summary type='text'>Found myself creating a GWT application that should consume an existing web-service. The Same Origin Policy stopped the xmlHttpRequest with exception in chrome. When starting chrome with the command line argument --disable-web-security everything worked all fine. For some reason chrome 7.0.503.0.dev did not accept any command line switches, although the canary build 7.0.513.0.canary did.- keep on</summary><link rel='replies' type='application/atom+xml' href='http://blog.thej2eestruggle.com/feeds/2415858828996058818/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=8943868472966502596&amp;postID=2415858828996058818' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/2415858828996058818'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/2415858828996058818'/><link rel='alternate' type='text/html' href='http://blog.thej2eestruggle.com/2010/09/bypassing-same-origin-policy-in-chrome.html' title='bypassing Same Origin Policy in Chrome to allow debugging GWT'/><author><name>Anders Mathisen</name><uri>http://www.blogger.com/profile/12292801252481847900</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10176579775799243521'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8943868472966502596.post-9166412832468408676</id><published>2010-06-17T23:54:00.000-07:00</published><updated>2010-06-18T00:13:20.511-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='GWT'/><category scheme='http://www.blogger.com/atom/ns#' term='commons fileupload'/><category scheme='http://www.blogger.com/atom/ns#' term='App Engine'/><title type='text'>Google Appengine and commons fileupload</title><summary type='text'>implemented a GWT form (multipart/form-data) uploading a file to the server. The server implementation in Appengine is a servlet using commons fileupload to upload the file. The file should be less than 100kb, first attempted this code// item is FileItemStream having (! item.isFormField)InputStream is = item.openStream();byte[] data = new byte[100*1024];int len = is.read(data);Which resulted in  </summary><link rel='replies' type='application/atom+xml' href='http://blog.thej2eestruggle.com/feeds/9166412832468408676/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=8943868472966502596&amp;postID=9166412832468408676' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/9166412832468408676'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/9166412832468408676'/><link rel='alternate' type='text/html' href='http://blog.thej2eestruggle.com/2010/06/google-appengine-and-commons-fileupload.html' title='Google Appengine and commons fileupload'/><author><name>Anders Mathisen</name><uri>http://www.blogger.com/profile/12292801252481847900</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10176579775799243521'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8943868472966502596.post-471723932382689507</id><published>2010-05-21T00:07:00.000-07:00</published><updated>2010-05-21T00:18:28.896-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='GWT'/><category scheme='http://www.blogger.com/atom/ns#' term='Localization'/><category scheme='http://www.blogger.com/atom/ns#' term='I18N'/><title type='text'>GWT Locale, com.google.gwt.i18n.client.Constants</title><summary type='text'>Supprisingly when I tried my "old-style-I18N-way", I found that Resourcebundle definitely would not work in the GWT application. A little bit of googling left me with the choice of using the GWT I18N framework or googling more. The choice was the GWT I18N framework, and I tried using the Constants interface as described:Internationalization - ConstantsThe application would not load my 'no' locale</summary><link rel='replies' type='application/atom+xml' href='http://blog.thej2eestruggle.com/feeds/471723932382689507/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=8943868472966502596&amp;postID=471723932382689507' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/471723932382689507'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/471723932382689507'/><link rel='alternate' type='text/html' href='http://blog.thej2eestruggle.com/2010/05/gwt-locale-comgooglegwti18nclientconsta.html' title='GWT Locale, com.google.gwt.i18n.client.Constants'/><author><name>Anders Mathisen</name><uri>http://www.blogger.com/profile/12292801252481847900</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10176579775799243521'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8943868472966502596.post-5772967585533488423</id><published>2010-05-20T14:19:00.001-07:00</published><updated>2010-05-21T00:18:53.169-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='GWT'/><title type='text'>Seems to be longer and longer between posts....</title><summary type='text'>Well, it could be because my responsibilities at work has changed and I am now more of an architect of non-J2EE environments than I am a J2EE developer at work. Well, the need for developing applications obviously are bigger than the need for spare time so I have started a project on Google app engine, in java obviously. Mostly to learn more of the platform, but it might be a handy little </summary><link rel='replies' type='application/atom+xml' href='http://blog.thej2eestruggle.com/feeds/5772967585533488423/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=8943868472966502596&amp;postID=5772967585533488423' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/5772967585533488423'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/5772967585533488423'/><link rel='alternate' type='text/html' href='http://blog.thej2eestruggle.com/2010/05/seems-to-be-longer-and-longer-between.html' title='Seems to be longer and longer between posts....'/><author><name>Anders Mathisen</name><uri>http://www.blogger.com/profile/12292801252481847900</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10176579775799243521'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8943868472966502596.post-4502941969126160271</id><published>2009-01-20T11:13:00.000-08:00</published><updated>2009-01-20T11:18:31.838-08:00</updated><title type='text'>JDBC fetch size matters!</title><summary type='text'>wrote a little "old-style" plain JDBC application to report on some data now. The main query returned ~40.000 rows and the application took forever to display the data. The strange thing was that in TOAD the result set popped up immediately.So, I set the fetchSize to 1000 in the statement and the application speeded up alot.s = connection.createStatement();s.setFetchSize(1000);Has to read up on </summary><link rel='replies' type='application/atom+xml' href='http://blog.thej2eestruggle.com/feeds/4502941969126160271/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=8943868472966502596&amp;postID=4502941969126160271' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/4502941969126160271'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/4502941969126160271'/><link rel='alternate' type='text/html' href='http://blog.thej2eestruggle.com/2009/01/jdbc-fetch-size-matters.html' title='JDBC fetch size matters!'/><author><name>Anders Mathisen</name><uri>http://www.blogger.com/profile/12292801252481847900</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10176579775799243521'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8943868472966502596.post-1652800834876457063</id><published>2008-11-26T23:34:00.000-08:00</published><updated>2008-11-26T23:36:32.110-08:00</updated><title type='text'>Spam attack</title><summary type='text'>hi,had to go for comment moderation as the amount of spam comments are increasing. Tried the word verification option, but that does not seem to help.- keep on struggling</summary><link rel='replies' type='application/atom+xml' href='http://blog.thej2eestruggle.com/feeds/1652800834876457063/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=8943868472966502596&amp;postID=1652800834876457063' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/1652800834876457063'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/1652800834876457063'/><link rel='alternate' type='text/html' href='http://blog.thej2eestruggle.com/2008/11/spam-attack.html' title='Spam attack'/><author><name>Anders Mathisen</name><uri>http://www.blogger.com/profile/12292801252481847900</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10176579775799243521'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8943868472966502596.post-5068644304197486073</id><published>2008-03-18T05:52:00.000-07:00</published><updated>2008-03-18T06:21:31.805-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PL/SQL'/><category scheme='http://www.blogger.com/atom/ns#' term='Oracle'/><title type='text'>Oracle: count occurrences of string or character  in string</title><summary type='text'>currently writing a combined isnumeric/to_number function and in the middle of it I needed a function to count occurrencec of a string in another string. No magic here, simply plain forward arithmetrics.If the second parameter is not provided the function will count the number of characters in the string. If the second parameter is provided, the function will count the occurrences of the search </summary><link rel='replies' type='application/atom+xml' href='http://blog.thej2eestruggle.com/feeds/5068644304197486073/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=8943868472966502596&amp;postID=5068644304197486073' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/5068644304197486073'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/5068644304197486073'/><link rel='alternate' type='text/html' href='http://blog.thej2eestruggle.com/2008/03/oracle-count-occurrences-of-string-or.html' title='Oracle: count occurrences of string or character  in string'/><author><name>Anders Mathisen</name><uri>http://www.blogger.com/profile/12292801252481847900</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10176579775799243521'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8943868472966502596.post-4856110039746701711</id><published>2008-03-11T02:37:00.000-07:00</published><updated>2008-03-11T03:25:51.969-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle'/><title type='text'>Using inline views to avoid the ORA-01468 and outer join in all dates</title><summary type='text'>In my previous post I introduced the concept of inline views and said I somethimes used them go get around Oracles restrictions on outer joins. We also showed how the dual table could be used to retreive multiple rows without using the union operator. We will take this a bit further this time into something useful that I sometimes face when making select statements. The problem in this post </summary><link rel='replies' type='application/atom+xml' href='http://blog.thej2eestruggle.com/feeds/4856110039746701711/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=8943868472966502596&amp;postID=4856110039746701711' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/4856110039746701711'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/4856110039746701711'/><link rel='alternate' type='text/html' href='http://blog.thej2eestruggle.com/2008/03/using-inline-views-to-avoid-ora-01468.html' title='Using inline views to avoid the ORA-01468 and outer join in all dates'/><author><name>Anders Mathisen</name><uri>http://www.blogger.com/profile/12292801252481847900</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10176579775799243521'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8943868472966502596.post-1274055547746164973</id><published>2008-03-10T05:48:00.000-07:00</published><updated>2008-03-10T10:27:27.179-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle'/><title type='text'>Oracle inline views and retreiving multiple rows from dual</title><summary type='text'>My oracle blogs are getting read quite a lot these days, thought I'd follow up with some more Oracle - struggles in my next few posts. We'll start of with a nice oracle construct called 'inline views'. I tend to like views in parts to make my sql statements more readable, in part to centralize and make reuse of difficult constructs possible.Inline views is something I tend to use when the sql </summary><link rel='replies' type='application/atom+xml' href='http://blog.thej2eestruggle.com/feeds/1274055547746164973/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=8943868472966502596&amp;postID=1274055547746164973' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/1274055547746164973'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/1274055547746164973'/><link rel='alternate' type='text/html' href='http://blog.thej2eestruggle.com/2008/03/oracle-inline-views-and-retreiving.html' title='Oracle inline views and retreiving multiple rows from dual'/><author><name>Anders Mathisen</name><uri>http://www.blogger.com/profile/12292801252481847900</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10176579775799243521'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8943868472966502596.post-2503468737149844784</id><published>2008-03-06T07:08:00.000-08:00</published><updated>2008-03-06T07:30:10.126-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DB2'/><category scheme='http://www.blogger.com/atom/ns#' term='Oracle'/><title type='text'>Querying hiearchies in sql, AKA Oracle connect by</title><summary type='text'>Or how to make a recursive query in Oracle.I faced the challenge of listing all members in a group hiearchy. I had heard mentioned usage of java recursion, temp tables and worse. This had to be possible in a SQL. A quick google gave me the solution, using the connect by operator in Oracle.The table (simplified) looked like thisTable: group_membershipcolumn: group_idcolumn: group_id_memberA sample</summary><link rel='replies' type='application/atom+xml' href='http://blog.thej2eestruggle.com/feeds/2503468737149844784/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=8943868472966502596&amp;postID=2503468737149844784' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/2503468737149844784'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/2503468737149844784'/><link rel='alternate' type='text/html' href='http://blog.thej2eestruggle.com/2008/03/querying-hiearchies-in-sql-aka-oracle.html' title='Querying hiearchies in sql, AKA Oracle connect by'/><author><name>Anders Mathisen</name><uri>http://www.blogger.com/profile/12292801252481847900</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10176579775799243521'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8943868472966502596.post-4580090306863421129</id><published>2008-02-26T06:06:00.001-08:00</published><updated>2008-02-26T06:09:49.939-08:00</updated><title type='text'>Search blog.thej2eestruggle.com</title><summary type='text'>It's a few posts here now, I use the site myself for solving my everyday struggles. I find my selv using the labelcloud often, missed a search box though. Well, now it's there - search for struggles in the sidebar.- keep on struggling -</summary><link rel='replies' type='application/atom+xml' href='http://blog.thej2eestruggle.com/feeds/4580090306863421129/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=8943868472966502596&amp;postID=4580090306863421129' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/4580090306863421129'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/4580090306863421129'/><link rel='alternate' type='text/html' href='http://blog.thej2eestruggle.com/2008/02/search-thej2eestrugglecom.html' title='Search blog.thej2eestruggle.com'/><author><name>Anders Mathisen</name><uri>http://www.blogger.com/profile/12292801252481847900</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10176579775799243521'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8943868472966502596.post-3771015088793160191</id><published>2008-02-22T03:43:00.000-08:00</published><updated>2008-02-22T03:53:15.493-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PL/SQL'/><category scheme='http://www.blogger.com/atom/ns#' term='Oracle'/><title type='text'>newline, \n or even \r in PL/SQL</title><summary type='text'>In my PL/SQL procedure I had to add a text including newline (\n in java, ascii #10) in a text to be read by a java application. Tried with the codel_text := 'hello\nworld';This did not work, the \n character behaves clearly different in PL/SQL than in Java and only wrote '\n', probably the same as writing a String in Java using \\n. To add the newline character, I had to use chr(10), that </summary><link rel='replies' type='application/atom+xml' href='http://blog.thej2eestruggle.com/feeds/3771015088793160191/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=8943868472966502596&amp;postID=3771015088793160191' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/3771015088793160191'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/3771015088793160191'/><link rel='alternate' type='text/html' href='http://blog.thej2eestruggle.com/2008/02/newline-n-or-even-r-in-plsql.html' title='newline, \n or even \r in PL/SQL'/><author><name>Anders Mathisen</name><uri>http://www.blogger.com/profile/12292801252481847900</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10176579775799243521'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8943868472966502596.post-8577279875159704866</id><published>2008-02-21T00:20:00.000-08:00</published><updated>2008-02-21T00:32:51.769-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle'/><title type='text'>Weird caracters in Oracle AKA setting NLS_LANG parameter</title><summary type='text'>I am a big fan of the Oracle instant client. Although being a unzip-type-of-installation it needs some tweeking. Living in norway, the norwegian special characters, Æ-Ø-Å tends to look somewhat strange. I am sure there are problems related to other languages as well. the solution is to set the NLS_LANG parameter. I set it in environment variables in windows, Control Panel -&gt; System -&gt; Advanced -&gt;</summary><link rel='replies' type='application/atom+xml' href='http://blog.thej2eestruggle.com/feeds/8577279875159704866/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=8943868472966502596&amp;postID=8577279875159704866' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/8577279875159704866'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/8577279875159704866'/><link rel='alternate' type='text/html' href='http://blog.thej2eestruggle.com/2008/02/weird-caracters-in-oracle-aka-setting.html' title='Weird caracters in Oracle AKA setting NLS_LANG parameter'/><author><name>Anders Mathisen</name><uri>http://www.blogger.com/profile/12292801252481847900</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10176579775799243521'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8943868472966502596.post-5477766496055922893</id><published>2008-02-08T01:16:00.001-08:00</published><updated>2008-02-08T01:25:10.450-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='AJAX'/><category scheme='http://www.blogger.com/atom/ns#' term='Tomcat'/><title type='text'>Circular references is a bad idea, in servlets atleast</title><summary type='text'>Had a problem with a servlet wrapping an ajax response provider using the CBA framework, a lightweight Ajax framework. Due to a dual mode application both capable of running standalone and in servlet container I had to do some tricks to avoid duplication of code. The standalone application uses the NanoHTTPD with some modifications to simplify CBA development. The Response object of the NanoHTTPD</summary><link rel='replies' type='application/atom+xml' href='http://blog.thej2eestruggle.com/feeds/5477766496055922893/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=8943868472966502596&amp;postID=5477766496055922893' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/5477766496055922893'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/5477766496055922893'/><link rel='alternate' type='text/html' href='http://blog.thej2eestruggle.com/2008/02/circular-references-is-bad-idea-in.html' title='Circular references is a bad idea, in servlets atleast'/><author><name>Anders Mathisen</name><uri>http://www.blogger.com/profile/12292801252481847900</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10176579775799243521'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8943868472966502596.post-2537975274147596507</id><published>2008-01-24T03:29:00.000-08:00</published><updated>2008-01-24T03:35:54.465-08:00</updated><title type='text'>Building a tiny webserver for standalone apps</title><summary type='text'>Every now and then when I try out applications they have a built in weserver for misc. purposes. In my latest project I added a tiny webserver for ease during the testphase, however being a standalone application this should also prove valuable in production mode for monitoring and misc. maintenance.The webserver I used was not Springable so my decision now is to pause the BEA Content search </summary><link rel='replies' type='application/atom+xml' href='http://blog.thej2eestruggle.com/feeds/2537975274147596507/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=8943868472966502596&amp;postID=2537975274147596507' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/2537975274147596507'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/2537975274147596507'/><link rel='alternate' type='text/html' href='http://blog.thej2eestruggle.com/2008/01/building-tiny-webserver-for-standalone.html' title='Building a tiny webserver for standalone apps'/><author><name>Anders Mathisen</name><uri>http://www.blogger.com/profile/12292801252481847900</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10176579775799243521'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8943868472966502596.post-6044996467439721063</id><published>2008-01-22T05:32:00.000-08:00</published><updated>2008-01-22T05:51:30.409-08:00</updated><title type='text'>Opensymphony Quartz scheduler, Misfire not firing?</title><summary type='text'>Had the need for a scheduler in this little project of mine and the urge for using something a little less heavy than  BEA WLI triggers seemed believe it or not like a good idea. As the project is wired up using Spring, Open Symphonys Quartz framework looked like just the thing for me. The code is something like this:public void checkAndDispatch(){    // look up DB for work    // iterate over </summary><link rel='replies' type='application/atom+xml' href='http://blog.thej2eestruggle.com/feeds/6044996467439721063/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=8943868472966502596&amp;postID=6044996467439721063' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/6044996467439721063'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/6044996467439721063'/><link rel='alternate' type='text/html' href='http://blog.thej2eestruggle.com/2008/01/opensymphony-quartz-scheduler-misfire.html' title='Opensymphony Quartz scheduler, Misfire not firing?'/><author><name>Anders Mathisen</name><uri>http://www.blogger.com/profile/12292801252481847900</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10176579775799243521'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8943868472966502596.post-792418302282692808</id><published>2008-01-17T00:54:00.000-08:00</published><updated>2008-01-17T01:06:08.306-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PL/SQL'/><category scheme='http://www.blogger.com/atom/ns#' term='Oracle'/><title type='text'>Oracle PL/SQL NO_DATA_FOUND aka. ORA-01403</title><summary type='text'>I'm no PL/SQL expert, but from time to time I find my self writing procedures due to some requirement in the project I'm currently working on. Now I write this trigger which looks up data in some other table and does some work. All fine, although I thought this would workselect foo into bar from foobar where barfoo = 'foofoo';And the application logic something like thisif foobar is null then -- </summary><link rel='replies' type='application/atom+xml' href='http://blog.thej2eestruggle.com/feeds/792418302282692808/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=8943868472966502596&amp;postID=792418302282692808' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/792418302282692808'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/792418302282692808'/><link rel='alternate' type='text/html' href='http://blog.thej2eestruggle.com/2008/01/oracle-plsql-nodatafound-aka-ora-01403.html' title='Oracle PL/SQL NO_DATA_FOUND aka. ORA-01403'/><author><name>Anders Mathisen</name><uri>http://www.blogger.com/profile/12292801252481847900</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10176579775799243521'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8943868472966502596.post-2363533667778928237</id><published>2008-01-16T01:35:00.000-08:00</published><updated>2008-01-16T01:40:59.699-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PL/SQL'/><category scheme='http://www.blogger.com/atom/ns#' term='Oracle'/><title type='text'>Removing multiple whitespace from string</title><summary type='text'>So in this application I needed a String tokenizer in PL/SQL, a quick search and I found one at a blog.However, my application had to handle the ecentuality that there came multiple delimiters at any point in the input string, example:'    some_token        another_token     'The tokenizer from the blog did not, and was not intended to support this either so I modified it a bit with a bit of code</summary><link rel='replies' type='application/atom+xml' href='http://blog.thej2eestruggle.com/feeds/2363533667778928237/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=8943868472966502596&amp;postID=2363533667778928237' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/2363533667778928237'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/2363533667778928237'/><link rel='alternate' type='text/html' href='http://blog.thej2eestruggle.com/2008/01/removing-multiple-whitespace-from.html' title='Removing multiple whitespace from string'/><author><name>Anders Mathisen</name><uri>http://www.blogger.com/profile/12292801252481847900</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10176579775799243521'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8943868472966502596.post-1235557278777793119</id><published>2008-01-10T13:48:00.001-08:00</published><updated>2008-01-10T13:57:10.213-08:00</updated><title type='text'>Javascript hell - gotta "love" IE - not !</title><summary type='text'>been far to little work on the "privat projects" lately, including my lucene search application. Been struggling a bit though with a PHP/Ajax webapp for in-house use. I have a Synology diskstation, a really nice little appliance. The album sucks a bit though so I started writing my own. In Firefox everything looks nice, see a little sample below of parts of the screen.In IE all my hours of work </summary><link rel='replies' type='application/atom+xml' href='http://blog.thej2eestruggle.com/feeds/1235557278777793119/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=8943868472966502596&amp;postID=1235557278777793119' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/1235557278777793119'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/1235557278777793119'/><link rel='alternate' type='text/html' href='http://blog.thej2eestruggle.com/2008/01/javascript-hell-gotta-love-ie-not.html' title='Javascript hell - gotta &quot;love&quot; IE - not !'/><author><name>Anders Mathisen</name><uri>http://www.blogger.com/profile/12292801252481847900</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10176579775799243521'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_uA3XzssWdLs/R4aTm5jLlvI/AAAAAAAAACU/i0NDLSlxNyU/s72-c/photos_ff.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8943868472966502596.post-6334013382011465271</id><published>2007-08-10T11:54:00.000-07:00</published><updated>2007-08-10T12:03:16.777-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='BEAWeblogicPortal92'/><category scheme='http://www.blogger.com/atom/ns#' term='search'/><category scheme='http://www.blogger.com/atom/ns#' term='content'/><title type='text'>The search engine - crawler</title><summary type='text'>hi,long time since the last post, been on vacation without internet connection...We are probably not speaking of a crawler, more of a traverser actually as we will traverse a well known content repository. Traversing the content repository should be rather easy, but the peculiarities of the virtual content repository makes it kind of tricky though. And in BEA 9.2 which is our target platform here</summary><link rel='replies' type='application/atom+xml' href='http://blog.thej2eestruggle.com/feeds/6334013382011465271/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=8943868472966502596&amp;postID=6334013382011465271' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/6334013382011465271'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/6334013382011465271'/><link rel='alternate' type='text/html' href='http://blog.thej2eestruggle.com/2007/08/search-engine-crawler.html' title='The search engine - crawler'/><author><name>Anders Mathisen</name><uri>http://www.blogger.com/profile/12292801252481847900</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10176579775799243521'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8943868472966502596.post-2878717588986344244</id><published>2007-06-20T11:29:00.000-07:00</published><updated>2007-06-26T10:23:28.685-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='lucene'/><category scheme='http://www.blogger.com/atom/ns#' term='BEAWeblogicPortal92'/><category scheme='http://www.blogger.com/atom/ns#' term='search'/><category scheme='http://www.blogger.com/atom/ns#' term='content'/><title type='text'>Search engine for BEA content repository</title><summary type='text'>For a long time I have been looking for a good search engine for the BEA Virtual Content Repository without actually finding any solution that completely covers all my requirements. So, as of today I decided I will write my own search solution.No elaborate requirement specification, although a few important requirementsit should have a small footprintit should scale for larger repositoriesit </summary><link rel='replies' type='application/atom+xml' href='http://blog.thej2eestruggle.com/feeds/2878717588986344244/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=8943868472966502596&amp;postID=2878717588986344244' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/2878717588986344244'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/2878717588986344244'/><link rel='alternate' type='text/html' href='http://blog.thej2eestruggle.com/2007/06/search-engine-for-bea-content.html' title='Search engine for BEA content repository'/><author><name>Anders Mathisen</name><uri>http://www.blogger.com/profile/12292801252481847900</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10176579775799243521'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8943868472966502596.post-286760397442796989</id><published>2007-06-19T14:11:00.000-07:00</published><updated>2007-06-20T11:08:41.975-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tuning'/><category scheme='http://www.blogger.com/atom/ns#' term='JBoss'/><title type='text'>JBoss</title><summary type='text'>It's been a lot of BEA lately on this blog, just thought I'd write this post to let you know I've worked with other containers as well. Some time ago I was presented with a problem of a stand alone RMI application having extreme response times, up to several minutes.Basically we split the job in three steps,port the entire stand alone RMI "server" to JBosstune the SQL statementstune the </summary><link rel='replies' type='application/atom+xml' href='http://blog.thej2eestruggle.com/feeds/286760397442796989/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=8943868472966502596&amp;postID=286760397442796989' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/286760397442796989'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/286760397442796989'/><link rel='alternate' type='text/html' href='http://blog.thej2eestruggle.com/2007/06/jboss.html' title='JBoss'/><author><name>Anders Mathisen</name><uri>http://www.blogger.com/profile/12292801252481847900</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10176579775799243521'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8943868472966502596.post-5730682632083925943</id><published>2007-06-19T14:06:00.000-07:00</published><updated>2007-06-19T14:10:56.581-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WebCrawling'/><category scheme='http://www.blogger.com/atom/ns#' term='JBoss'/><title type='text'>Crawling the web</title><summary type='text'>hi there,I have this little project in my nursery having urgent needs for web crawling capabilities. Java being an obvious requirement for the task I did a quick google search and found an interesting linkWriting a Web Crawler in the Java Programming Languageanyone having any experiences with this sample code? Any other good suggestions for crawling a website for images contained there?BTW: what </summary><link rel='replies' type='application/atom+xml' href='http://blog.thej2eestruggle.com/feeds/5730682632083925943/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=8943868472966502596&amp;postID=5730682632083925943' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/5730682632083925943'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/5730682632083925943'/><link rel='alternate' type='text/html' href='http://blog.thej2eestruggle.com/2007/06/crawling-web.html' title='Crawling the web'/><author><name>Anders Mathisen</name><uri>http://www.blogger.com/profile/12292801252481847900</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10176579775799243521'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8943868472966502596.post-2068931301716828637</id><published>2007-06-18T14:19:00.000-07:00</published><updated>2007-06-18T14:24:15.918-07:00</updated><title type='text'>Clustrmap</title><summary type='text'>quite a long time now between posts, been kind of busy with all other things besides J2EE lately. I'm tracking my stats with google analytics and are quite satisified with that service. Thought i'd give clustrmap a try just to see if the numbers sums up. Will give the readers an opportunity to see the location of visitors as well.I will come with more J2EE struggles here soon.- keep on struggling</summary><link rel='replies' type='application/atom+xml' href='http://blog.thej2eestruggle.com/feeds/2068931301716828637/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=8943868472966502596&amp;postID=2068931301716828637' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/2068931301716828637'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/2068931301716828637'/><link rel='alternate' type='text/html' href='http://blog.thej2eestruggle.com/2007/06/clustrmap.html' title='Clustrmap'/><author><name>Anders Mathisen</name><uri>http://www.blogger.com/profile/12292801252481847900</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10176579775799243521'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8943868472966502596.post-492964699039629782</id><published>2007-05-01T11:03:00.000-07:00</published><updated>2007-04-30T05:17:32.496-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='XMLBeans'/><category scheme='http://www.blogger.com/atom/ns#' term='XML'/><title type='text'>Struggling duplicate tags in a sequence</title><summary type='text'>In my previous post I pointed out two problems I encountered working with an XML document. First problem solved, now the problem of duplicate tags bugged me. This construct is present (somewhat scrambled with respect to contents and tagnames as compared to the original)&lt;invoice&gt;&lt;companyname&gt;&lt;companyid&gt;&lt;address1&gt;&lt;companyid&gt;&lt;!-- .. --&gt;&lt;/invoice&gt;Please note that the tag companyid is present two </summary><link rel='replies' type='application/atom+xml' href='http://blog.thej2eestruggle.com/feeds/492964699039629782/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=8943868472966502596&amp;postID=492964699039629782' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/492964699039629782'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8943868472966502596/posts/default/492964699039629782'/><link rel='alternate' type='text/html' href='http://blog.thej2eestruggle.com/2007/04/struggling-duplicate-tags-in-sequence.html' title='Struggling duplicate tags in a sequence'/><author><name>Anders Mathisen</name><uri>http://www.blogger.com/profile/12292801252481847900</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10176579775799243521'/></author><thr:total>0</thr:total></entry></feed>