SDN Featured Content

Do you Think Hibernate is better technology that EJB

Java/J2EE blogs

Welcome to my java /J2EE blogs.


Thursday, June 10, 2010

Eclipse support to debug the application for Oracle WebLogic server

Want to debug the Weblogic server using plugin.. here you go.

This certified set of Eclipse plug-ins is designed to help develop, deploy and debug applications for Oracle WebLogic Server. It installs as a plug-in to your existing Eclipse, or will install Eclipse for you, and enhances Eclipse's capabilities for Java, Java EE, Spring, ORM and Web Services.

11gr1 release is available at the below given link

 

http://www.oracle.com/technology/software/products/oepe/index.html

Exception Transparency

Below is very good link from oracle project lamda on the exception transparency.

 

http://blogs.sun.com/briangoetz/entry/exception_transparency_in_java

 

E njoy reading…

Thursday, June 3, 2010

Good example of System.out.format method

You can use this new feature to quickly format strings into table :

public class Table{
public static void main(String args[]){
String format = "|%1$-10s|%2$-10s|%3$-20s|\n";
System.out.format(format, "FirstName", "Init.", "LastName");
System.out.format(format, "Ajay", "", "Kumar");
System.out.format(format, "Sunil", "Dr", "Bainsla");

System.out.format(String.format(format, (Object[])ex));
}
}


Output:



|FirstName |Init.     |LastName           |
|Ajay | |Kumar |
|Sunil |Dr |Bainsla |