Dynamic Class Loading using Java Reflection API

http://viralpatel.net/blogs/java-dynamic-class-loading-java-reflection-api/ package net.viralpatel.itext.pdf; public class DemoClass { public String demoMethod(String demoParam) {System. out.println("Parameter passed: " + demoParam); return DemoClass.class.getName(); […]

Read More →

HTML encode/decode

http://stackoverflow.com/questions/599634/convert-html-character-back-to-text-using-java-standard-library /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code […]

Read More →

JVM arguments

Modify Startup arguments: -Dcatalina.base="E:\SpringSource\workspace-sts-linux2\.metadata\.plugins\org.eclipse.wst.server.core\tmp1" -Dcatalina.home="E:\Apache\Tomcat\6.0.30" -Dwtp.deploy="E:\SpringSource\workspace-sts-linux2\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps" -Djava.endorsed.dirs="E:\Apache\Tomcat\6.0.30\endorsed" -XX:MaxPermSize=512m -Dqbw="hello world" Java Code System.getProperty("qbw")); Reference: http://www.avajava.com/tutorials/lessons/whats-the-difference-between-program-arguments-and-vm-arguments.html

Read More →

UUID SecureRandom

http://www.javapractices.com/topic/TopicAction.do?Id=56 When identifiers are used solely within a database, their generation should be left to the database itself. (See […]

Read More →

Extend Enum workaround

http://madbean.com/2004/mb2004-3/ https://discursive.atlassian.net/wiki/display/CJCOOK/Creating+an+Enum Problem You need an Enum, but you are not using the new Java 1.5 release. 1.16.2. Solution […]

Read More →

Property PlaceHolder in XML

https://java.qbytesworld.com/post/Externalizing-Bean-Configurations.aspx http://almaer.com/blog/spring-propertyplaceholderconfigurer-a-nice-clean-way-to-share ——————————————————————————————————— http://robertmarkbramprogrammer.blogspot.com/2008/02/nested-property-placeholders-in-spring.html http://www.summa-tech.com/blog/2009/04/20/6-tips-for-managing-property-files-with-spring/

Read More →

Regex

Google: here http://www.mkyong.com/regular-expressions/how-to-validate-email-address-with-regular-expression/ http://www.zparacha.com/validate-email-ssn-phone-number-using-java-regular-expression/ http://www.regular-expressions.info/reference.html http://www.grymoire.com/Unix/Regular.html http://www.regular-expressions.info/creditcard.html

Read More →

JPG image edit

Google "Color Mood" http://www.pioneerlinens.com/color ==================== http://www.jhlabs.com/ip/filters/index.html http://www.jhlabs.com/ie/index.html http://mindprod.com/jgloss/png.html http://www.exampledepot.com/egs/javax.imageio/Graphic2File.html GOOGLE open jpg java Filters.zip (604.49 kb) ImageEditor.jar (4.54 mb) […]

Read More →

MTOM attach document

AttachmentType at = new AttachmentType(); Base64Binary b64 = new Base64Binary(); // DataHandler dh = new DataHandler(new FileDataSource("C:\\dev\\books\\cm\\8.3\\CMV8.3 Resource Manager […]

Read More →

Tag Cloud