>Hi,
>
>  I have tried Interclient with Jboss and it
>  works ok.
> 
>  The JBoss.conf properties map to the parametres of
>org.jboss.jdbc.DataSourceImpl
>  ,as below, which creates a DataSource.  Also, just to use a DataSource,
>you don't need a JAWS.xml file.
>   
>  public DataSourceImpl(String url, String jndiName, String driverName,
>String userName, String password)   {
>      this.url = url;
>      this.jndiName = jndiName;
>      this.driverName = driverName;
>      this.userName = userName;
>      this.password = password;
>      
>      pools.put(jndiName, this);
>   }
>
>  So, the JNDI lookup name is set as "Interbase" in your JBoss.conf file.
>
>  In your session bean, for example, you can use the following
>     
>      InitialContext ic = new InitialContext();
>      DataSource ds = (DataSource) ic.lookup("Interbase");
>      con =  ds.getConnection();
>
> Hope this helps
>
> Owen.
>
>
>
>
>--
>--------------------------------------------------------------
>To subscribe:        [EMAIL PROTECTED]
>To unsubscribe:      [EMAIL PROTECTED]
>Problems?:           [EMAIL PROTECTED]
>
>


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to