Hello.
   I've been poundering on this question for quite some time, and even if I
look stupid I have to ask it now.
   Sorry, if this seems dumb.

>>> data-sources.xml

  <data-source
    class="com.evermind.sql.DriverManagerDataSource"
    name="Hypersonic"
    location="jdbc/HypersonicCoreDS"
    xa-location="jdbc/xa/HypersonicXADS"
    pooled-location="jdbc/pooled/HypersonicPooledDS"
    ejb-location="jdbc/HypersonicDS"
    connection-driver="org.hsql.jdbcDriver"
    username="sa"
    password=""
    url="jdbc:HypersonicSQL:./database/defaultdb"
    inactivity-timeout="30"
   />

<<< end data-sources.xml

   So. I have a CMP entity bean. I want to map it to this data-source.
However, in orion-ejb-jar.xml I have to specify a
data-source="jdbc/AnyLocation". But there are four different locations, that
have been defined for a single data-source.
   And the question is: Which one should I set in my descriptor:

    1. location="jdbc/HypersonicCoreDS"
    2. xa-location="jdbc/xa/HypersonicXADS"
    3. pooled-location="jdbc/pooled/HypersonicPooledDS"
    4. ejb-location="jdbc/HypersonicDS"

   My first guess, is that I should use ejb-location. Right? Then WHY?

   Please. It may be dumb, but I wouldn't want to miss something serious
here.
   BTW. An explanation on each location, and it's use would be GREAT!

   May the shade of the tree strengthen you.
   Lachezar Dobrev.



Reply via email to