Welcome To Snipplr


Everyone's Recent Snippets Tagged java



1 ... 5 6 7 8 9
Change the size of min and max memory used by the VM
0 1677 posted 17 years ago by sanjivarunsahayamhotmailcom
0 1533 posted 17 years ago by iTony
0 1227 posted 17 years ago by haru01
1 2061 posted 17 years ago by multani
Hibernate xml configuration file "hibernate.cfg.xml".
1 3208 posted 17 years ago by Uzbekjon
1 1601 posted 17 years ago by mamoo
1 1771 posted 17 years ago by Uzbekjon
Create an xml file with this content to tell Tomcat to use seperate folder (can be any folder, even out of tomcat root) as a root folder of your application. Copy this file into TomcatDir/conf/Catalina/localhost
0 1594 posted 17 years ago by Uzbekjon
A working example that uses BlaszDS in order to serialize Java object into AMF (this code should be cleaned up a bit), in order for it to compile and work it is required to add flex-messaging-core.jar and flex-messaging-common.jar to the classpath.
0 1965 posted 17 years ago by narkisr
Sample code from processFormRequest to pop up new window via javascript. worth noting: this is not recommended as it can break the OAF page.
0 3501 posted 17 years ago by theonlyalterego
You can use this command to convert your properties file to ASCII encoded file. Normally you'll need it to convert your language.properties file.
0 3256 posted 18 years ago by Uzbekjon
This assumes that you want the resulting JAR file to be named BangBean.jar, and that you’ve put the manifest in a file called BangBean.mf
0 1405 posted 18 years ago by Uzbekjon
This is a collection of useful static initializers of Java arrays, lists and maps.
0 1443 posted 18 years ago by narkisr
A paste from a blog (http://lenkite.blogspot.com/2008/05/access-windows-registry-using-java.html) entry which demonstrates how to access windows registry in Java.
0 2131 posted 18 years ago by narkisr
This spring context configures a simple hibernate session (for annotated classes).
4 2256 posted 18 years ago by narkisr
This is an example of how to map a Java 5 enum when using Hibernate ORM.
0 1792 posted 18 years ago by narkisr
2 2172 posted 18 years ago by multani
1 1929 posted 18 years ago by udayrayala
The data source which can be used in combination with jasper reports.
0 1564 posted 18 years ago by narkisr
A simple testing assertion which looks up for a line within a file until a pre defined time frame ends (loosely based upon http://www.informit.com/guides/content.aspx?g=java&seqNum=226).
0 2058 posted 18 years ago by narkisr
0 1845 posted 18 years ago by slu
A very simple way of getting bean instances from Spring context without casting returned object, the assumption is that the bean id's are matching the classes names.
0 2018 posted 18 years ago by narkisr
This is a simple lookup and usage of the default DS in JBoss
0 1373 posted 18 years ago by narkisr
drunkenprogrammer
0 1961 posted 18 years ago by zvasanth
1 ... 5 6 7 8 9