[Biojava-dev] [Off Topic] Getting JNDI resources from a Java application

Andy Yates ady at sanger.ac.uk
Fri Jul 14 08:36:37 UTC 2006


Hi,

Best thing to use is Spring. You can get Spring to remote any object in 
about 5 lines of code and if you use Spring in your GUI application then 
it won't care about where the DataSource comes from; only that its got one.

Andy Yates


mark.schreiber at novartis.com wrote:
> Hi -
> 
> I have a application running in JBoss with a web front end but I would 
> like to make a standalone application with a GUI that runs in another JVM.
> 
> How can that application get access to resources in the application 
> servers JNDI registry (notably the DataSource). I'm guessing I need RMI?? 
> Does anyone know of a blueprint or best practice for this sort of thing?
> 
> - Mark
> 
> Mark Schreiber
> Research Investigator (Bioinformatics)
> 
> Novartis Institute for Tropical Diseases (NITD)
> 10 Biopolis Road
> #05-01 Chromos
> Singapore 138670
> www.nitd.novartis.com
> 
> phone +65 6722 2973
> fax  +65 6722 2910
> 
> _______________________________________________
> biojava-dev mailing list
> biojava-dev at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/biojava-dev
> 



More information about the biojava-dev mailing list