[JBoss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: using others DBMS in jboss
Thank you fro your reply. i got exception in runtime when i try to use my ejb. but about ejb. i use BMP. i know that there is a jbosscmp-jdbc file for setting datasource in CMP but how about BMP. i try to add these setting in ejb-jar.xml but it was useless... :-( ... resource-ref res-ref-namejdbc/myjndi/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref thakns View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3955243#3955243 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3955243 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: using others DBMS in jboss
Yes, its work, :-) Thank you so much. i have a error in my connection code. | DataSource ds=(DataSource)ctx.lookup(java:comp/env/jdbc/myjndi); | changed to | DataSource ds=(DataSource)ctx.lookup(java:/myjndi); | | Thank you again. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3955265#3955265 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3955265 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence, JBoss/CMP, Hibernate, Database] - using others DBMS in jboss
Hi all. i write a program that use mssql server for DB. in servlets i can use sql server connection properly. but when i try to use sqlserver in EJB, an exception occurs. i found that in my ejb, when i get DB connection, it point to Default ds (HSQLDB). i think i must make a configuration file that tell jboss that i want to use mssql connection on there. but what and how ? i have these configuration files in my program and i also do copy mssql driver in ..\server\default\ and mssql-ds.xml in ..\server\default\deploy\ . thanks // mssql-xa-ds.xml === xa-datasource jndi-namemyjndi/jndi-name track-connection-by-tx / isSameRM-override-valuefalse/isSameRM-override-value xa-datasource-classcom.microsoft.sqlserver.jdbc.SQLServerXADataSource/xa-datasource-class xa-datasource-property name=ServerNameserver/xa-datasource-property xa-datasource-property name=DatabaseNamemydb/xa-datasource-property xa-datasource-property name=SelectMethodcursor/xa-datasource-property user-nameuser/user-name ** type-mappingMS SQLSERVER2000/type-mapping /xa-datasource //web.xml ... resource-ref res-ref-namejdbc/myjndi/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref //jboss-web.xml== resource-ref res-ref-namejdbc/myjndi/res-ref-name res-typejavax.sql.DataSource/res-type jndi-namejava:/myjndi/jndi-name /resource-ref View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3955182#3955182 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3955182 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user