List available data sources in EJB

From: Alex Molochnikov (NOBODY_at_NOSPAM.COM)
Date: 03/09/05


Date: Wed, 09 Mar 2005 07:26:28 GMT

Is there any way to get the list of all data sources available to a session
bean? E.g. if the server (JBoss) configuration has files mssql-ds.xml and
mysql-ds.xml with jndi-name tags "MSSQLDS" and "MySqlDS" respectively, I
want to pack Strings "MSSQLDS" and "MySqlDS" into a Collection and pass it
to the client. The client will display the list of available sources and let
the user choose the database to work with.

Is it possible at all?

TIA

Alex Molochnikov
Gestalt Corporation



Relevant Pages

  • Re: Stateless session bean that multi threads?
    ... > multi-thread inside the implementation of a stateless session bean method. ... rather depends on the number and nature of the data sources. ... and if the client is local ...
    (comp.lang.java.programmer)
  • Re: Stateless session bean that multi threads?
    ... > multi-thread inside the implementation of a stateless session bean method. ... rather depends on the number and nature of the data sources. ... and if the client is local ...
    (comp.lang.java.help)
  • HELP - DST woes when trying to return OLEDB Dates to a Java Client
    ... * I am reading values from various data sources using our own custom, ... configurable OLEDB client application. ... Call SystemTimeToFileTime to copy the system time to a FILETIME structure. ...
    (microsoft.public.data.oledb)
  • HELP - DST woes when trying to return OLEDB Dates to a Java Client
    ... * I am reading values from various data sources using our own custom, ... configurable OLEDB client application. ... Call SystemTimeToFileTime to copy the system time to a FILETIME structure. ...
    (microsoft.public.data.oledb)
  • Re: Changing datasource without losing field matching
    ... fields in the configuration that you want them. ... data sources have the same fields in them, you should be able to change the ... Doug Robbins - Word MVP ... The problem is when the file source is changed word remaps all the ...
    (microsoft.public.word.mailmerge.fields)