[jboss-user] [EJB/JBoss] - Re: Problem by jndi-lookup from Tomcat to JBoss

jaikiran do-not-reply at jboss.com
Sun May 25 08:50:04 EDT 2008


anonymous wrote : But it failed.
Failed = What exactly happened? Do you see any exception? Also, you would want to do a better job with the exception handling:

anonymous wrote : 
  | try{
  | 	   com.zoo.TigerHome home = com.zoo.TigerUtil.getHome();
  | 	   tiger = home.create();
  | 	   
  |    }catch(Exception exception)
  |    {
  | 	   
  |    }   


Atleast, print out the stacktrace

try{
  | 	   com.zoo.TigerHome home = com.zoo.TigerUtil.getHome();
  | 	   tiger = home.create();
  | 	   
  |    }catch(Exception exception)
  |    {
  | 	exception.printStackTrace();   
  |    }   

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4153214#4153214

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4153214



More information about the jboss-user mailing list