<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-1604594366142210766</atom:id><lastBuildDate>Thu, 24 Nov 2011 09:00:33 +0000</lastBuildDate><category>debug</category><category>bpm</category><category>reflection</category><category>nio</category><category>active directory</category><category>quartz</category><category>jdbc</category><category>mysql</category><category>java</category><category>alfresco</category><category>bytebuffer</category><category>channel</category><category>authentication</category><category>swing</category><category>patterns</category><category>j2se</category><category>junit</category><category>aop</category><category>multithreading</category><category>mock</category><category>lucene</category><category>placeholder</category><category>tomcat</category><category>cmis</category><category>syntax</category><category>date</category><category>log4j</category><category>awt</category><category>ui</category><category>java6</category><category>inputstream</category><category>ldap</category><category>blogger</category><category>Simplify it</category><category>websphere</category><category>spring</category><category>bamboo</category><category>was</category><category>jnlp</category><category>collections</category><category>hg</category><category>j2ee</category><category>jcomponent</category><category>mercurial</category><category>activiti</category><category>examples</category><category>svn</category><category>smartgwt</category><title>Java  ${Level Up}</title><description>Best tips, practices and patterns</description><link>http://jajatips.blogspot.com/</link><managingEditor>noreply@blogger.com (dimka)</managingEditor><generator>Blogger</generator><openSearch:totalResults>26</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/JavalevelUp" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="javalevelup" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1604594366142210766.post-6991882554567958461</guid><pubDate>Sat, 06 Aug 2011 15:25:00 +0000</pubDate><atom:updated>2011-08-06T08:33:36.477-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">lucene</category><category domain="http://www.blogger.com/atom/ns#">alfresco</category><title>Alfresco: strong text search with wildcard using lucene</title><atom:summary>My new problem is not very difficult, but have interesting solution (I think :)). For example we have four objects in our alfresco repository that have next titles:
James John
Li Joan
Johan Jazz
Bill

For get all objects that begins from 'Joh', I use the next query:
+TYPE:"my:object" +@cm\:title:"joh*"

The result of the query:
James John
Johan Jazz
Li Joan

'Joan' doesn't contain 'joh' in title.</atom:summary><link>http://jajatips.blogspot.com/2011/08/alfresco-strong-text-search-with.html</link><author>noreply@blogger.com (dimka)</author><thr:total>0</thr:total><description>&lt;img src="http://feeds.feedburner.com/~r/JavalevelUp/~4/kLduTkp-bVQ" height="1" width="1"/&gt;</description></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1604594366142210766.post-6447773501111083971</guid><pubDate>Tue, 02 Aug 2011 18:50:00 +0000</pubDate><atom:updated>2011-08-04T05:30:35.540-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">quartz</category><title>Quartz: running jobs sequentially</title><atom:summary>To initialize (import dictionaries, create system users and roles, etc) our system we use quartz. But yesterday after I've created new job I saw that my new job depends on other jobs. Still I don't get how can I create dependencies over jobs and I think that the usage of dependencies in jobs is an ugly solution. The solution is simply to run jobs sequentially - one by one. But I couldn't find </atom:summary><link>http://jajatips.blogspot.com/2011/08/quartz-running-jobs-sequentially.html</link><author>noreply@blogger.com (dimka)</author><thr:total>0</thr:total><description>&lt;img src="http://feeds.feedburner.com/~r/JavalevelUp/~4/IFkK-i5Uwv0" height="1" width="1"/&gt;</description></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1604594366142210766.post-890946908945269388</guid><pubDate>Tue, 28 Jun 2011 10:23:00 +0000</pubDate><atom:updated>2011-06-28T03:30:24.263-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">mercurial</category><category domain="http://www.blogger.com/atom/ns#">bamboo</category><category domain="http://www.blogger.com/atom/ns#">hg</category><title>Generate changelog from Bamboo with Mercurial</title><atom:summary>Hi!

We use bamboo(v.3) for supports continuum integration in our project and mercurial as control version system. We wrote some core functions for the project and now should test it. Testers want to see what's new we do in new build. For this reason developers should wrote changelog for new build. But we are lazy developers and don't want to do this :) Unfortunately, bamboo can not generate </atom:summary><link>http://jajatips.blogspot.com/2011/06/generate-changelog-from-bamboo-with.html</link><author>noreply@blogger.com (dimka)</author><thr:total>0</thr:total><description>&lt;img src="http://feeds.feedburner.com/~r/JavalevelUp/~4/osVFuXpfNlc" height="1" width="1"/&gt;</description></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1604594366142210766.post-5164082396066435858</guid><pubDate>Sat, 30 Apr 2011 06:30:00 +0000</pubDate><atom:updated>2011-04-29T23:30:47.108-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">activiti</category><category domain="http://www.blogger.com/atom/ns#">bpm</category><category domain="http://www.blogger.com/atom/ns#">alfresco</category><title>Process workflow with alfresco and actitviti</title><atom:summary>Alfresco release new version of their ECM - 3.4.e. Major feature of this release is integration with activiti BPM platform. That's a good news, because JBPM 3 is obsolete. Of course, I try to use it and have some problems ;) In our projects we use WorkflowService to control business processes. To move workflow from one task to another we have to end current task and specify the transition name(</atom:summary><link>http://jajatips.blogspot.com/2011/04/process-workflow-with-alfresco-and.html</link><author>noreply@blogger.com (dimka)</author><thr:total>0</thr:total><description>&lt;img src="http://feeds.feedburner.com/~r/JavalevelUp/~4/u3TyQNJfz_Q" height="1" width="1"/&gt;</description></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1604594366142210766.post-3412220246521129007</guid><pubDate>Tue, 16 Nov 2010 15:12:00 +0000</pubDate><atom:updated>2010-11-17T06:19:08.338-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">smartgwt</category><title>Share smartgwt js over several gwt modules</title><atom:summary>When you create smartgwt module you have the following lines in your *.gwt.xml file:    ...    &lt;inherits name="com.smartgwt.SmartGwt"/&gt;    ...Everything works fine. When you load your module at the first time, the browser gets all smartgwt js libs(ISC_*.js) and caches it. In our application we have got five gwt modules and all of them are using smartgwt. And when we load each module for the first</atom:summary><link>http://jajatips.blogspot.com/2010/11/share-smartgwt-js-over-several-gwt.html</link><author>noreply@blogger.com (dimka)</author><thr:total>4</thr:total><description>&lt;img src="http://feeds.feedburner.com/~r/JavalevelUp/~4/jb8Yxod2irA" height="1" width="1"/&gt;</description></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1604594366142210766.post-5343153241900941010</guid><pubDate>Tue, 09 Nov 2010 08:24:00 +0000</pubDate><atom:updated>2010-11-09T04:17:20.228-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">j2se</category><category domain="http://www.blogger.com/atom/ns#">syntax</category><category domain="http://www.blogger.com/atom/ns#">Simplify it</category><title>Simplify if</title><atom:summary>From time to time we write unoptimized code. For program to be cute it is fun to be optimized.For example this is a possible way to write if sequence:if (p.equals("Completed")){   return true;} else {   return false;}But to be optimized the method body should look like this:return "Completed".equals(p);What's really interesting is that it's not only looking good. Indeed it helps you to evade null</atom:summary><link>http://jajatips.blogspot.com/2010/11/simplify-if.html</link><author>noreply@blogger.com (XithyL)</author><thr:total>0</thr:total><description>&lt;img src="http://feeds.feedburner.com/~r/JavalevelUp/~4/Pyfdsze4CCo" height="1" width="1"/&gt;</description></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1604594366142210766.post-7166962328320194485</guid><pubDate>Thu, 04 Nov 2010 19:46:00 +0000</pubDate><atom:updated>2010-11-07T22:23:50.297-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">smartgwt</category><category domain="http://www.blogger.com/atom/ns#">ui</category><title>Height for DateChooser (Smart GWT)</title><atom:summary>In our project we are using Smart GWT component (DateChooser) which allows user to select dates ranges. It looks like this:
.

Smart GWT has a bunch of useful things (datasources, for example). But when I need some UI customization, sometimes I am having troubles :) And now I've got problems with height of the DateChooser component.

Both date choosers have height 200 px, but the right one is </atom:summary><link>http://jajatips.blogspot.com/2010/11/set-height-for-date-chooser-in-smartgwt.html</link><author>noreply@blogger.com (dimka)</author><thr:total>0</thr:total><description>&lt;img src="http://feeds.feedburner.com/~r/JavalevelUp/~4/v6Qzplca45Y" height="1" width="1"/&gt;</description></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1604594366142210766.post-1277855581619393274</guid><pubDate>Fri, 24 Sep 2010 13:12:00 +0000</pubDate><atom:updated>2010-09-27T07:41:57.769-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">mock</category><category domain="http://www.blogger.com/atom/ns#">spring</category><category domain="http://www.blogger.com/atom/ns#">junit</category><category domain="http://www.blogger.com/atom/ns#">aop</category><title>Wrote test, use mockito...drink mockito!</title><atom:summary>Hi all!In our project we have parts that are written by our outsource partners. We are using their services in our code. Services injected from spring to our beans.Yesterday, they made a weekly commit, and I've found out that my tests were broken :( One of their developer had commented my stub that implemented their interface. They said that he didn't want to change any code although I needed my </atom:summary><link>http://jajatips.blogspot.com/2010/09/wrote-test-use-mockitodrink-mockito.html</link><author>noreply@blogger.com (dimka)</author><thr:total>0</thr:total><description>&lt;img src="http://feeds.feedburner.com/~r/JavalevelUp/~4/5RALn8yUbpc" height="1" width="1"/&gt;</description></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1604594366142210766.post-5030466064515740113</guid><pubDate>Wed, 01 Sep 2010 19:00:00 +0000</pubDate><atom:updated>2010-09-01T12:35:02.450-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">multithreading</category><category domain="http://www.blogger.com/atom/ns#">authentication</category><category domain="http://www.blogger.com/atom/ns#">alfresco</category><title>Authentication problems in multithreading</title><atom:summary>In my application, I have a tree widget that using ajax for loading nodes. Tomcat create some threads to service requests. Each requests validate security ticket that stores in http session:

authenticationService.validate(ticket, null);

And some threads can not validate this ticket and service throws AuthenticationException. If you have particular problem, then you should look at alfresco's </atom:summary><link>http://jajatips.blogspot.com/2010/09/authentication-problems-in.html</link><author>noreply@blogger.com (dimka)</author><thr:total>0</thr:total><description>&lt;img src="http://feeds.feedburner.com/~r/JavalevelUp/~4/vnj17l0EK6M" height="1" width="1"/&gt;</description></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1604594366142210766.post-695756198709432433</guid><pubDate>Fri, 20 Aug 2010 09:22:00 +0000</pubDate><atom:updated>2010-08-20T02:22:55.688-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">alfresco</category><title>Fun with alfresco types.</title><atom:summary>Good day!

Yesterday, I had some fun with alfresco types and permissions. I've created simple type in my model that looks like this:
&lt;type name="my:simpleType"&gt;
  &lt;title&gt;Simple type&lt;/title&gt;
  &lt;properties&gt;
    &lt;property name="my:prop"&gt;
       &lt;type&gt;d:int&lt;/type&gt;
    &lt;/property&gt;
  &lt;/properties&gt;
&lt;/type&gt;

I've included it as child-association to the other type and tried to create it:
Node simpleProp =</atom:summary><link>http://jajatips.blogspot.com/2010/08/fun-with-alfresco-types.html</link><author>noreply@blogger.com (dimka)</author><thr:total>0</thr:total><description>&lt;img src="http://feeds.feedburner.com/~r/JavalevelUp/~4/ICwjIMWivzA" height="1" width="1"/&gt;</description></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1604594366142210766.post-2960365717029752096</guid><pubDate>Wed, 04 Aug 2010 08:06:00 +0000</pubDate><atom:updated>2010-08-04T02:02:10.531-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">cmis</category><category domain="http://www.blogger.com/atom/ns#">date</category><category domain="http://www.blogger.com/atom/ns#">alfresco</category><title>Search content by dates in alfresco using CMIS API</title><atom:summary>Hi all!

I have a new project that use Alfresco as a backend to store content. I need select content by date. User specifies dates and the service should find and display it. I've chosen CMIS API. It supports query language like SQL to get content. But I've got a problem. I need to specify the date in my query, that looks like this:
SELECT * FROM my:content WHERE my:modifyDate &lt; 01.01.2010

My </atom:summary><link>http://jajatips.blogspot.com/2010/08/search-content-by-dates-using-cmis.html</link><author>noreply@blogger.com (dimka)</author><thr:total>0</thr:total><description>&lt;img src="http://feeds.feedburner.com/~r/JavalevelUp/~4/NV1vChWNgQQ" height="1" width="1"/&gt;</description></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1604594366142210766.post-4448055425422802588</guid><pubDate>Tue, 19 Jan 2010 05:47:00 +0000</pubDate><atom:updated>2010-02-05T00:02:39.585-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">java</category><category domain="http://www.blogger.com/atom/ns#">j2se</category><category domain="http://www.blogger.com/atom/ns#">collections</category><title>Getting changes from collection</title><atom:summary>Good morning :)

Usually to update some entities in database I use service that must be calculate changes from new and old object and update changes in database(using DAO, for example). And the common task is update collections. I wrote simple class that calculate changes from old and new collections and create three collections: to delete, to update and to create. You can see class below and </atom:summary><link>http://jajatips.blogspot.com/2010/01/getting-changes-from-collection.html</link><author>noreply@blogger.com (dimka)</author><thr:total>0</thr:total><description>&lt;img src="http://feeds.feedburner.com/~r/JavalevelUp/~4/cE2g87GTUEE" height="1" width="1"/&gt;</description></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1604594366142210766.post-3904499703897511389</guid><pubDate>Thu, 19 Nov 2009 06:32:00 +0000</pubDate><atom:updated>2009-11-18T22:32:36.606-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">patterns</category><category domain="http://www.blogger.com/atom/ns#">j2ee</category><category domain="http://www.blogger.com/atom/ns#">examples</category><title>Good examples of Java EE patterns.</title><atom:summary>Good Day.

In the last message from SDN, I received information about "Java EE Patterns and Best Practices Project". That is excellent idea, with excellent realization. I recommend to all developers that use Java EE to see this examples.

To get it, you should have mercurial and checkout repository, you can do it with following command:

hg clone https://hg.kenai.com/hg/javaee-patterns~hg .

To </atom:summary><link>http://jajatips.blogspot.com/2009/11/good-examples-of-java-ee-patterns.html</link><author>noreply@blogger.com (dimka)</author><thr:total>0</thr:total><description>&lt;img src="http://feeds.feedburner.com/~r/JavalevelUp/~4/Aofgm3lxkY8" height="1" width="1"/&gt;</description></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1604594366142210766.post-107485631046104807</guid><pubDate>Tue, 01 Sep 2009 04:45:00 +0000</pubDate><atom:updated>2011-05-10T03:32:33.121-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">java</category><category domain="http://www.blogger.com/atom/ns#">j2se</category><category domain="http://www.blogger.com/atom/ns#">log4j</category><title>Write compressing rolling file appender for log4j</title><atom:summary>UPD: One good man leave a good comment :) 

I think this is now supported in the standard;

http://logging.apache.org/log4j/companions/extras/apidocs/org/apache/log4j/rolling/TimeBasedRollingPolicy.html


Good day!

On the last week, we gave our software to support specialists. They installed the program to production servers. And over three thousand users began to work with it. At the on of that</atom:summary><link>http://jajatips.blogspot.com/2009/08/writing-compressing-file-appender-for.html</link><author>noreply@blogger.com (dimka)</author><thr:total>4</thr:total><description>&lt;img src="http://feeds.feedburner.com/~r/JavalevelUp/~4/tbKDCFqsx2c" height="1" width="1"/&gt;</description></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1604594366142210766.post-7495982114018818675</guid><pubDate>Thu, 02 Jul 2009 04:56:00 +0000</pubDate><atom:updated>2009-08-26T23:32:29.820-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">spring</category><category domain="http://www.blogger.com/atom/ns#">jdbc</category><title>Increase perfomance for insert operations to database</title><atom:summary>Hi all!In this post, I would like to tell about the way to optimize INSERT operation to database. In our project we use postgresql 8.3. I have big problems with speed on some operations. When I profiled the application, I find out that the biggest amount of time spent for JDBC operations. We getting data from external systems, and often we have more than 300000 inserts to table. For work with </atom:summary><link>http://jajatips.blogspot.com/2009/07/increase-perfomance-for-insert.html</link><author>noreply@blogger.com (dimka)</author><thr:total>0</thr:total><description>&lt;img src="http://feeds.feedburner.com/~r/JavalevelUp/~4/-m9TErk0ZWQ" height="1" width="1"/&gt;</description></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1604594366142210766.post-3904978901594057375</guid><pubDate>Wed, 22 Apr 2009 04:03:00 +0000</pubDate><atom:updated>2009-04-27T22:58:19.821-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">j2se</category><category domain="http://www.blogger.com/atom/ns#">swing</category><category domain="http://www.blogger.com/atom/ns#">java6</category><category domain="http://www.blogger.com/atom/ns#">awt</category><title>Create hyperlink with browsing support.</title><atom:summary>Yesterday, one of my tasks was to display hyperlink to local file. When user clicks hyperlink, program have to open file in an associated application. Earlier I have been writing desktop applications on QT and I haven't had any problems. But it is not very simple in Java(Swing). First, I've created label and put html as text:JLabel label = new JLabel("&lt;html&gt;&lt;a href=\"someurl.com\"&gt;link&lt;/a&gt;");When</atom:summary><link>http://jajatips.blogspot.com/2009/04/create-hyperlink-with-desktop.html</link><author>noreply@blogger.com (dimka)</author><thr:total>0</thr:total><description>&lt;img src="http://feeds.feedburner.com/~r/JavalevelUp/~4/OnDjV_9klHU" height="1" width="1"/&gt;</description></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1604594366142210766.post-5372149119435489405</guid><pubDate>Sun, 19 Apr 2009 20:07:00 +0000</pubDate><atom:updated>2009-04-20T00:24:35.654-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">blogger</category><title>test syntax highlighter for blogger</title><atom:summary>public class SimpleClass {  public SimpleClass() {    System.out.println("I'm a simple class!!!");  }}If you want the same highlighter in your blogger:1.Install widget from here: http://fazibear.googlepages.com/blogger.html2.Reading usage instruction(and do it:)) from here: http://code.google.com/p/syntaxhighlighter/wiki/UsageBig thanks to developers of syntaxhighlighter.</atom:summary><link>http://jajatips.blogspot.com/2009/04/test-syntax-highlighter-for-blogger.html</link><author>noreply@blogger.com (dimka)</author><thr:total>0</thr:total><description>&lt;img src="http://feeds.feedburner.com/~r/JavalevelUp/~4/ObbHcME2biw" height="1" width="1"/&gt;</description></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1604594366142210766.post-7033598333187494880</guid><pubDate>Sun, 12 Apr 2009 14:23:00 +0000</pubDate><atom:updated>2009-04-12T20:53:36.209-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">java</category><category domain="http://www.blogger.com/atom/ns#">j2se</category><category domain="http://www.blogger.com/atom/ns#">syntax</category><title>Using inner classes</title><atom:summary>Hi all! In this post I want to tell you about inner classes. Very often, we create static inner classes that contains information about main class. For example: public class Person {    private String name;   private String occupation;   public static class PersonInfo {     private String info;     public PersonInfo(String name, String occupation) {       info = “His name is ” + name + “ . He is </atom:summary><link>http://jajatips.blogspot.com/2009/04/using-inner-classes_6395.html</link><author>noreply@blogger.com (dimka)</author><thr:total>0</thr:total><description>&lt;img src="http://feeds.feedburner.com/~r/JavalevelUp/~4/48tZiyUdSqU" height="1" width="1"/&gt;</description></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1604594366142210766.post-2122386378048134280</guid><pubDate>Sun, 18 Jan 2009 15:05:00 +0000</pubDate><atom:updated>2009-01-18T07:18:56.387-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">jnlp</category><category domain="http://www.blogger.com/atom/ns#">java</category><category domain="http://www.blogger.com/atom/ns#">debug</category><title>Debug JNLP application</title><atom:summary>Hi all!I want to remote debug in jnlp application. This problem solved is very simple. I set environment variable JAVAWS_VM_ARGS to value: -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5006After this, I create new run point in Intelli J IDEA. Type of run point is Remote debug. In run point set set host=localhost and port=5006(or other, ports in JAVAWS_VM_ARGS and run point must</atom:summary><link>http://jajatips.blogspot.com/2009/01/debug-jnlp-application.html</link><author>noreply@blogger.com (dimka)</author><thr:total>0</thr:total><description>&lt;img src="http://feeds.feedburner.com/~r/JavalevelUp/~4/O5ETq9RDu0E" height="1" width="1"/&gt;</description></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1604594366142210766.post-3683572519546228242</guid><pubDate>Sat, 13 Dec 2008 14:42:00 +0000</pubDate><atom:updated>2008-12-16T01:03:03.762-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">active directory</category><category domain="http://www.blogger.com/atom/ns#">websphere</category><category domain="http://www.blogger.com/atom/ns#">j2ee</category><category domain="http://www.blogger.com/atom/ns#">ldap</category><category domain="http://www.blogger.com/atom/ns#">was</category><title>Global security in WAS 6.1over Active Directory</title><atom:summary>We need security over Active Directory in our enterprise application wich works on WebSphere Application Server v 6.1.x. When we test our application we use OpenDS(https://opends.dev.java.net/) to emulate Active Directory. But we must replace OpenDS with Active Directory. Every LDAP server has specific parameters. For fast test, I use ldapsearch from OpenDS. I spent more then two hours to get </atom:summary><link>http://jajatips.blogspot.com/2008/12/global-security-in-was-61over-active.html</link><author>noreply@blogger.com (dimka)</author><thr:total>1</thr:total><description>&lt;img src="http://feeds.feedburner.com/~r/JavalevelUp/~4/NpiOSb5fvbg" height="1" width="1"/&gt;</description></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1604594366142210766.post-8453495860271159759</guid><pubDate>Sat, 06 Dec 2008 06:55:00 +0000</pubDate><atom:updated>2008-12-05T23:03:19.466-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">svn</category><title>SVN: Update only new folders in working copy</title><atom:summary>Hi all!For example, you have working copy that looks like this:foo/bar/And you know that someone added new folder, that called baz, in repository. You want get only this folder and you don't want to update all working copy. Solution is very simple:C:\project\&gt;svn update bazThat's all, now you have new folder in your working copy.P.S. You can't do this, using popular frontend for svn - TortoiseSVN.</atom:summary><link>http://jajatips.blogspot.com/2008/12/svn-update-only-new-folders-in-working.html</link><author>noreply@blogger.com (dimka)</author><thr:total>0</thr:total><description>&lt;img src="http://feeds.feedburner.com/~r/JavalevelUp/~4/05Kc5-G4gWQ" height="1" width="1"/&gt;</description></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1604594366142210766.post-98893948912522817</guid><pubDate>Thu, 20 Nov 2008 11:35:00 +0000</pubDate><atom:updated>2008-11-20T03:43:57.527-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">placeholder</category><category domain="http://www.blogger.com/atom/ns#">spring</category><title>Placeholder trick in Spring</title><atom:summary> Hello everyone! In the Spring Framework (I use Spring 2.5), we can use  property placeholders in the spring xml-based configuration file. I wrote simple example that consist of four beans. Two of them are simple beans, one is a factory and one is a result bean that we want to get from factory bean. &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;beans xmlns="http://www.springframework.org/schema/beans" </atom:summary><link>http://jajatips.blogspot.com/2008/11/sring-placeholder-trick.html</link><author>noreply@blogger.com (dimka)</author><thr:total>2</thr:total><description>&lt;img src="http://feeds.feedburner.com/~r/JavalevelUp/~4/8ElDUpvB_B0" height="1" width="1"/&gt;</description></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1604594366142210766.post-6672718184223726605</guid><pubDate>Thu, 06 Nov 2008 06:23:00 +0000</pubDate><atom:updated>2009-09-10T23:39:27.161-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">channel</category><category domain="http://www.blogger.com/atom/ns#">bytebuffer</category><category domain="http://www.blogger.com/atom/ns#">j2se</category><category domain="http://www.blogger.com/atom/ns#">inputstream</category><category domain="http://www.blogger.com/atom/ns#">nio</category><title>Reading from InputStream</title><atom:summary>Lately I've faced a simple problem: I needed to read all bytes from the InputStream. I didn't know type of the InputStream, so, I've spent more then two hours solving this problem without any success. I didn't want to read each byte from the stream. All evening I could think only about this problem. Solution turned to be very simple! I found a sample in the JDK installation directory($JAVA_HOME/</atom:summary><link>http://jajatips.blogspot.com/2008/11/reading-from-inputstream.html</link><author>noreply@blogger.com (dimka)</author><thr:total>0</thr:total><description>&lt;img src="http://feeds.feedburner.com/~r/JavalevelUp/~4/w9IfH2n50RA" height="1" width="1"/&gt;</description></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1604594366142210766.post-8633434480981224359</guid><pubDate>Tue, 07 Oct 2008 04:48:00 +0000</pubDate><atom:updated>2009-08-31T21:42:23.022-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">reflection</category><category domain="http://www.blogger.com/atom/ns#">java</category><category domain="http://www.blogger.com/atom/ns#">j2se</category><title>Using reflections for test equals.</title><atom:summary>Problem: test for equals two objects of the same class by all fields(deep equals).
For solve this problem I use reflection API from JDK. Package that store classes for reflection is java.lang.reflect. I wrote simple helper class with static methods.

You can find the complete realization at the and of the post.

First of all we should describe algorithm:
Input: two object that we need compare.
</atom:summary><link>http://jajatips.blogspot.com/2008/10/using-reflections-for-test-equals.html</link><author>noreply@blogger.com (dimka)</author><thr:total>0</thr:total><description>&lt;img src="http://feeds.feedburner.com/~r/JavalevelUp/~4/xoicQ66Xv0U" height="1" width="1"/&gt;</description></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1604594366142210766.post-947118793233370379</guid><pubDate>Sun, 28 Sep 2008 17:37:00 +0000</pubDate><atom:updated>2009-09-04T23:49:57.579-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">mysql</category><category domain="http://www.blogger.com/atom/ns#">tomcat</category><category domain="http://www.blogger.com/atom/ns#">jdbc</category><title>Connect to mysql 5 with Tomcat 6</title><atom:summary>When I try to solve this problem I read two docs: help in Netbeans 6(http://www.netbeans.org/kb/60/web/mysql-webapp.html#settingUpConnPool) and jndi help from tomcat.apache.org(http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html). But when I lookup InitialContext, application throws NamingException. I spent over four hours to solve this problem. As I've understood, when I </atom:summary><link>http://jajatips.blogspot.com/2008/09/connect-to-mysql-5-with-tomcat-6.html</link><author>noreply@blogger.com (dimka)</author><thr:total>2</thr:total><description>&lt;img src="http://feeds.feedburner.com/~r/JavalevelUp/~4/89B0Gv-SBNo" height="1" width="1"/&gt;</description></item></channel></rss>

