<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>UKoom &#187; Java</title>
	<atom:link href="http://www.ukoom.com/tag/java/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ukoom.com</link>
	<description>Documentum, SharePoint, Alfresco, ECM...</description>
	<lastBuildDate>Thu, 13 May 2010 00:21:48 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Eclipse SVN Error</title>
		<link>http://www.ukoom.com/eclipse-svn-error.htm</link>
		<comments>http://www.ukoom.com/eclipse-svn-error.htm#comments</comments>
		<pubDate>Wed, 05 May 2010 12:41:58 +0000</pubDate>
		<dc:creator>ukoom</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.ukoom.com/?p=1069</guid>
		<description><![CDATA[Error message:
commit -m [...]]]></description>
			<content:encoded><![CDATA[<p>Error message:</p>
<blockquote><p>commit -m &#8220;commit message.&#8221; files<br />
RA layer request failed<br />
svn: Commit failed (details follow):<br />
svn: PROPFIND request failed on &#8216;/repo/path/!svn/vcc/default&#8217;<br />
svn: PROPFIND of &#8216;/repo/path/!svn/vcc/default&#8217;: Could not read status  line: connection was closed by server. (http://example.com)</p>
<p>How to fix?</p>
<p>Looking at my SVN configurations I could only find the JavaHL option, no  SVNKit available.</p></blockquote>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://www.ukoom.com/modifying-jboss-for-enhanced-performance.htm" title="Modifying JBoss for Enhanced Performance">Modifying JBoss for Enhanced Performance</a></li><li><a href="http://www.ukoom.com/powerdesigner-reverse-engineer.htm" title="PowerDesigner Reverse Engineer">PowerDesigner Reverse Engineer</a></li><li><a href="http://www.ukoom.com/gwt-exception-the-style-name-should-be-in-camelcase.htm" title="GWT Exception &#8211; The style name should be in camelCase ">GWT Exception &#8211; The style name should be in camelCase </a></li><li><a href="http://www.ukoom.com/myeclipse-6-5-ga.htm" title="MyEclipse 6.5 GA">MyEclipse 6.5 GA</a></li><li><a href="http://www.ukoom.com/why-csv-files.htm" title="Why CSV files">Why CSV files</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.ukoom.com/eclipse-svn-error.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Modifying JBoss for Enhanced Performance</title>
		<link>http://www.ukoom.com/modifying-jboss-for-enhanced-performance.htm</link>
		<comments>http://www.ukoom.com/modifying-jboss-for-enhanced-performance.htm#comments</comments>
		<pubDate>Fri, 26 Feb 2010 08:37:53 +0000</pubDate>
		<dc:creator>ukoom</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.ukoom.com/?p=1048</guid>
		<description><![CDATA[The following procedure [...]]]></description>
			<content:encoded><![CDATA[<p><a name="58508">The following procedure is recommended  for enhancing the overall IBM Cognos Now! network performance.</a></p>
<p><a name="58508"><strong>Note: </strong>This procedure requires restarting  the JBoss application server.</a></p>
<h5><a name="58508">Steps</a></h5>
<ol>
<li><a name="58508">In the  \server\default\deploy\jbossweb-tomcat50.sar directory, locate and open the server.xml file.</a></li>
<li><a name="58508">Locate the block listed under the <strong>&lt;!&#8211; A  HTTP/1.1 Connector on port 8080 &#8211;&gt;</strong> heading.</a>
<p><a name="58508"><strong>Note: </strong>The specific port number and other  settings may vary.</a></p>
<p><a name="58508">This block should look like  this:</a></p>
<pre><a name="58508">&lt;!-- A HTTP/1.1 Connector on port 8080 --&gt;</a></pre>
<pre><a name="58508">&lt;Connector port="8080" address="${jboss.bind.address}"</a></pre>
<pre><a name="58508">maxThreads="400" minSpareThreads="100" maxSpareThreads="75"</a></pre>
<pre><a name="58508">enableLookups="false" redirectPort="8443" acceptCount="100"</a></pre>
<pre><a name="58508">connectionTimeout="20000" disableUploadTimeout="true"/&gt;</a></pre>
</li>
<li><a name="58508">Add the following parameters:</a>
<pre><a name="58508">compression="on" </a></pre>
<pre><a name="58508">socketBuffer="1045576" /&gt;</a></pre>
</li>
<li><a name="58508">Save and close the server.xml file.</a></li>
<li><a name="58508">Restart JBoss.</a></li>
</ol>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://www.ukoom.com/eclipse-svn-error.htm" title="Eclipse SVN Error">Eclipse SVN Error</a></li><li><a href="http://www.ukoom.com/powerdesigner-reverse-engineer.htm" title="PowerDesigner Reverse Engineer">PowerDesigner Reverse Engineer</a></li><li><a href="http://www.ukoom.com/gwt-exception-the-style-name-should-be-in-camelcase.htm" title="GWT Exception &#8211; The style name should be in camelCase ">GWT Exception &#8211; The style name should be in camelCase </a></li><li><a href="http://www.ukoom.com/myeclipse-6-5-ga.htm" title="MyEclipse 6.5 GA">MyEclipse 6.5 GA</a></li><li><a href="http://www.ukoom.com/why-csv-files.htm" title="Why CSV files">Why CSV files</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.ukoom.com/modifying-jboss-for-enhanced-performance.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PowerDesigner Reverse Engineer</title>
		<link>http://www.ukoom.com/powerdesigner-reverse-engineer.htm</link>
		<comments>http://www.ukoom.com/powerdesigner-reverse-engineer.htm#comments</comments>
		<pubDate>Fri, 05 Feb 2010 05:34:06 +0000</pubDate>
		<dc:creator>ukoom</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.ukoom.com/?p=1040</guid>
		<description><![CDATA[Get the Physical [...]]]></description>
			<content:encoded><![CDATA[<p>Get the Physical Data Model<br />
1. Menu Operation<br />
File, Reverse Engineer , Database, New Phycial Data Model<br />
2. Connection<br />
Add a connect to the target database<br />
3. Choose tables to generate the models</p>
<p>Generate the Java Code<br />
1. Menu Operation<br />
Tools , Generate Object-Oriented Model, Detail, O/R Mapping,<br />
Enable Transformations, Extended Model Definitions, O/R Mapping,      Hibernate</p>
<p>To be continued.</p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://www.ukoom.com/hibernate-lost-timezone-when-getting-timestamp-from-oracle.htm" title="Hibernate lost timezone when getting timestamp from Oracle">Hibernate lost timezone when getting timestamp from Oracle</a></li><li><a href="http://www.ukoom.com/eclipse-svn-error.htm" title="Eclipse SVN Error">Eclipse SVN Error</a></li><li><a href="http://www.ukoom.com/get-definition-for-view-in-oracle.htm" title="Get definition for view in Oracle">Get definition for view in Oracle</a></li><li><a href="http://www.ukoom.com/modifying-jboss-for-enhanced-performance.htm" title="Modifying JBoss for Enhanced Performance">Modifying JBoss for Enhanced Performance</a></li><li><a href="http://www.ukoom.com/powerdesigner-non-sqlerror.htm" title="PowerDesigner Non SQLError">PowerDesigner Non SQLError</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.ukoom.com/powerdesigner-reverse-engineer.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GWT Exception &#8211; The style name should be in camelCase</title>
		<link>http://www.ukoom.com/gwt-exception-the-style-name-should-be-in-camelcase.htm</link>
		<comments>http://www.ukoom.com/gwt-exception-the-style-name-should-be-in-camelcase.htm#comments</comments>
		<pubDate>Sat, 12 Dec 2009 06:49:46 +0000</pubDate>
		<dc:creator>ukoom</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.ukoom.com/?p=958</guid>
		<description><![CDATA[
When I needed [...]]]></description>
			<content:encoded><![CDATA[<div>
<p>When I needed to add or modify a CSS property of an element in Google Web Toolkit (GWT), I’d always do it like this :</p>
<div>
<div>
<pre style="font-family: monospace;">widget.<span style="color: #006633;">getElement</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span>.<span style="color: #006633;">setAttribute</span><span style="color: #009900;">(</span><span style="color: #0000ff;">"style"</span>, <span style="color: #0000ff;">"align:right;"</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span></pre>
</div>
</div>
<p>However, if there was already any style information for defined for that element, it would be overwritten. You could get the current attributes first and then readd them along with your new info but there is a much cleaner way :</p>
<div>
<div>
<pre style="font-family: monospace;">widget.<span style="color: #006633;">getElement</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span>.<span style="color: #006633;">getStyle</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span>.<span style="color: #006633;">setProperty</span><span style="color: #009900;">(</span><span style="color: #0000ff;">"align"</span>, <span style="color: #0000ff;">"right"</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span></pre>
</div>
</div>
<p><strong>Important!</strong> Note that when setting a style property, your need to use <a href="http://en.wikipedia.org/wiki/CamelCase">camel case</a> for the property name.</p>
<div>
<div>
<pre style="font-family: monospace;"><span style="color: #666666; font-style: italic;">//WRONG!</span>
myWidget.<span style="color: #006633;">getElement</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span>.<span style="color: #006633;">getStyle</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span>.<span style="color: #006633;">setProperty</span><span style="color: #009900;">(</span><span style="color: #0000ff;">"background-color"</span>, <span style="color: #0000ff;">"red"</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">// RIGHT</span>
myWidget.<span style="color: #006633;">getElement</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span>.<span style="color: #006633;">getStyle</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span>.<span style="color: #006633;">setProperty</span><span style="color: #009900;">(</span><span style="color: #0000ff;">"backgroundColor"</span>, <span style="color: #0000ff;">"red"</span><span style="color: #009900;">)</span><span style="color: #339933;">;

This solution is from </span>http://www.francoismaillet.com/blog/?p=68</pre>
</div>
</div>
</div>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://www.ukoom.com/eclipse-svn-error.htm" title="Eclipse SVN Error">Eclipse SVN Error</a></li><li><a href="http://www.ukoom.com/modifying-jboss-for-enhanced-performance.htm" title="Modifying JBoss for Enhanced Performance">Modifying JBoss for Enhanced Performance</a></li><li><a href="http://www.ukoom.com/powerdesigner-reverse-engineer.htm" title="PowerDesigner Reverse Engineer">PowerDesigner Reverse Engineer</a></li><li><a href="http://www.ukoom.com/myeclipse-6-5-ga.htm" title="MyEclipse 6.5 GA">MyEclipse 6.5 GA</a></li><li><a href="http://www.ukoom.com/why-csv-files.htm" title="Why CSV files">Why CSV files</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.ukoom.com/gwt-exception-the-style-name-should-be-in-camelcase.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MyEclipse 6.5 GA</title>
		<link>http://www.ukoom.com/myeclipse-6-5-ga.htm</link>
		<comments>http://www.ukoom.com/myeclipse-6-5-ga.htm#comments</comments>
		<pubDate>Thu, 10 Dec 2009 23:54:20 +0000</pubDate>
		<dc:creator>ukoom</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.ukoom.com/?p=955</guid>
		<description><![CDATA[1. Overview
MyEcipse 6.5 [...]]]></description>
			<content:encoded><![CDATA[<h2>1. Overview</h2>
<p>MyEcipse 6.5 delivers Java enterprise developers new strategic application  lifecycle management (ALM) features. In addition, it includes improvements of  MyEclipse&#8217;s industry leading Java EE tools and 1-click Java application  technology repository and runtime.</p>
<p>MyEclipse&#8217;s new ALM features are founded upon the integration of Maven2  project and build management tools for MyEclipse (Maven4MyEclipse).  Using  Maven4MyEclipse developers can now develop Maven versions of MyEclipse Java and  Java EE projects. This takes advantage of the full suite of rich MyEclipse  application technology frameworks and tools in their MyEclipse Maven projects.  Additionally, Maven4MyEclipse allows developers to seamlessly leverage their  strategic Maven-based ALM processes from within MyEclipse.</p>
<p>MyEclipse Java EE tools include improved JSF &amp; Facelets visual design and  coding, Spring IDE 2.0 for MyEclipse with Spring Web Flow, Hibernate Tools 3.2  for MyEclipse, JSR 168 Portlet development tools, and new web.xml and JSP tag  library (TLD) editors. Working through a partnership with ICEsoft, MyEclipse  ICEfaces support has been updated to support visual design and deployment of the  latest ICEfaces 1.7.0 JSF Ajax component library.</p>
<p>MyEclipse 1-click Java application technology services include a jar library  repository of all Java EE and related technologies, e.g., Struts, Hibernate, &#8230;  and an custom embedded Tomcat 6 server runtime for rapid testing of Java EE web  applications and examples. The repository has been updated to jar libraries for  Spring 2.5, Hibernate 3.2, Struts 1.3.8, JSR 168 Portlet API and JAX-WS 2.1. The  integrated MyEclipse Tomcat 6 server has been updated with a JAX-WS 2.1 (Metro)  runtime as well as a sample security realm for use by a soon to be release set  of JAX-WS web services security examples.</p>
<p>MyEclipse 6.5 is built upon  the Eclipse 3.3 and Web Tools 2.0.2 platforms, i.e., Europa distro. Backwards  compatibility with MyEclipse versions 6.x &#8211; 4.x projects and features is  maintained to the maximum degree possible.</p>
<h2>2. MyEclipse 6.5 GA Highlights</h2>
<p>This section presents an overview of new and improved MyEclipse 6.5 features.  To learn more about the many MyEclipse features browse the <a href="http://www.blogjava.net/vip01/archive/2008/10/intro/architecture_ME.html">MyEclipse Learning Center</a>.</p>
<ul>
<li>Maven4MyEclipse
<ul>
<li>Maven2 project support is available for
<ul>
<li>MyEclipse Web Projects</li>
<li>MyEclipse EJB Projects</li>
<li>Java Projects</li>
</ul>
</li>
<li>MyEclipse Capabilities Wizards automatically detect and configure Maven jar  dependencies
<ul>
<li>includes Struts, Hibernate, Spring, JSF, ICEfaces, JPA, Portlets, MyEclipse  Reports</li>
</ul>
</li>
<li>Maven Dependency Configuration Wizard</li>
<li>Execute Maven goals from MyEclipse</li>
<li>Automated installation and configuration of local repository
<ul>
<li>includes Sun jars installation</li>
</ul>
</li>
<li>Maven Jar Import Wizard</li>
<li>Easy JDK configuration</li>
<li>Build MyEclipse Maven projects from Maven commandline</li>
</ul>
</li>
</ul>
<ul>
<li>Spring IDE 2.0 for MyEclipse Upgrade
<ul>
<li>Custom implementation of Spring IDE 2.0 for MyEclipse</li>
<li>Spring Java config support</li>
<li>Spring Web Flow 1.0 support with graphical web flow editor</li>
<li>New Spring Explorer, Beans Cross References and and AOP Event views</li>
<li>Project Explorer view integration</li>
<li>AOP analysis and validation</li>
<li>Rename refactoring support for bean Ids, properties and classes</li>
<li>Mylyn integration</li>
<li>Fine grained validation control</li>
</ul>
</li>
</ul>
<ul>
<li>Hibernate Tools 3.3.2 for MyEclipse Upgrade
<ul>
<li>Upgraded to Hibernate Tools 3.2.2CR1</li>
<li>Hibernate Mapping File Editor (hbm)</li>
<li>Hibernate 3.2 support for standalone Hibernate Projects</li>
<li>Hibernate annotations support</li>
<li>MyEclipse advanced Spring-Hibernate tools support Hibernate annotation-based  projects
<ul>
<li>Reverse engineer annotated POJOs from database schema</li>
</ul>
</li>
<li>Updated HQL and Criteria editors to recognize annotated Hibernate  configurations</li>
<li>Named query validation</li>
<li>Java editor content assist support for Hibernate annoations</li>
<li>Easily test and correct HQL and Criteria queries</li>
<li>Updated XML catalog with new hibernate-mapping and hibernate-config DTDs  (version 3.2.5)</li>
</ul>
</li>
</ul>
<ul>
<li>Web Services
<ul>
<li>JAX-WS 2.0 web services framework support
<ul>
<li>Top-down and bottom-up JAX-WS creation wizards</li>
<li>Generate JAX-WS client from local or remote WSDL files</li>
<li>Test JAX-WS web services using Web Service Explorer</li>
</ul>
</li>
<li>JAX-WS web security examples to be available via Examples On-Demand</li>
</ul>
</li>
</ul>
<ul>
<li>JSR 168 Portlet Support
<ul>
<li>Portlet Project Capabilities Wizard</li>
<li>Portlet Creation Wizard using standard templates</li>
<li>Enabled for standard web project deployment to JSR 168 portal</li>
<li>Use MyEclipse visual web design tools to develop  HTML, JSP, Struts and JSF  portlet content</li>
</ul>
</li>
</ul>
<ul>
<li>1-click Java Application Technology Services
<ul>
<li>Jar Library Repository enhancements</li>
</ul>
<ul>
<li>
<ul>
<li>Added libraries for: Hibernate 3.2, Spring 2.5, JAX-WS 2.0 Web Services</li>
</ul>
</li>
<li>MyEclipse Tomcat 6 Server (6.0.11-custom)
<ul>
<li>Includes JAX-WS 2.1 runtime</li>
<li>Example security realm added for upcoming</li>
</ul>
</li>
</ul>
</li>
</ul>
<ul>
<li>Java Server Faces and Facelet Tools
<ul>
<li>Visual JSF Page Designer</li>
</ul>
<ul>
<li>
<ul>
<li>New code assist and validation for all facelets libraries</li>
</ul>
</li>
</ul>
<ul>
<li>
<ul>
<li>New preview mode renders JSF</li>
</ul>
</li>
<li>faces.xml flow editor
<ul>
<li>New form-based Design mode and configuration wizards</li>
<li>Managed-bean validation and code-assist</li>
</ul>
</li>
<li>ICEfaces 1.7 JSF Ajax UI component library support (use Community Essentials  to install this feature)</li>
<li>JSF Designer Feature Overview document see MyEclipse Learning Center under  Help&gt;Help Contents menu</li>
</ul>
</li>
<li>MyEclipse UML improvements:
<ul>
<li>Convert class diagram to XSD file</li>
</ul>
</li>
</ul>
<p>See <a href="http://www.myeclipseide.com/module-htmlpages-display-pid-361.html">New and  Noteworthy</a> for more details and screenshots.</p>
<hr />
<h2><a name="get_help"></a>3. Getting Help</h2>
<p>MyEclipse provides numerous technical support resources:</p>
<ul>
<li><a href="http://www.myeclipseide.com/PNphpBB2-index-c-9.html">MyEclipse  FAQs</a></li>
<li><a href="http://www.myeclipseide.com/module-htmlpages-display-pid-7.html">MyEclipse  Educational Material</a> (Tutorials, Demos, etc.)</li>
<li><a href="http://www.blogjava.net/vip01/archive/2008/10/15/module-PNphpBB2.html#">MyEclipse Support Forums</a></li>
</ul>
<hr />
<h2><a name="issues"></a>4. Known Issues</h2>
<h3>MyEclipse Installer</h3>
<ul>
<li>Do not install MyEclipse into a folder that has Cyrillic characters in its  path. In some cases MyEclipse will not launch correctly. Additionally the  MyEclipse installer is not able to display the release notes.</li>
</ul>
<h3>Windows Vista Support</h3>
<ul>
<li>See Matisse4Myclipse below for known issues.</li>
</ul>
<h3>Matisse4MyEclipse Known Issues</h3>
<ul>
<li>Matisse4MyEclipse is not part of the primary MyEclipse download.  The  instructions for downloading and installing Matisse4MyEclipse is provided in the  MyEclipse Learning Center found in the Help Infocenter. Launch the Help Info  Center (see Help &gt; Help Contents). Then navigate to the help topic at  &#8220;MyEclipse Learning Center &gt; Swing Development &gt; Getting Started&#8221;.</li>
<li>The Form Editor rendering of modified custom sub-forms and Java beans is not  automatically updated. You must close and reopen the Form Editor for the  rendering to be updated and correctly rendered.</li>
<li>M4ME has not been certified to run on Java SE 6. Therefore if Java 6 is  detected the M4ME Form Editor will only operate in experimental mode. The main  issue is that it can be difficult to open ctx-menus within the Form Editor.</li>
</ul>
<h3><strong>Cross Platform Visual JSP/HTML Designer Known Issues</strong></h3>
<ul>
<li>Editing XHTML documents does not support code-assist of non-HTML tags.</li>
<li>Struts and JSF custom tags do not render styleClass attributes in design  view.</li>
<li>Empty table cells are initially shown collapsed in design view.</li>
<li>Cut/Copy/Paste of tables not fully supported.</li>
</ul>
<h3>AJAX Tools Issues</h3>
<ul>
<li>Remote scripts loaded from Scripts view that are generated by a Servlet that  contains breakpoints, will cause Remote Script to be blank when loaded in  editor.</li>
<li>Visual JSP/HTML Designer-Design View can&#8217;t be made editable when a  JavaScript debugging thread is paused at a breakpoint which is loaded form a  http:// based URL.</li>
<li>The AJAX Web Browser will disabled to all user input when the JavaScript  debugger attached to that browser is stopped at a JavaScript Breakpoint. To  reenable user-input the JavaScript debug thread will have to be resumed.</li>
</ul>
<h3><strong>MyEclipse on Linux Version Known Issues</strong></h3>
<ul>
<li><strong>Linux Internal Web Browser Stability</strong><br />
The Visual HTML Designer on  Linux has exhibited rare stability problems on some systems. Until this matter  is resolved the WYSIWYG design mode has been restricted to a source-only mode of  operation. You can reenable the WYSIYWG design mode for experimental use by  including the commandline flag: -D linux.experimental</li>
<li><strong>Linux Internal Web Browser Compatibility</strong><br />
The Visual HTML Designer  and AJAX tools on linux can sometimes have an incompatibility with the Eclipse  internal web browser.  Please read this <a href="http://www.blogjava.net/vip01/archive/2008/10/15/technical/webbrowser.html">document</a> for more information.</li>
<li><strong>Linux X86_64 Compatibility</strong><br />
The Visual JSP/HTML Designer  and AJAX tools are not available on the 64-bit versions of Eclipse on Linux  X86_64.</li>
<li><strong>Flash plugin unavailable in AJAX Browser</strong><br />
When loading a  webpage that contains a flash plugin, you will be prompted to download a  plugin.  You must press cancel to continue to use the browser as normal.  Also  you will need to resize the window once to fix the blank page because of a  painting problem. As a result the MyEclipse AJAX tutorial does not property  function in the browser.</li>
</ul>
<h3><strong>MyEclipse on Mac OS X Known Issues</strong></h3>
<ul>
<li>Due to MyEclipse instability issues on the Mac platform the current features  are not available: Visual Web Designer, MyEclipse UML and Matisse4MyEclipse. We  are working to resolve the instability issues as quickly as possible.</li>
<li>Application servers and Derby server won&#8217;t be properly stopped if MyEclipse  is shut down using &#8220;Quit&#8221; from the application menu, Dock or keyboard shortcut.  Close all workbench windows for proper shut down. See <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=194146">Eclipse  Bug#194146</a></li>
<li>The MyEclipse AJAX Tools are available on the Mac platform as experimental  features. Use the <code>-Dmac.experimetal=true </code>command line argument to  enable this experimental feature set.</li>
</ul>
<h3><strong>Hibernate Tools for MyEclipse Known Issues</strong></h3>
<ul>
<li><strong>Bug #3858</strong>, It is possible to use a Hibernate 3.1 DTD that can result  in an error on a Hibernate upgrade. To resolve the ambiguity MyEclipse chose to  use the Hibernate 3.1 DTDs by default in the Hibernate editors.</li>
<li><strong>Locale specification must include country code</strong> When explicitly  launching MyEclipse with the &#8220;-nl &#8221; commandline arguments the locale  must include country code, e.g., -nl en_EN or -nl ja_JP.<br />
Failure to include  the locale country code will result in an error when the HQL Editor is launched.</li>
</ul>
<h3>MyEclipse CSS Editor</h3>
<ul>
<li>If code folding is enable and the properties view is open, typing in the CSS  editor can be very slow.  See <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=158877">Eclipse  Bug#158877</a></li>
</ul>
<h3>MyEclipse Tomcat</h3>
<ul>
<li>MyEclipse Tomcat will work with all Java 5 JDKs, however, if you wish to use  a Java 6 JDK to run MyEclipse Tomcat, please use JDK 6 update 4 (1.6.0_04) or  above to avoid JAX-WS API compatibility issues.</li>
</ul>
<h3>MyEclipse JPA</h3>
<ul>
<li>Database VIEWs can not be accessed from the JPA  Project&gt;MyEclipse&gt;Generate Entities&#8230; ctx-menu action. Instead navigate  to the view(s) from the DB Browser and select the Reverse Engineer JPA action</li>
</ul>
<h3>MyEclipse ScreenCapture PRO</h3>
<ul>
<li>The ScreenCapture PRO facility is only available on Windows XP and 2000.  Vista support is planned.</li>
</ul>
<hr />
<h2><a name="discontinued_features"></a>5. Discontinued Features</h2>
<h3><em>Advanced Notice Of Discontinuation of XFire Web Services Framework and  Tools</em></h3>
<p>Genuitec, LLC announces that MyEclipse runtime and developer tool  support for the XFire web services framework will be discontinued. Genuitec will  begin a phase out process beginning with the MyEclipse 7 release on October 1,  2008 and reaching complete discontinuation with the introduction of MyEclipse 8  on October 1, 2009. <a href="http://www.blogjava.net/vip01/archive/com.genuitec.myeclipse.doc/html/overview/technical/xfirenotice_20080616.html">Read  the announcement</a></p>
<hr />
<h2><a name="details"></a>6. Recent Enhancements and Fixes</h2>
<p>Additional details for enhancements and bug fixes for MyEclipse 6.5 GA are  identified in the following summary.</p>
<p><strong>New Enhancements in MyEclipse 6.5 GA</strong></p>
<table border="1">
<tbody>
<tr>
<td width="10%" align="middle"><strong>ID</strong></td>
<td width="65%" align="middle"><strong>Feature</strong></td>
<td width="25%" align="middle"><strong>Notes</strong></td>
</tr>
<tr>
<td align="middle" valign="top">8405</td>
<td valign="top">[UML] Create XML Schemas from Class diagrams</td>
<td valign="top"></td>
</tr>
<tr>
<td valign="top"></td>
<td valign="top"><a href="http://www.blogjava.net/vip01/archive/2008/10/15/234418.html#newerfeatures">See Section 2 for additional new  features</a></td>
<td valign="top"></td>
</tr>
</tbody>
</table>
<p><strong>Problems fixed since MyEclipse 6.5 M1<br />
</strong></p>
<table border="1">
<tbody>
<tr>
<td width="10%" align="middle"><strong>ID</strong></td>
<td width="65%" align="middle"><strong>Defects &#8211; FIXED</strong></td>
<td width="25%" align="middle"><strong>Notes</strong></td>
</tr>
<tr>
<td align="middle" valign="top">8172</td>
<td valign="top">Vista UAC warning on ME Startup</td>
<td valign="top"></td>
</tr>
<tr>
<td align="middle" valign="top">8331</td>
<td valign="top">[Portlets] &#8220;Add Portlet Capabilities&#8221; is enabled for Java  projects</td>
<td valign="top"></td>
</tr>
<tr>
<td align="middle" valign="top">8338</td>
<td valign="top">[Spring] Properties action in Spring Explorer does not work</td>
<td valign="top"></td>
</tr>
<tr>
<td align="middle" valign="top">8370</td>
<td valign="top">[Spring] JAR file lock held on lib since upgrading to 6.5M1</td>
<td valign="top">See <a href="http://www.myeclipseide.com/PNphpBB2-viewtopic-t-20837.html">link </a>for  more details.</td>
</tr>
<tr>
<td align="middle" valign="top">8403</td>
<td valign="top">[Spring] Spring 2.X JDBC containers missing commons-pool</td>
<td valign="top"></td>
</tr>
<tr>
<td align="middle" valign="top">8447</td>
<td valign="top">web.xml editor content assist for welcome-files don&#8217;t produce  valid results</td>
<td valign="top"></td>
</tr>
<tr>
<td align="middle" valign="top">8489</td>
<td valign="top">Web.xml editor design view shows error with doctype 2.2 DTD</td>
<td valign="top"></td>
</tr>
<tr>
<td align="middle" valign="top">8511</td>
<td valign="top">[portlets] Unable to modify portlet library container</td>
<td valign="top"></td>
</tr>
<tr>
<td valign="top"></td>
<td valign="top"></td>
<td valign="top"></td>
</tr>
</tbody>
</table>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://www.ukoom.com/eclipse-svn-error.htm" title="Eclipse SVN Error">Eclipse SVN Error</a></li><li><a href="http://www.ukoom.com/modifying-jboss-for-enhanced-performance.htm" title="Modifying JBoss for Enhanced Performance">Modifying JBoss for Enhanced Performance</a></li><li><a href="http://www.ukoom.com/powerdesigner-reverse-engineer.htm" title="PowerDesigner Reverse Engineer">PowerDesigner Reverse Engineer</a></li><li><a href="http://www.ukoom.com/gwt-exception-the-style-name-should-be-in-camelcase.htm" title="GWT Exception &#8211; The style name should be in camelCase ">GWT Exception &#8211; The style name should be in camelCase </a></li><li><a href="http://www.ukoom.com/why-csv-files.htm" title="Why CSV files">Why CSV files</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.ukoom.com/myeclipse-6-5-ga.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why CSV files</title>
		<link>http://www.ukoom.com/why-csv-files.htm</link>
		<comments>http://www.ukoom.com/why-csv-files.htm#comments</comments>
		<pubDate>Sat, 21 Mar 2009 01:51:18 +0000</pubDate>
		<dc:creator>ukoom</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.ukoom.com/?p=591</guid>
		<description><![CDATA[
 The first alternative [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left; mso-layout-grid-align: none;" align="left"><span style="font-size: 10pt; font-family: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ansi-language: ZH-CN;"></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left; mso-layout-grid-align: none;" align="left"><span style="font-size: 10pt; font-family: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ansi-language: ZH-CN;"> </span><span style="font-size: 10pt; font-family: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ansi-language: ZH-CN;">The first alternative is to work not with actual spreadsheet files but with comma-separated value (CSV) files instead. CSV is a popular file format for exchanging spreadsheets. Any worthy spreadsheet can export to and import from CSV files.</span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left; mso-layout-grid-align: none;" align="left"><span style="font-size: 10pt; font-family: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ansi-language: ZH-CN;"> </span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left; mso-layout-grid-align: none;" align="left"><span style="font-size: 10pt; font-family: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ansi-language: ZH-CN;">Furthermore, many third-party products that work with spreadsheets also support CSV. For example, most accounting packages can work with CSV files. Although CSV files are not XML, it is simple to convert them into XML files with tools such as XI (see Resources). The TopXML site also includes algorithms for a pure XSLT solution (see Resources).</span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left; mso-layout-grid-align: none;" align="left"><span style="font-size: 10pt; font-family: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ansi-language: ZH-CN;"> </span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left; mso-layout-grid-align: none;" align="left"><span style="font-size: 10pt; font-family: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ansi-language: ZH-CN;">Using CSV files is much more attractive for servers. For one thing, you are no longer limited to certain platforms. Instead, you are broadening the options for your users (who can now work with Lotus 1-2-3 and other spreadsheets as well as many third-party tools that also recognize the CSV format).</span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left; mso-layout-grid-align: none;" align="left"><span style="font-size: 10pt; font-family: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ansi-language: ZH-CN;"> </span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left; mso-layout-grid-align: none;" align="left"><span style="font-size: 10pt; font-family: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ansi-language: ZH-CN;">About the only downside with this solution is that your users must take the extra step of saving their data in CSV. In practice I have found that this is seldom a problem, but your mileage may vary.</span></p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://www.ukoom.com/eclipse-svn-error.htm" title="Eclipse SVN Error">Eclipse SVN Error</a></li><li><a href="http://www.ukoom.com/modifying-jboss-for-enhanced-performance.htm" title="Modifying JBoss for Enhanced Performance">Modifying JBoss for Enhanced Performance</a></li><li><a href="http://www.ukoom.com/powerdesigner-reverse-engineer.htm" title="PowerDesigner Reverse Engineer">PowerDesigner Reverse Engineer</a></li><li><a href="http://www.ukoom.com/gwt-exception-the-style-name-should-be-in-camelcase.htm" title="GWT Exception &#8211; The style name should be in camelCase ">GWT Exception &#8211; The style name should be in camelCase </a></li><li><a href="http://www.ukoom.com/myeclipse-6-5-ga.htm" title="MyEclipse 6.5 GA">MyEclipse 6.5 GA</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.ukoom.com/why-csv-files.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>why CSV files</title>
		<link>http://www.ukoom.com/why-csv-files-2.htm</link>
		<comments>http://www.ukoom.com/why-csv-files-2.htm#comments</comments>
		<pubDate>Sat, 21 Mar 2009 01:50:16 +0000</pubDate>
		<dc:creator>ukoom</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.ukoom.com/?p=590</guid>
		<description><![CDATA[
 
The first alternative [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left; mso-layout-grid-align: none;" align="left"><span style="font-size: 10pt; font-family: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ansi-language: ZH-CN;"></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left; mso-layout-grid-align: none;" align="left"><span style="font-size: 10pt; font-family: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ansi-language: ZH-CN;"> </span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left; mso-layout-grid-align: none;" align="left"><span style="font-size: 10pt; font-family: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ansi-language: ZH-CN;">The first alternative is to work not with actual spreadsheet files but with comma-separated value (CSV) files instead. CSV is a popular file format for exchanging spreadsheets. Any worthy spreadsheet can export to and import from CSV files.</span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left; mso-layout-grid-align: none;" align="left"><span style="font-size: 10pt; font-family: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ansi-language: ZH-CN;"> </span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left; mso-layout-grid-align: none;" align="left"><span style="font-size: 10pt; font-family: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ansi-language: ZH-CN;">Furthermore, many third-party products that work with spreadsheets also support CSV. For example, most accounting packages can work with CSV files. Although CSV files are not XML, it is simple to convert them into XML files with tools such as XI (see Resources). The TopXML site also includes algorithms for a pure XSLT solution (see Resources).</span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left; mso-layout-grid-align: none;" align="left"><span style="font-size: 10pt; font-family: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ansi-language: ZH-CN;"> </span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left; mso-layout-grid-align: none;" align="left"><span style="font-size: 10pt; font-family: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ansi-language: ZH-CN;">Using CSV files is much more attractive for servers. For one thing, you are no longer limited to certain platforms. Instead, you are broadening the options for your users (who can now work with Lotus 1-2-3 and other spreadsheets as well as many third-party tools that also recognize the CSV format).</span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left; mso-layout-grid-align: none;" align="left"><span style="font-size: 10pt; font-family: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ansi-language: ZH-CN;"> </span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left; mso-layout-grid-align: none;" align="left"><span style="font-size: 10pt; font-family: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ansi-language: ZH-CN;">About the only downside with this solution is that your users must take the extra step of saving their data in CSV. In practice I have found that this is seldom a problem, but your mileage may vary.</span></p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://www.ukoom.com/eclipse-svn-error.htm" title="Eclipse SVN Error">Eclipse SVN Error</a></li><li><a href="http://www.ukoom.com/modifying-jboss-for-enhanced-performance.htm" title="Modifying JBoss for Enhanced Performance">Modifying JBoss for Enhanced Performance</a></li><li><a href="http://www.ukoom.com/powerdesigner-reverse-engineer.htm" title="PowerDesigner Reverse Engineer">PowerDesigner Reverse Engineer</a></li><li><a href="http://www.ukoom.com/gwt-exception-the-style-name-should-be-in-camelcase.htm" title="GWT Exception &#8211; The style name should be in camelCase ">GWT Exception &#8211; The style name should be in camelCase </a></li><li><a href="http://www.ukoom.com/myeclipse-6-5-ga.htm" title="MyEclipse 6.5 GA">MyEclipse 6.5 GA</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.ukoom.com/why-csv-files-2.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java中replaceAll和split中的反斜杠</title>
		<link>http://www.ukoom.com/java%e4%b8%adreplaceall%e5%92%8csplit%e4%b8%ad%e7%9a%84%e5%8f%8d%e6%96%9c%e6%9d%a0.htm</link>
		<comments>http://www.ukoom.com/java%e4%b8%adreplaceall%e5%92%8csplit%e4%b8%ad%e7%9a%84%e5%8f%8d%e6%96%9c%e6%9d%a0.htm#comments</comments>
		<pubDate>Fri, 27 Feb 2009 08:46:14 +0000</pubDate>
		<dc:creator>ukoom</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.ukoom.com/?p=558</guid>
		<description><![CDATA[在Java中处理一些路径相关的问题的时候，如要取出ie浏览器上传文件的文件名，由于ie会把整个文件路径都作为文件名上传，需要用java.lang.String中的replaceAll或者split来处理。如：
String temp[] = [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-size: 10.5pt; mso-bidi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman';"><span style="font-family: 宋体;">在</span></span><span style="font-size: 10.5pt; font-family: &quot;Times New Roman&quot;;" lang="EN-US">Java</span><span style="font-size: 10.5pt; mso-bidi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman';"><span style="font-family: 宋体;">中处理一些路径相关的问题的时候，如要取出</span></span><span style="font-size: 10.5pt; font-family: &quot;Times New Roman&quot;;" lang="EN-US">ie</span><span style="font-size: 10.5pt; mso-bidi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman';"><span style="font-family: 宋体;">浏览器上传文件的文件名，由于</span></span><span style="font-size: 10.5pt; font-family: &quot;Times New Roman&quot;;" lang="EN-US">ie</span><span style="font-size: 10.5pt; mso-bidi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman';"><span style="font-family: 宋体;">会把整个文件路径都作为文件名上传，需要用</span></span><span style="font-size: 10.5pt; font-family: &quot;Times New Roman&quot;;" lang="EN-US">java.lang.String</span><span style="font-size: 10.5pt; mso-bidi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman';"><span style="font-family: 宋体;">中的</span></span><span style="font-size: 10.5pt; font-family: &quot;Times New Roman&quot;;" lang="EN-US">replaceAll</span><span style="font-size: 10.5pt; mso-bidi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman';"><span style="font-family: 宋体;">或者</span></span><span style="font-size: 10.5pt; font-family: &quot;Times New Roman&quot;;" lang="EN-US">split</span><span style="font-family: 宋体;"><span style="font-size: 10.5pt; mso-bidi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman';">来处理。如：</span><span style="font-size: 10.5pt; font-family: &quot;Times New Roman&quot;;" lang="EN-US"></span></span></p>
<p><span style="font-size: 10.5pt; font-family: &quot;Times New Roman&quot;;" lang="EN-US">String temp[] = name.split(&#8221;\\\\&#8221;);<br />
if (temp.length &gt; 1) {<br />
name = temp[temp.length - 1];<br />
}</span></p>
<p><span style="font-size: 10.5pt; font-family: &quot;Times New Roman&quot;;" lang="EN-US">regex</span><span style="font-size: 10.5pt; mso-bidi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman';"><span style="font-family: 宋体;">为</span></span><span style="font-size: 10.5pt; font-family: &quot;Times New Roman&quot;;" lang="EN-US">\\\\</span><span style="font-size: 10.5pt; mso-bidi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman';"><span style="font-family: 宋体;">，因为在</span></span><span style="font-size: 10.5pt; font-family: &quot;Times New Roman&quot;;" lang="EN-US">java</span><span style="font-size: 10.5pt; mso-bidi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman';"><span style="font-family: 宋体;">中</span></span><span style="font-size: 10.5pt; font-family: &quot;Times New Roman&quot;;" lang="EN-US">\\</span><span style="font-size: 10.5pt; mso-bidi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman';"><span style="font-family: 宋体;">表示一个</span></span><span style="font-size: 10.5pt; font-family: &quot;Times New Roman&quot;;" lang="EN-US">\</span><span style="font-size: 10.5pt; mso-bidi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman';"><span style="font-family: 宋体;">，而</span></span><span style="font-size: 10.5pt; font-family: &quot;Times New Roman&quot;;" lang="EN-US">regex</span><span style="font-size: 10.5pt; mso-bidi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman';"><span style="font-family: 宋体;">中</span></span><span style="font-size: 10.5pt; font-family: &quot;Times New Roman&quot;;" lang="EN-US">\\</span><span style="font-size: 10.5pt; mso-bidi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman';"><span style="font-family: 宋体;">也表示</span></span><span style="font-size: 10.5pt; font-family: &quot;Times New Roman&quot;;" lang="EN-US">\</span><span style="font-size: 10.5pt; mso-bidi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman';"><span style="font-family: 宋体;">，所以当</span></span><span style="font-size: 10.5pt; font-family: &quot;Times New Roman&quot;;" lang="EN-US">\\\\</span><span style="font-size: 10.5pt; mso-bidi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman';"><span style="font-family: 宋体;">解析成</span></span><span style="font-size: 10.5pt; font-family: &quot;Times New Roman&quot;;" lang="EN-US">regex</span><span style="font-size: 10.5pt; mso-bidi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman';"><span style="font-family: 宋体;">的时候为</span></span><span style="font-size: 10.5pt; font-family: &quot;Times New Roman&quot;;" lang="EN-US">\\</span><span style="font-size: 10.5pt; mso-bidi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman';"><span style="font-family: 宋体;">。由于</span></span><span style="font-size: 10.5pt; font-family: &quot;Times New Roman&quot;;" lang="EN-US">unix</span><span style="font-size: 10.5pt; mso-bidi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman';"><span style="font-family: 宋体;">中</span></span><span style="font-size: 10.5pt; font-family: &quot;Times New Roman&quot;;" lang="EN-US">file.separator</span><span style="font-size: 10.5pt; mso-bidi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman';"><span style="font-family: 宋体;">为斜杠</span></span><span style="font-size: 10.5pt; font-family: &quot;Times New Roman&quot;;" lang="EN-US">&#8220;/&#8221;</span><span style="font-size: 10.5pt; mso-bidi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman';"><span style="font-family: 宋体;">，下面这段代码可以处理</span></span><span style="font-size: 10.5pt; font-family: &quot;Times New Roman&quot;;" lang="EN-US">windows</span><span style="font-size: 10.5pt; mso-bidi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman';"><span style="font-family: 宋体;">和</span></span><span style="font-size: 10.5pt; font-family: &quot;Times New Roman&quot;;" lang="EN-US">unix</span><span style="font-family: 宋体;"><span style="font-size: 10.5pt; mso-bidi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman';">下的所有情况：</span><span style="font-size: 10.5pt; font-family: &quot;Times New Roman&quot;;" lang="EN-US"></span></span></p>
<p><span style="font-size: 10.5pt; font-family: &quot;Times New Roman&quot;; mso-font-kerning: 1.0pt; mso-fareast-font-family: 宋体; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA;" lang="EN-US">String temp[] = name.replaceAll(&#8221;\\\\&#8221;,&#8221;/&#8221;).split(&#8221;/&#8221;);<br />
if (temp.length &gt; 1) {<br />
    name = temp[temp.length - 1];<br />
} </span></p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://www.ukoom.com/eclipse-svn-error.htm" title="Eclipse SVN Error">Eclipse SVN Error</a></li><li><a href="http://www.ukoom.com/modifying-jboss-for-enhanced-performance.htm" title="Modifying JBoss for Enhanced Performance">Modifying JBoss for Enhanced Performance</a></li><li><a href="http://www.ukoom.com/powerdesigner-reverse-engineer.htm" title="PowerDesigner Reverse Engineer">PowerDesigner Reverse Engineer</a></li><li><a href="http://www.ukoom.com/gwt-exception-the-style-name-should-be-in-camelcase.htm" title="GWT Exception &#8211; The style name should be in camelCase ">GWT Exception &#8211; The style name should be in camelCase </a></li><li><a href="http://www.ukoom.com/myeclipse-6-5-ga.htm" title="MyEclipse 6.5 GA">MyEclipse 6.5 GA</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.ukoom.com/java%e4%b8%adreplaceall%e5%92%8csplit%e4%b8%ad%e7%9a%84%e5%8f%8d%e6%96%9c%e6%9d%a0.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hibernate双向关联中常常用Set 而不用List</title>
		<link>http://www.ukoom.com/hibernate%e5%8f%8c%e5%90%91%e5%85%b3%e8%81%94%e4%b8%ad%e5%b8%b8%e5%b8%b8%e7%94%a8set-%e8%80%8c%e4%b8%8d%e7%94%a8list.htm</link>
		<comments>http://www.ukoom.com/hibernate%e5%8f%8c%e5%90%91%e5%85%b3%e8%81%94%e4%b8%ad%e5%b8%b8%e5%b8%b8%e7%94%a8set-%e8%80%8c%e4%b8%8d%e7%94%a8list.htm#comments</comments>
		<pubDate>Fri, 27 Feb 2009 08:37:40 +0000</pubDate>
		<dc:creator>ukoom</dc:creator>
				<category><![CDATA[Team]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.ukoom.com/?p=552</guid>
		<description><![CDATA[对于一对多关联当中的List，需要在数据库里面维护一个index列，如果List当中的某个元素被删除，那么Hibernate会连续发送多条 update语句，更新后续所有元素的index列，以确保index的连续性(在inverse为false的情况下)，如果你选择自己维护index 列，也同样会面临这个问题，甚至更棘手(在inverse为true的情况下)，所以List被谨慎的使用在极其罕见的场合。
 
一般来说，我（Robbin）会选择在1对关联当中使用Bag，在多对多关联当中使用Set。
不要误会了robbin所说的话，他所说的要特别慎用list是指的hibernate映射文件中的list类型，而不是实体类中的List类型。映射文件中用Bag类型，在实体类中是可以对应List的。
至于说排序，List（Bag映射）和Set都是可以排序的，hibernate有自己的Set、List、Map实现，其内部根据使用的排序方式使用java.util中的各种不排序的或排序的集合实现类。
Set映射有两种排序方式，一是使用映射文件中的sort属性，一般需要自己实现一个java.util.Comparator，sort属性指定 [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-family: 宋体; mso-bidi-font-size: 10.5pt;"><span style="font-size: small;">对于一对多关联当中的<span lang="EN-US">List</span>，需要在数据库里面维护一个<span lang="EN-US">index</span>列，如果<span lang="EN-US">List</span>当中的某个元素被删除，那么<span lang="EN-US">Hibernate</span>会连续发送多条<span lang="EN-US"> update</span>语句，更新后续所有元素的<span lang="EN-US">index</span>列，以确保<span lang="EN-US">index</span>的连续性<span lang="EN-US">(</span>在<span lang="EN-US">inverse</span>为<span lang="EN-US">false</span>的情况下<span lang="EN-US">)</span>，如果你选择自己维护<span lang="EN-US">index </span>列，也同样会面临这个问题，甚至更棘手<span lang="EN-US">(</span>在<span lang="EN-US">inverse</span>为<span lang="EN-US">true</span>的情况下<span lang="EN-US">)</span>，所以<span lang="EN-US">List</span>被谨慎的使用在极其罕见的场合。<span lang="EN-US"></span></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-family: 宋体; mso-bidi-font-size: 10.5pt;" lang="EN-US"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-family: 宋体; mso-bidi-font-size: 10.5pt;"><span style="font-size: small;">一般来说，我（<span lang="EN-US">Robbin</span>）会选择在<span lang="EN-US">1</span>对关联当中使用<span lang="EN-US">Bag</span>，在多对多关联当中使用<span lang="EN-US">Set</span>。<span lang="EN-US"></span></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-family: 宋体; mso-bidi-font-size: 10.5pt;"><span style="font-size: small;">不要误会了<span lang="EN-US">robbin</span>所说的话，他所说的要特别慎用<span lang="EN-US">list</span>是指的<span lang="EN-US">hibernate</span>映射文件中的<span lang="EN-US">list</span>类型，而不是实体类中的<span lang="EN-US">List</span>类型。映射文件中用<span lang="EN-US">Bag</span>类型，在实体类中是可以对应<span lang="EN-US">List</span>的。<span lang="EN-US"></span></span></span></p>
<p><span style="font-size: 10.5pt;"><span style="font-family: 宋体;">至于说排序，<span lang="EN-US">List</span>（<span lang="EN-US">Bag</span>映射）和<span lang="EN-US">Set</span>都是可以排序的，<span lang="EN-US">hibernate</span>有自己的<span lang="EN-US">Set</span>、<span lang="EN-US">List</span>、<span lang="EN-US">Map</span>实现，其内部根据使用的排序方式使用<span lang="EN-US">java.util</span>中的各种不排序的或排序的集合实现类。<span lang="EN-US"></span></span></span></p>
<p><span style="font-family: 宋体;"><span style="font-size: 10.5pt;" lang="EN-US">Set</span><span style="font-size: 10.5pt;">映射有两种排序方式，一是使用映射文件中的<span lang="EN-US">sort</span>属性，一般需要自己实现一个<span lang="EN-US">java.util.Comparator</span>，<span lang="EN-US">sort</span>属性指定 自己实现的比较类，<span lang="EN-US">hibernate</span>返回给客户的实际是<span lang="EN-US">Set</span>的<span lang="EN-US">TreeSet</span>实现，将该比较类作为<span lang="EN-US">treeSet</span>的比较器，这种排序是在内存中进行的，可以在比较器中按实体类的某个字段排序或实现更复杂的排序方法，非常灵活，但是要自己实现比较器，麻烦一些。<span lang="EN-US"></span></span></span></p>
<p><span style="font-size: 10.5pt;"><span style="font-family: 宋体;">另一种方法是使用映射中的<span lang="EN-US">order-by</span>属性，可以指定表中的一个排序字段，排序是在数据库中进行的，<span lang="EN-US">hibernate</span>返回是<span lang="EN-US">LinkedHashSet</span>实现，可以保持对象的前后次序。<span lang="EN-US"></span></span></span></p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://www.ukoom.com/eclipse-svn-error.htm" title="Eclipse SVN Error">Eclipse SVN Error</a></li><li><a href="http://www.ukoom.com/modifying-jboss-for-enhanced-performance.htm" title="Modifying JBoss for Enhanced Performance">Modifying JBoss for Enhanced Performance</a></li><li><a href="http://www.ukoom.com/powerdesigner-reverse-engineer.htm" title="PowerDesigner Reverse Engineer">PowerDesigner Reverse Engineer</a></li><li><a href="http://www.ukoom.com/gwt-exception-the-style-name-should-be-in-camelcase.htm" title="GWT Exception &#8211; The style name should be in camelCase ">GWT Exception &#8211; The style name should be in camelCase </a></li><li><a href="http://www.ukoom.com/myeclipse-6-5-ga.htm" title="MyEclipse 6.5 GA">MyEclipse 6.5 GA</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.ukoom.com/hibernate%e5%8f%8c%e5%90%91%e5%85%b3%e8%81%94%e4%b8%ad%e5%b8%b8%e5%b8%b8%e7%94%a8set-%e8%80%8c%e4%b8%8d%e7%94%a8list.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Spring开发过程中常用的模式</title>
		<link>http://www.ukoom.com/spring%e5%bc%80%e5%8f%91%e8%bf%87%e7%a8%8b%e4%b8%ad%e5%b8%b8%e7%94%a8%e7%9a%84%e6%a8%a1%e5%bc%8f.htm</link>
		<comments>http://www.ukoom.com/spring%e5%bc%80%e5%8f%91%e8%bf%87%e7%a8%8b%e4%b8%ad%e5%b8%b8%e7%94%a8%e7%9a%84%e6%a8%a1%e5%bc%8f.htm#comments</comments>
		<pubDate>Fri, 27 Feb 2009 08:33:16 +0000</pubDate>
		<dc:creator>ukoom</dc:creator>
				<category><![CDATA[Team]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.ukoom.com/?p=550</guid>
		<description><![CDATA[
Exception Translator (异常转换)：常常会遇到API中有一些checked [...]]]></description>
			<content:encoded><![CDATA[<ol type="1">
<li class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt;"><strong style="mso-bidi-font-weight: normal;"><span style="font-size: 12pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US">Exception Translator</span></strong><span style="font-size: 12pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US"> (</span><span style="font-size: 12pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">异常转换<span lang="EN-US">)</span>：常常会遇到<span lang="EN-US">API</span>中有一些<span lang="EN-US">checked Exceptions</span>需要处理，如果<span lang="EN-US">catch</span>这些异常，然后写<span lang="EN-US">error log</span>或者<span lang="EN-US">return error code</span>，通常都不是很有效的方法而且会影响到事务的处理，正确的方法是把这些异常捕获然后重新抛出一个<span lang="EN-US">runtime exception</span>。<span lang="EN-US"></span></span></li>
<li class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt;"><strong style="mso-bidi-font-weight: normal;"><span style="font-size: 12pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US">Template</span></strong><span style="font-size: 12pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US"> </span><span style="font-size: 12pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">（模板）：在<span lang="EN-US">Spring</span>提供的一些<span lang="EN-US">API</span>中，如<span lang="EN-US">HibernateTemplate</span>、<span lang="EN-US">JdbcTemplate</span>，往往对一些资源的处理都被封装成为一个<span lang="EN-US"> template</span>，一个<span lang="EN-US">Template</span>就是对资源处理的<span lang="EN-US">API</span>封装，这样你就不必关注资源处理的一些琐碎问题，如写<span lang="EN-US">jdbc</span>代码的时候经常需要<span lang="EN-US"> finally</span>里写一堆<span lang="EN-US">close</span>逻辑，这些逻辑你都可以封装在<span lang="EN-US">Template</span>中，想自己写一个<span lang="EN-US">Template</span>可以先去看看<span lang="EN-US"> HibernateTemplate</span>、<span lang="EN-US">JdbcTemplate</span>的源代码实现。<span lang="EN-US"></span></span></li>
<li class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt;"><strong style="mso-bidi-font-weight: normal;"><span style="font-size: 12pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US">Exporter</span></strong><span style="font-size: 12pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US"> (</span><span style="font-size: 12pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">导出者<span lang="EN-US">)</span>：往往遇到一些情况，已经有了一个<span lang="EN-US">service bean</span>，不想或者不能改变它的接口、参数和返回值，比如原先传入的是一个<span lang="EN-US">List</span>对象，返回<span lang="EN-US">Map</span>对象，现在需要传入一段<span lang="EN-US">XML String</span>同时返回<span lang="EN-US">XML String</span>，这个时候可以用<span lang="EN-US">Exporter</span>这种模式，如远程调用的时候，我们需要把一个<span lang="EN-US">bean</span>导出为<span lang="EN-US">EJB</span>接口或者<span lang="EN-US">Hessian</span>服务，这个时候可 以用<span lang="EN-US">Spring</span>中提供的<span lang="EN-US">HessianServiceExporter</span>。遇到类似情况，可以自己写一个<span lang="EN-US">Exporter</span>。<span lang="EN-US"></span></span></li>
<li class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt;"><strong style="mso-bidi-font-weight: normal;"><span style="font-size: 12pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US">Proxy</span></strong><span style="font-size: 12pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;" lang="EN-US"> (</span><span style="font-size: 12pt; font-family: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt;">代理<span lang="EN-US">)</span>：同<span lang="EN-US">Exporter</span>模式一样，主要用于远程调用情形下，通过<span lang="EN-US">Proxy</span>，用户只需关注<span lang="EN-US">bean</span>的<span lang="EN-US">API</span>而不必关注如果从远程接口中如何取得这个<span lang="EN-US">bean</span>，因为这些都可以通过<span lang="EN-US">spring</span>配置来实现。<span lang="EN-US"></span></span></li>
</ol>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://www.ukoom.com/eclipse-svn-error.htm" title="Eclipse SVN Error">Eclipse SVN Error</a></li><li><a href="http://www.ukoom.com/modifying-jboss-for-enhanced-performance.htm" title="Modifying JBoss for Enhanced Performance">Modifying JBoss for Enhanced Performance</a></li><li><a href="http://www.ukoom.com/powerdesigner-reverse-engineer.htm" title="PowerDesigner Reverse Engineer">PowerDesigner Reverse Engineer</a></li><li><a href="http://www.ukoom.com/gwt-exception-the-style-name-should-be-in-camelcase.htm" title="GWT Exception &#8211; The style name should be in camelCase ">GWT Exception &#8211; The style name should be in camelCase </a></li><li><a href="http://www.ukoom.com/myeclipse-6-5-ga.htm" title="MyEclipse 6.5 GA">MyEclipse 6.5 GA</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.ukoom.com/spring%e5%bc%80%e5%8f%91%e8%bf%87%e7%a8%8b%e4%b8%ad%e5%b8%b8%e7%94%a8%e7%9a%84%e6%a8%a1%e5%bc%8f.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
