As someone else pointed out, the settings are in jboss.jcml.
However, you should not be using the code below in EJBs (look up a
DataSource in JNDI instead). But perhaps you're just writing another app
to access the same DB (in which case be sure to use the right "Commit
Option" when you configure your beans!).
Aaron
On Thu, 30 Nov 2000, Ian Macey wrote:
> Can anyone tell me what to fill in the three sets of "???" with in
> order to access my entity bean tables? This is for use with the
> Hypersonic database 'as is' following a install of jboss final2.0.
>
> public static void main(String[] args) {
>
> Connection dbConnection = null;
>
> try {
>
> Class.forName("org.hsql.jdbcDriver");
>
> } catch (ClassNotFoundException e) {
>
> System.err.println("Ensure that the driver class is available");
> System.exit(-1);
> }
>
> try {
>
> String driver = null;
> String url = "jdbc:???";
> String user = "???";
> String password = "???";
>
> dbConnection = DriverManager.getConnection(url,user,password);
>
> if (dbConnection != null) System.out.println("Connected to database");
>
>
> Thanks,
>
> Ian
>
>
>
> --
>
> This e-mail may contain confidential and/or privileged information. If you are not
>the intended recipient (or have received this e-mail in error) please notify the
>sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or
>distribution of the material in this e-mail is strictly forbidden.
>
>
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]