Hello,
You need to map your jdbc/MSSQLDS name to the name of your mssql datasource
in the jboss.xml file. See the free on-line doco on how to correctly write
your jboss.xml file
Cheers,
Sacha
> -----Message d'origine-----
> De : [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]De la part de Bednář Martin
> Envoyé : mercredi, 29 mai 2002 11:18
> A : [EMAIL PROTECTED]
> Objet : [JBoss-user] JBoss 3.0RC1 and MS SQL 2000
>
>
> Can anybody help me ?
>
> I'm using JBoss 3.0RC1
> I have MS SQL 2000 server running on server data2 on port 1433.
> What I must do to access server from entity EJB ?
> I download mssql-service.xml from CVS and put it to server/default/deploy
> directory.
> When I try get DataSource in code:
> ==========================================================
> Context initCtx = new InitialContext();
> javax.sql.DataSource ds =(javax.sql.DataSource)
> initCtx.lookup("java:comp/env/jdbc/MSSQLDS");
> return ds.getConnection();
> ==========================================================
> and ejb-jar.xml contain
> <resource-ref>
> <res-ref-name>jdbc/MSSQLDS</res-ref-name>
> <res-type>javax.sql.DataSource</res-type>
> <res-auth>Container</res-auth>
> </resource-ref>
> ==========================================================
>
> I got DefaultDS (Hyperbase integrated to JBoss) :(((
> What I'm doing wrong?
> Some advice ?
> Thanx Bedy
>
>
>
> ---
> Odchozí zpráva neobsahuje viry.
> Zkontrolováno antivirovým systémem AVG (http://www.grisoft.cz).
> Verze: 6.0.365 / Virová báze: 202 - datum vydání: 24.5. 2002
>
>
> _______________________________________________________________
>
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>
_______________________________________________________________
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user