This content has been marked as final.
Show 2 replies
-
1. Re: Question about SEAM booking example
jbalunas Dec 10, 2007 10:11 AM (in response to yinglcs1)Take a look at the JPA example - that runs completely outside of a J2ee env and is a version of the booking example. There are also examples there for several different application containers.
As for how to get Mysql data source setup the easiest way might be to run seam gen and tell it that you are using mysql. Set what ever values you want for the other questions but answer the ones below. Check the seam-gen instructions for more information if needed...... [input] What kind of database are you using? [mysql] (hsql, [mysql], oracle, postgres, mssql, db2, sybase, enterprisedb, ) [input] Enter the Hibernate dialect for your database [org.hibernate.dialect.MySQLDialect] [org.hibernate.dialect.MySQLDialect] [input] Enter the filesystem path to the JDBC driver jar [lib/mysql.jar] [lib/mysql.jar] [input] Enter JDBC driver class for your database [com.mysql.jdbc.Driver] [com.mysql.jdbc.Driver] [input] Enter the JDBC URL for your database [jdbc:mysql:///youdbname] [jdbc:mysql:///yourdbname] [input] Enter database username [user] [user] [input] Enter database password [password] [password] .......
Then have seam-gen create a new project../seam new-project
Your options are then to use that generated project as a starting point, or extract from it the important bits for the mysql config (elements of persistence.xml and components.xml). -
2. Re: Question about SEAM booking example
pmuir Dec 16, 2007 4:40 PM (in response to yinglcs1)Bizarrely the hibernate only example (no JPA) is called hibernate2 ;)
http://jira.jboss.com/jira/browse/JBSEAM-2387