Hi

I have a super class which provides two connections getCobolConnection and
getDBConnection here is the Cobol one.


  public Connection getCobolConnection() throws SQLException{
    try {
      Context jndiCntx = ContextLoader.getInitialContext();
      DataSource ds = (DataSource)jndiCntx.lookup("java:comp/env/jdbc/CobolDS");
      return ds.getConnection();
    } catch (NamingException ne){
      throw new EJBException(ne);
    }

  }

On 31 May 2001, at 15:15, Burkhard Vogel wrote:

> Hi,
> can you tell how
> >           con = this.getCobolConnection();
> is implemented?
> Burkhard.
> ----- Original Message -----
> From: "Justin Harrison" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, May 31, 2001 6:40 AM
> Subject: [JBoss-user] Using a new JDBC datasource
> 
> 
> > Hi
> >
> > I am trying to integrate a new datasource into JBoss as a proof of concept
> for my boss.
> >
> > The jdbc driver is from a company called Transoft which provides access to
> AcuCOBOL Vision files. It works
> > very well for client server connections but thats about all that I know. I
> am not sure what features it
> > supports.
> >
> > I have gone through the documentation and set up all the configuration
> files appropriatly (I hope).
> >
> > ejb-jar.xml
> [looks ok]
> >
> > jboss.xml
> [looks ok]
> >
> > jboss.jcml
> [looks ok]
> >
> > bean class method
> > .....etc
> >
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user



Justin Harrison

McCarthy & Associates Ltd
[EMAIL PROTECTED]
+64 6 834 3360
Floor 5
McLean Towers
Shakespeare Rd
Napier
New Zealand

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to