Todd Huss wrote:
> I have some java objects that will sometimes be used within jboss, and
> othertimes, used outside of jboss. They require JDBC connections and I
> have a helper class that they call to get their JDBC connections.
>
> Currently the helper just instantiates a new JDBC connection, however, I'd
> like to have the helper class test if it's running inside jboss, and
> then instead get the JDBC connection from the JBoss pool in those
> cases. What's the best way to do this?
Well, you could always try to look up the JDBC pool with JNDI. If that
doesn't work you're not in JBoss.
regards,
Rickard
--
Rickard �berg
Email: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]