Hi!
Steve Slatcher wrote:
> I am trying to follow the model in 14.4.1.1 and 14.4.1.2 of the EJB 1.1 spec. It
>doesn't work, and I cannot see why it should.
>
> In the deployment descriptor I associate a JNDI name with a the class DataSource,
> and in the code I get a DataSource object. Fine. But how on earth does the system
> know what database I want to connect to? I can see no place to specify the
> database URL that I would use if I just naively used JDBC from my session bean.
You define DataSource's in /conf/jboss.conf and /conf/jboss.jcml. You
can specify in the jboss.xml deployment descriptor which DataSource you
want to use. If you do not do this the container will find a DataSource
in the JNDI namespace and use that as default.
> Is that one of the sever-specific things that are not mandated in the spec? Either
> way, please tell me how I do it with jBoss.
This is not mandated by the spec and is indeed server-specific. Since
we're ease-of-use freaks we've made the simple case just that.. simple..
/Rickard
--
Rickard �berg
Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]