Hi,

i am new to orion and trying for almost 2 days to get up the ejb examples
(ok, it is beta and the documentation not yet complete). 

The Jdbc-Odbc Connection to a MSSQL Server seems to work (at least the
drivers are found etc.). I am trying to deploy the product bean, but all i
get is:

D:\Java\orion>java -jar orion.jar
Auto-deploying file:/D:/Java/orion/demo/ejb/product/... Error compiling
file:/D:
/Java/orion/demo/ejb/product/:
Error finding a suitable DataSource: Error looking up XADataSource at
/jdbc/xa/DefaultXADS
Orion/0.8.2 initialized


Is there any explanation of the meaning of the varying data source types ?
Must i predifine any database tables ? If so, which ones ?

Regards,

Jens Stutte

The data sources look like this (BTW, the <username>/<password> tags reflect
the users defined in principals ? Or the ones of the database ? - The result
is always the same...):

        <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:odbc:ejbDemo;UID=sa;PWD= </url>
        
<connection-driver>sun.jdbc.odbc.JdbcOdbcDriver</connection-driver>
                <username>admin</username>
                <password>123</password>
        </data-source>

        <data-source
class="com.evermind.sql.DefaultConnectionPoolDataSource"
location="jdbc/DefaultPooledDS">
                <name>Default ConnectionPool data-source</name>
                <description>
                        This is a ConnectionPooldata-source that can be used
to pool connections from an ordinary
                        data-source in order to increase performance.
                </description>
                <source-location>jdbc/DefaultDS</source-location>
                <username>admin</username>
                <password>123</password>
        </data-source>

        <data-source class="com.evermind.sql.DefaultXADataSource"
location="jdbc/xa/DefaultXADS">
                <name>Default Transactional data-source</name>
                <description>
                        This is a data-source that can be used as an
ordinary XAdata-source
                        (transaction aware).
                </description>
                <source-location>jdbc/DefaultDS</source-location>
                <username>admin</username>
                <password>123</password>
        </data-source>

        <data-source class="com.evermind.server.ejb.EJBDataSource"
location="jdbc/DefaultEJBDS">
                <name>Default EJB-aware data-source</name>
                <description>
                        This is a data-source that EJBs can use where
updates are
                        automatically synchronized to the current
transactional context.
                </description>
                <source-location>jdbc/xa/DefaultXADS</source-location>
                <username>admin</username>
                <password>123</password>
        </data-source>

Reply via email to