Using the tools provided I have created a simple Entity Bean and deployed it
on Orion 0.8.2 on Linux (Redhat 6.1) using the Blackdown 1.2.2r3 jdk,
uncommenting all the relavent sections of the xml files. Below is the
connection info for the DefaultDS in the data-sources.xml file.
<data-source class="com.evermind.sql.ConnectionDataSource"
location="jdbc/DefaultDS">
<name>Default data-source</name>
<description>
This is a generic data-source that takes it's generates Connections with
ordinary JDBC 2.0 drivers.
</description>
<url>jdbc:oracle:thin:username/password@(DESCRIPTION=(ADDRESS=(HOST=10.0.0.2
48)(PROTOCOL=tcp)(PORT=1521))(source_route=yes)(connect_data=(sid=db1)))</ur
l>
<connection-driver>oracle.jdbc.driver.OracleDriver</connection-driver>
<username>username</username>
<password>password</password>
</data-source>
I also created a jdbc/DefaultDS and jdbc/xa/DefaultXADS directory under the
orion home dir (this being the part I am unsure of, not knowing alot about
JNDI) - this is *not* a link to another dir. When Orion is started the EJB
deploys fine and the table is created in Oracle 8i under the account name.
I am having problems with 2 things:
1. Tring to use a regular java class I get a username/password
java.lang.??Exception when trying to create the InitialContext(). The
jndi.properties file is there and correct as per the permissions in the doc
and the demos (admin/123) and matches the xml file.
2. When accessed via a servlet I proceed past this point the exception
ocurrs above, but the Orion server crashes with jdk threading issues on the
.create() call to the EJB. The db url above is for the same machine as
orion is running on. I find it strange that DDL works but not DML - any
ideas? I have starting creating a BMP EJB which seems to be working fine (so
far, only 1/3 through) but for RAD prototyping CMP is preferred.
Can anyone provide insight to these problems?
Thanks,
Ian