[JBoss Seam] - [tooling] "seam generate-entities" does not seem generating
by ellenzhao
Hi folks,
I have a database which contains 20+ existing tables and wanted to use "seam generate-entities" to get the object models quickly. I used the seam-gen tool step by step as described in the Seam 1.2.1 GA documentation but did not get the java files as expected. Here is the shell output:
| ningning@olymp:~/sd/lib/jboss-seam-CVS.20070417$ ./seam generate-entities
| Buildfile: build.xml
|
| validate-workspace:
|
| validate-project:
|
| generate-entities:
| [hibernate] Executing Hibernate Tool with a JDBC Configuration (for reverse engineering)
| [hibernate] 1. task: hbm2java (Generates a set of .java files)
| [hibernate] 23-Apr-2007 09:07:24 org.hibernate.cfg.Environment <clinit>
| [hibernate] INFO: Hibernate 3.2.0.cr5
| [hibernate] 23-Apr-2007 09:07:24 org.hibernate.cfg.Environment <clinit>
| [hibernate] INFO: hibernate.properties not found
| [hibernate] 23-Apr-2007 09:07:24 org.hibernate.cfg.Environment buildBytecodeProvider
| [hibernate] INFO: Bytecode provider name : cglib
| [hibernate] 23-Apr-2007 09:07:24 org.hibernate.cfg.Environment <clinit>
| [hibernate] INFO: using JDK 1.4 java.sql.Timestamp handling
| [hibernate] 23-Apr-2007 09:07:25 org.hibernate.cfg.reveng.OverrideRepository addFile
| [hibernate] INFO: Override file: /home/ningning/sd/project/seam/EatSmart-alpha/resources/seam-gen.reveng.xml
| [hibernate] 23-Apr-2007 09:07:25 org.hibernate.connection.DriverManagerConnectionProvider configure
| [hibernate] INFO: Using Hibernate built-in connection pool (not for production use!)
| [hibernate] 23-Apr-2007 09:07:25 org.hibernate.connection.DriverManagerConnectionProvider configure
| [hibernate] INFO: Hibernate connection pool size: 20
| [hibernate] 23-Apr-2007 09:07:25 org.hibernate.connection.DriverManagerConnectionProvider configure
| [hibernate] INFO: autocommit mode: false
| [hibernate] 23-Apr-2007 09:07:25 org.hibernate.connection.DriverManagerConnectionProvider configure
| [hibernate] INFO: using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://localhost/iEat
| [hibernate] 23-Apr-2007 09:07:25 org.hibernate.connection.DriverManagerConnectionProvider configure
| [hibernate] INFO: connection properties: {user=ningning, password=****}
| [hibernate] 23-Apr-2007 09:07:25 org.hibernate.cfg.SettingsFactory buildSettings
| [hibernate] INFO: RDBMS: MySQL, version: 5.0.38-Debian_1-log
| [hibernate] 23-Apr-2007 09:07:25 org.hibernate.cfg.SettingsFactory buildSettings
| [hibernate] INFO: JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.0.5 ( $Date: 2007-03-01 00:01:06 +0100 (Thu, 01 Mar 2007) $, $Revision: 6329 $ )
| [hibernate] 23-Apr-2007 09:07:25 org.hibernate.dialect.Dialect <init>
| [hibernate] INFO: Using dialect: org.hibernate.dialect.MySQLDialect
| [hibernate] 23-Apr-2007 09:07:25 org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory
| [hibernate] INFO: Using default transaction strategy (direct JDBC transactions)
| [hibernate] 23-Apr-2007 09:07:25 org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
| [hibernate] INFO: No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
| [hibernate] 23-Apr-2007 09:07:25 org.hibernate.cfg.SettingsFactory buildSettings
| [hibernate] INFO: Automatic flush during beforeCompletion(): disabled
| [hibernate] 23-Apr-2007 09:07:25 org.hibernate.cfg.SettingsFactory buildSettings
| [hibernate] INFO: Automatic session close at end of transaction: disabled
| [hibernate] 23-Apr-2007 09:07:25 org.hibernate.cfg.SettingsFactory buildSettings
| [hibernate] INFO: JDBC batch size: 15
| [hibernate] 23-Apr-2007 09:07:25 org.hibernate.cfg.SettingsFactory buildSettings
| [hibernate] INFO: JDBC batch updates for versioned data: disabled
| [hibernate] 23-Apr-2007 09:07:25 org.hibernate.cfg.SettingsFactory buildSettings
| [hibernate] INFO: Scrollable result sets: enabled
| [hibernate] 23-Apr-2007 09:07:25 org.hibernate.cfg.SettingsFactory buildSettings
| [hibernate] INFO: JDBC3 getGeneratedKeys(): enabled
| [hibernate] 23-Apr-2007 09:07:25 org.hibernate.cfg.SettingsFactory buildSettings
| [hibernate] INFO: Connection release mode: auto
| [hibernate] 23-Apr-2007 09:07:25 org.hibernate.cfg.SettingsFactory buildSettings
| [hibernate] INFO: Default catalog: #
| [hibernate] 23-Apr-2007 09:07:25 org.hibernate.cfg.SettingsFactory buildSettings
| [hibernate] INFO: Maximum outer join fetch depth: 2
| [hibernate] 23-Apr-2007 09:07:25 org.hibernate.cfg.SettingsFactory buildSettings
| [hibernate] INFO: Default batch fetch size: 1
| [hibernate] 23-Apr-2007 09:07:25 org.hibernate.cfg.SettingsFactory buildSettings
| [hibernate] INFO: Generate SQL with comments: disabled
| [hibernate] 23-Apr-2007 09:07:25 org.hibernate.cfg.SettingsFactory buildSettings
| [hibernate] INFO: Order SQL updates by primary key: disabled
| [hibernate] 23-Apr-2007 09:07:25 org.hibernate.cfg.SettingsFactory createQueryTranslatorFactory
| [hibernate] INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
| [hibernate] 23-Apr-2007 09:07:25 org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>
| [hibernate] INFO: Using ASTQueryTranslatorFactory
| [hibernate] 23-Apr-2007 09:07:25 org.hibernate.cfg.SettingsFactory buildSettings
| [hibernate] INFO: Query language substitutions: {}
| [hibernate] 23-Apr-2007 09:07:25 org.hibernate.cfg.SettingsFactory buildSettings
| [hibernate] INFO: JPA-QL strict compliance: disabled
| [hibernate] 23-Apr-2007 09:07:25 org.hibernate.cfg.SettingsFactory buildSettings
| [hibernate] INFO: Second-level cache: enabled
| [hibernate] 23-Apr-2007 09:07:25 org.hibernate.cfg.SettingsFactory buildSettings
| [hibernate] INFO: Query cache: disabled
| [hibernate] 23-Apr-2007 09:07:25 org.hibernate.cfg.SettingsFactory createCacheProvider
| [hibernate] INFO: Cache provider: org.hibernate.cache.NoCacheProvider
| [hibernate] 23-Apr-2007 09:07:25 org.hibernate.cfg.SettingsFactory buildSettings
| [hibernate] INFO: Optimize cache for minimal puts: disabled
| [hibernate] 23-Apr-2007 09:07:25 org.hibernate.cfg.SettingsFactory buildSettings
| [hibernate] INFO: Structured second-level cache entries: disabled
| [hibernate] 23-Apr-2007 09:07:25 org.hibernate.cfg.SettingsFactory buildSettings
| [hibernate] INFO: Statistics: disabled
| [hibernate] 23-Apr-2007 09:07:25 org.hibernate.cfg.SettingsFactory buildSettings
| [hibernate] INFO: Deleted entity synthetic identifier rollback: disabled
| [hibernate] 23-Apr-2007 09:07:25 org.hibernate.cfg.SettingsFactory buildSettings
| [hibernate] INFO: Default entity-mode: pojo
| [hibernate] 23-Apr-2007 09:07:25 org.hibernate.connection.DriverManagerConnectionProvider close
| [hibernate] INFO: cleaning up connection pool: jdbc:mysql://localhost/iEat
| [hibernate] 23-Apr-2007 09:07:25 org.hibernate.tool.Version <clinit>
| [hibernate] INFO: Hibernate Tools 3.2.0.b9
| [hibernate] 2. task: generic exportertemplate: view/list.xhtml.ftl
| [hibernate] 3. task: generic exportertemplate: view/view.xhtml.ftl
| [hibernate] 4. task: generic exportertemplate: view/view.page.xml.ftl
| [hibernate] 5. task: generic exportertemplate: view/edit.xhtml.ftl
| [hibernate] 6. task: generic exportertemplate: view/edit.page.xml.ftl
| [hibernate] 7. task: generic exportertemplate: src/EntityList.java.ftl
| [hibernate] 8. task: generic exportertemplate: view/list.page.xml.ftl
| [hibernate] 9. task: generic exportertemplate: src/EntityHome.java.ftl
| [hibernate] 10. task: generic exportertemplate: view/layout/menu.xhtml.ftl
| [javaformatter] Java formatting of 1 files completed. Skipped 0 file(s).
| [echo] Type 'seam restart' and go to http://localhost:8080/iEat
|
| BUILD SUCCESSFUL
| Total time: 2 seconds
| ningning@olymp:~/sd/lib/jboss-seam-CVS.20070417$
|
It reports that "hibernate.properties not found". There is already an automatically generated persistence.xml which looks pretty good to me, do I have to create a hibernate.properties or hibernate.cfg.xml manually to make the "seam generate-entities" happy? Or, if this is not the problem, where did I do wrong? Thanks for any enlightenment.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039708#4039708
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039708
19 years
[EJB 3.0] - Re: 10,000 Recorc Per Second (In EJB 3.0)
by grdzeli_kaci
hi all,
:) i have some news :) i tried to divide my program to some parties, and i recount my amount of needed persistable records and i got 1000 per second,
after some performance configuration i got 400 record per second using Thread into server side,
i have inserted 10,000 record in 28 seconds using 50 Threads
i have inserted 10,000 record in 51 seconds using 5 Threads
hi snau2005
i did Threads ad you say,
hi oskar.carlstedt,
OK i have discuss my issue to my chief and i will have two powerful server for my program, one will be for Oracle Database (with 8 CPU, 32 GB Memory, SunOS) and second will be for my JBoss Application Server,
know if on the same machine i got 400 record per second, is it possible after divide this task i got 1000 record per second ??
i have not two Development Server for Testing :(
oooh and am will not be "alone" on my database server, some users may be using some another schemas or database users, my JBoss User is not only one user fir my datrabase,
ok, if i got 1000 record per second it is enough for me,
i don't want stored procedures and some other things, if it is possible,
i tried to have good design pattern ;) :) if it is possible :)
oo yes, i have never use JBoss Cluster, can it increase performance ?
also i'm just trying to optimize my database table, but theres nothing to performance persist into table, for select there is so many performance tuning options (Query Hints, indexes, partitions and so on), but for insert i don't know haw i can increase performance on database level
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039701#4039701
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039701
19 years
[JBoss Seam] - Out of Memory Leaks
by yj4jboss
Hi All,
I have a web application which is in production and uses the following technologies :
EJB 3.0
Hibernate
Seam
JSF
Facelets
Ajax4JSF
MySQL 5.0
I am using JDK 1.5.0_09
I have around 73 SFSB which are not using conversations and 78 SLSB and 43 Business objects.
In production, there are four users which are connected simultaneously. The HTTP and EJB Session timeout is set to 4 hours .....
However, the server has to be restarted at least twice a day due to OUT OF MEMORY leaks associated to Permgen space ..... I was getting this problem during development previously but increasing the permgen space to 256M solved this issue ...
I am not sure that implementing conversations only would solve my problems .... Can anyone have other suggestions on what could be wrong. This is really posing a huge problem for me
Cheers,
Jankee Yogesh
Software Developer
M-ITC LTD
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039694#4039694
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039694
19 years