Hi!
[EMAIL PROTECTED] wrote:
> (1) run.bat
>
> The server is started with java -classic and
> my JDK 1.3 doesn't like it. Would be OK to
> remove this -classic option?
Good point, fixed in CVS now.
> (2) Oracle JDBC driver
>
> Oracle driver is named classes12.zip and when
> I placed in /lib/ext the server doesn't find it.
> It's trivial to change the name to classes12.jar
> but I think is better to change this line in
> ClassPathExtension.java
Fixed in CVS now.
> (3) Where to put the JNDI name of a datasource?
>
> I think is in jboss.conf file. I have added this
> to configure a Oracle datasource
>
> <MLET CODE = "org.jboss.jdbc.DataSourceImpl"
> ARCHIVE="jboss.jar,classes12.jar" CODEBASE="../lib/ext/">
> <ARG TYPE="java.lang.String"
> VALUE="jdbc:oracle:thin:@evita:1521:orcl">
> <ARG TYPE="java.lang.String" VALUE="jdbc/DBMS"> <-- JNDI name here?
> <ARG TYPE="java.lang.String" VALUE="oracle.jdbc.driver.OracleDriver">
> <ARG TYPE="java.lang.String" VALUE="system">
> <ARG TYPE="java.lang.String" VALUE="manager">
> </MLET>
>
> But starting the server shows this exception:
>
> [DataSource] Starting
> javax.naming.NameNotFoundException: jdbc not bound
It couldn't handle hierarchical names if subcontexts weren't already
created (in this case "jdbc" had to be created first).
Fixed in CVS now.
/Rickard
> Can I make a context.lookup("java:comp/env/jdbc/DBMS") ?
For the above datasource you can use context.lookup("jdbc/DBMS").
However, this isn't portable. You should make a ResourceReference in
your bean descriptor that maps "jdbc/DBMS" in your EJB environment (the
one you show above) to "jdbc/DBMS" in the global JNDI tree. That way
your beans are more portable, cause you are allowed to change the name
"jdbc/DBMS" in the globa� tree without breaking your beans.
/Rickard
--
Rickard �berg
@home: +46 13 177937
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]