Feeds:
Posts
Comments

Free Open Source Reports to use with Java

Jasper Reports – http://jasperforge.org/projects/jasperreports
JFree Charts – http://www.jfree.org/jfreechart/samples.html
Print Barcode – http://barbecue.sourceforge.net/

-o-

Question: How to enable Hibernate logging in JBoss?

<!-- Hibernate Logging -->
    <category name="org.hibernate">
        <priority value="ERROR" />
        <appender-ref ref="CONSOLE"/>
        <appender-ref ref="FILE"/>
   </category>
    <category name="org.hibernate.SQL">
        <priority value="TRACE" />
        <appender-ref ref="CONSOLE"/>
        <appender-ref ref="FILE"/>
   </category>
    <category name="org.hibernate.type">
        <priority value="TRACE" />
        <appender-ref ref="CONSOLE"/>
        <appender-ref ref="FILE"/>
   </category>

-o-

Returning to India is debatable and hard to make decision.
We need to balance Money, Kids Education and Family Members.

Everybody have their own reasons.

http://saroscorner.blogspot.com/2009/06/return-to-india-r2i-25-things-to-do.html
http://saroscorner.blogspot.com/2009/10/100-reasons-to-return-to-india-r2i.html

-o-

Java XPath

Quick way to extract data from XML is XPath.

http://www.whitebeam.org/library/guide/TechNotes/xpathtestbed.rhtm

http://www.whitebeam.org/library/guide/TechNotes/xpath.rhtm

import javax.xml.xpath.XPath;
import javax.xml.xpath.XPathFactory;
import java.io.*;

String xmlData = "place the XML Data here.";
XPath xpath = XPathFactory.newInstance().newXPath();
InputStream inStream = new ByteArrayInputStream(xmlData.getBytes());
InputSource inputSource = new InputSource(inStream);
String nodeValue = xpath.evaluate("//nodeName", inputSource);
System.out.println("nodeValue==>" + nodeValue);

Restlet API

Working on Restlet API for now….

http://www.restlet.org/

Test Restlet with http://code.google.com/p/rest-client/

Now Spring 3.0 is having support for Restlets, but I didn’t get a chance to look into it.

-o-

Older Posts »