Re: [Classifier4j-devel] Update Word Probability Break Down
Status: Beta
Brought to you by:
nicklothian
|
From: moedusa <mo...@in...> - 2003-11-13 05:09:28
|
Nick Lothian wrote:
> What do people think about this (untested - I don't even know if it
> compiles!) datasource.
imho, that's okay, but I am not sure about runtime exceptions thrown,
perhaps it would be better to do this way?
public DataSourceJDBCConnectionManager(String ctx) throws
java.lang.InstantiationException{
this.datasourceContext = ctx;
try{
Context ctx = new InitialContext();
dataSource = (DataSource)ctx.lookup(datasourceContext);
}catch(javax.naming.NamingException e){
throw new InstantiationException("Failure instantiating datasource:
"+e.getMesssage());
}
}
then, clients will always know, if things go wrong...
|