-
1. Re: CMP with MySQL doesn't run
bertolod Jul 10, 2002 5:57 AM (in response to bertolod)Precisions:
I'm using:
- Linux Mandrake8.1
- JBOSS3.0
- NetBeans
and entity bean example found on sourceforge CVS tree
That's all
Thanks
David -
2. Re: CMP with MySQL doesn't run
zuludancer Jul 10, 2002 1:24 PM (in response to bertolod)Hi bertolod,
for JBoss3.0 and CMP 2.0 you have to configure jbosscmp-jdbc.xml.
You might get the docs at:
http://www.jboss.org/docs/ -
3. Re: CMP with MySQL doesn't run
bertolod Jul 11, 2002 4:39 AM (in response to bertolod)Hello zuludancer
I 've seen the online doc (JBoss2.4) and I've read the doc for JBoss 3.0.
I found example for entity bean but nothing for configure CMP.
I found on this forum some post, and I 've already modify this file : standardjbosscmp-jdbc.xml and
this file : mysql-service.xml
(In my first post, I show my modification of this file)
but I've tried again tio change something and JBOSS don't want use MySQL to CMP. (even if it's ok with BMP)
I always need help.
thanks
David -
4. All I need is help !!!! tadatadadadam ...
bertolod Jul 12, 2002 11:56 AM (in response to bertolod)please
someone
I can do a lot of..
heum
just please
David -
5. Re: CMP with MySQL doesn't run
giough Jul 12, 2002 7:33 PM (in response to bertolod)You probably need to buy the CMP docs at flashline.com. Do a search for jboss on the site to find it.
The latest docs are dated last month. I think it's worth the ten bucks I spent.
Obviously, the docs are for cmp2.0 and jboss3
Good luck. -
6. Re: CMP with MySQL doesn't run
navneet Jul 14, 2002 4:18 AM (in response to bertolod)Hi bertolod,
I am using mysql adn jboss 3.0.0RC3 on windows 2000 machine and it is working fine.
here is what i had to do:
-set mysql to use innodb tables as they support transaction
-changed the connectionurl in mysql-service.xml to jdbc:mysql://localhost:3306/DBName
-included the following in login-config.xml
-------------------
<!-- Security domain for Mysql -->
<application-policy name = "MySqlDbRealm">
<login-module code = "org.jboss.resource.security.ConfiguredIdentityLoginModule" flag = "required">
<module-option name = "principal">secret</module-option>
<module-option name = "userName">secret</module-option>
<module-option name = "password">secret</module-option>
<module-option name = "managedConnectionFactoryName">jboss.jca:service=LocalTxCM,name=MySqlDS</module-option>
</login-module>
</application-policy>
-------------------
-changed standandjbosscmp-jdbc.xml and standardjaws.xml to use java:/MySqlDS datasource and mySQL datasource-mapping
-copied the mysql-service to deploy folder
and its working for me -
7. Re: CMP with MySQL doesn't run
navneet Jul 14, 2002 4:21 AM (in response to bertolod)Hi bertolod,
I am using mysql adn jboss 3.0.0RC3 on windows 2000 machine and it is working fine.
here is what i had to do:
-set mysql to use innodb tables as they support transaction
-changed the connectionurl in mysql-service.xml to jdbc:mysql://localhost:3306/DBName
-included the following in login-config.xml
-------------------
<!-- Security domain for Mysql -->
<application-policy name = "MySqlDbRealm">
<login-module code = "org.jboss.resource.security.ConfiguredIdentityLoginModule" flag = "required">
<module-option name = "principal">secret</module-option>
<module-option name = "userName">secret</module-option>
<module-option name = "password">secret</module-option>
<module-option name = "managedConnectionFactoryName">jboss.jca:service=LocalTxCM,name=MySqlDS</module-option>
</login-module>
</application-policy>
-------------------
-changed standandjbosscmp-jdbc.xml and standardjaws.xml to use java:/MySqlDS datasource and mySQL datasource-mapping
-copied the mysql-service to deploy folder
and its working for me