RE: [Classifier4j-devel] Update Word Probability Break Down
Status: Beta
Brought to you by:
nicklothian
|
From: Nick L. <nl...@es...> - 2003-11-13 06:17:37
|
Yeah, looks good to me - although maybe I could just declare it to throw the
NamingException
> -----Original Message-----
> From: moedusa [mailto:mo...@in...]
> Sent: Thursday, 13 November 2003 3:41 PM
> To: cla...@li...
> Subject: Re: [Classifier4j-devel] Update Word Probability Break Down
>
>
> 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...
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: ApacheCon 2003,
> 16-19 November in Las Vegas. Learn firsthand the latest
> developments in Apache, PHP, Perl, XML, Java, MySQL,
> WebDAV, and more! http://www.apachecon.com/
> _______________________________________________
> Classifier4j-devel mailing list
> Cla...@li...
> https://lists.sourceforge.net/lists/listinfo/classifier4j-devel
>
|