Hi all,

I am a bit confused about data-sources.xml.  I currently have the following
configuration (portion):

        <data-source name="Skunkworks data-source" 
        . . .
          location="jdbc/oracle/SkunkworksDataSource">
        </data-source>

        <data-source name="Skunkworks Transactional data-source"
          location="jdbc/oracle/SkunkworksXADataSource"
          class="com.evermind.sql.DefaultXADataSource"
          source-location="jdbc/oracle/SkunkworksDataSource"
        >
        </data-source>

        <data-source name="Skunkworks EJB-aware data-source"
          location="jdbc/oracle/SkunkworksEJBDataSource"
          class="com.evermind.server.ejb.EJBDataSource"
          source-location="jdbc/oracle/SkunkworksXADataSource"
        >
        </data-source>

Obviously I edited out some of the trivial data.  My question is, in an
application I am attempting to utilize the EJB-aware data-source shown above
(by editing orion-ejb-jar.xml.  When I do this, I receive the following
error starting Orion:

Error finding a suitable DataSource: jdbc/oracle/SkunkworksEJBDataSource did
not contain a XADataSource

Now, It appears to me that the EJB-aware datasource does in fact contain an
XADataSource.  When I attempt to deploy the application using
jdbc/oracle/SkunkworksXADataSource it deploys fine (well almost, but those
are errors unrelated to this question).  My question is, if the EJB-aware
data-source isn't the correct data-source to be used in this context, when
would it be appropriate to use this data-source and what would be the
correct context in which to use each of the data-sources if I have it
completely wrong?  In addition to this, if someone would be so kind as to
explain the difference between <data-source max-connections="..."> in the
base data-source and the connection pool data-source.   Also how/when it is
appropriate to use the connection pool data-source instead of just setting
max-connections="10"?  I hope these questions are clear, I have had a hard
time finding answers in the documentation.

Oh, not that it matters too much, but I am using 0.9.1n

Thanks in advance for the help,

Jeff - |Sn| for you efnet #java folks :)

Reply via email to