<sql:datasource>

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

<sql:datasource>

Nafise
Hi,

I've converted the xforms-sql-address-book to use mysql and it works properly. As the next step, I want to use sql:datasource utilizing JNDI. Currently, I've configured JNDI Datasource in tomcat; but I wonder how to feed it to some of the xpls such as generic-init-database.xpl & in init-database.xpl which accept the datasource as their input parameter and use href to address it. as follows :

(part of generic-init-database.xpl: )
   
    <p:processor name="oxf:java">
        <p:input name="config">
            <config sourcepath="." class="ListInitializedTables"/>
        </p:input>
        <p:input  name="datasource" href="/config/datasource-sql.xml"/>
        <p:output name="data" id="found-tables"/>
    </p:processor>


the difference between these two xpls and the others is that they have no <sql:connection> and therefore I couldn't inject any <sql:datasource>!

I warmly appreciate your help.
NAfise
Reply | Threaded
Open this post in threaded view
|

Re: <sql:datasource>

Erik Bruchez
Administrator
Mmhh, I am not sure what your question is. Can you precise?

-Erik

On Jan 26, 2008, at 5:36 AM, Nafise wrote:

>
> Hi,
>
> I've converted the xforms-sql-address-book to use mysql and it works
> properly. As the next step, I want to use sql:datasource utilizing  
> JNDI.
> Currently, I've configured JNDI Datasource in tomcat; but I wonder  
> how to
> feed it to some of the xpls such as generic-init-database.xpl & in
> init-database.xpl which accept the datasource as their input  
> parameter and
> use href to address it. as follows :
>
> (part of generic-init-database.xpl: )
>    <!-- List our database tables -->
>    <p:processor name="oxf:java">
>        <p:input name="config">
>            <config sourcepath="." class="ListInitializedTables"/>
>        </p:input>
>        <p:input  name="datasource" href="/config/datasource-sql.xml"/>
>        <p:output name="data" id="found-tables"/>
>    </p:processor>
>
>
> the difference between these two xpls and the others is that they  
> have no
> <sql:connection> and therefore I couldn't inject any <sql:datasource>!
>
> I warmly appreciate your help.
> NAfise
> --
> View this message in context: http://www.nabble.com/%3Csql%3Adatasource%3E-tp15107991p15107991.html
> Sent from the ObjectWeb OPS - Users mailing list archive at  
> Nabble.com.
>
>
> --
> You receive this message as a subscriber of the [hidden email]  
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws