Dear Vinay Menon ,
Thank you for your anwser !
Best regards !
Huynh Tin

----- Original Message -----
From: "Vinay Menon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, July 07, 2001 4:23 PM
Subject: Re: [JBoss-user] DataSource Name Problem !


> Hello,
>
> a) To set up a datasource you need to add it to your jboss.jcml file under
> the profile [default/tomcat] you are using. There are datasources set up
for
> InstantDB and Hypersonic and you can basically copy paste the same and
> change the name, the poolname, the url , JDBCUser and Password to suit
your
> set up.  Believe there is a sample at the jboss website.
>
> b) Once you have your datasource set up you need to add a jboss-web.xml
file
> under your webapps/<your jsp appname>/WEB-INF which basically is a
resource
> reference declaration allowing you to access the jndi stuff in JBoss. It
> should look something like
>
> <?xml version="1.0"?>
> <jboss-web>
>    <resource-ref>
>      <res-ref-name>jdbc/<your mssql server datasourcename></res-ref-name>
>      <jndi-name>java:/<your mssql server datasourcename></jndi-name>
>    </resource-ref>
> </jboss-web>
>
> And you should be able to access the datasource at
java:comp/env/jdbc/<your
> mssql server datasourcename>
>
> Hope this helps
>
> Vinay
>
> ----- Original Message -----
> From: Huynh Tin o
> To: [EMAIL PROTECTED] ; [EMAIL PROTECTED]
> Sent: Saturday, July 07, 2001 2:44 AM
> Subject: [JBoss-user] DataSource Name Problem !
>
>
> Hi all ,
> I developed my application and deployed it on Weblogic Application Server
,
> it run ok ....
> Could anyone help me ...and tell me how can i deployed my application on
> JBoss ..
> I use JBoss-2.2.1_Tomcat-3.2.1...my problem is ....how could i define
> DataSource Name on Jboss Server to use in my JSP code.
> I use MS.SQL Server 7.0
> Please give me an example how could i define DataSource Name with JBoss
> Server and MSSQL Server 7.0 ...
> Thank you !!
> Best regards !
> Huynh Tin
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>



_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to