[JBoss Seam] - Method call 1000 times slow in object using @In than new
by zaya
A test case:
| @Name("test")
| @Scope(ScopeType.CONVERSATION)
| @AutoCreate
| public class Test {
|
| TestMethod testMethodNew = new TestMethod();
|
| @In("testMethod")
| TestMethod testMethodIn;
|
| public void test(){
| System.out.println("start,In:" + System.currentTimeMillis());
| for(int i=0; i<1000; i++) {
| testMethodIn.dummy();
| }
| System.out.println("end ,In:" + System.currentTimeMillis());
|
| System.out.println("start,New:" + System.currentTimeMillis());
| for(int i=0; i<1000; i++) {
| testMethodNew.dummy();
| }
| System.out.println("end ,New:" + System.currentTimeMillis());
| }
|
| }
|
|
| @Name("testMethod")
| @Scope(ScopeType.CONVERSATION)
| @AutoCreate
| public class TestMethod {
| public void dummy() {};
| }
|
The output is like:
| 12:33:08,414 INFO [STDOUT] start,In:1199593988414
| 12:33:10,198 INFO [STDOUT] end ,In:1199593990198
| 12:33:10,198 INFO [STDOUT] start,New:1199593990198
| 12:33:10,199 INFO [STDOUT] end ,New:1199593990199
|
Could anyone explain this?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117354#4117354
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117354
18 years, 3 months
[EJB 3.0] - Re: Ejb 3 in Jboss 5 Beta 3
by ragavgomatam
Hi Andy,
Sorry for the delay....I was fixing my spring deployer with ejb 3. That is now fixed. Yes, what Nilesh posts is repeatable with Jboss 5 Beta 3. I have the following :-
Ejb3.ear with ejb3.war (web-module) and ejb3.jar ( ejb3 archive) and a META-INF/application.xml.
Step to reproduce the error
(1) The above EAR file was first copied over to $JBOSS_HOME/server/default/deploy.
(2) The server was then started . This causes the deployment errors (mentioned previously) to appear.
(3) The server was then stopped.
(4) EAR was removed from deploy directory.
(5) Server was started without EAR file. After server is running, EAR is now copied over to deploy directory.
(6) EAR is now successfully deployed & application is available.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117352#4117352
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117352
18 years, 3 months
[JBoss Seam] - How do I get google bot indexing all the codebase?
by tony.herstell@gmail.com
How do I get google bot indexing all the codebase?
| 66.249.70.178 - - [06/Jan/2008:11:35:37 +1300] "GET /site/debug.seam?name=org.jboss.seam.core.validators&cid=397 HTTP/1.1" 200 21717 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
| 66.249.70.178 - - [06/Jan/2008:11:41:23 +1300] "GET /site/debug.seam?name=org.jboss.seam.core.ConversationIdGenerator.component&cid=90 HTTP/1.1" 200 23864 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
| 66.249.70.178 - - [06/Jan/2008:11:41:40 +1300] "GET /site/debug.seam?name=org.jboss.seam.core.validators&cid=330 HTTP/1.1" 200 21717 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
| 66.249.70.178 - - [06/Jan/2008:11:41:44 +1300] "GET /site/debug.seam?name=org.jboss.seam.core.validators&cid=386 HTTP/1.1" 200 21717 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
| 66.249.70.178 - - [06/Jan/2008:11:41:48 +1300] "GET /site/debug.seam?name=org.jboss.seam.core.validators&cid=370 HTTP/1.1" 200 21717 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
| 66.249.70.178 - - [06/Jan/2008:11:41:53 +1300] "GET /site/debug.seam?name=com.sun.faces.sunJsfJs&cid=19 HTTP/1.1" 200 21842 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
| 66.249.70.178 - - [06/Jan/2008:11:43:40 +1300] "GET /site/debug.seam?name=org.jboss.seam.core.validators&cid=377 HTTP/1.1" 200 21717 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
| 66.249.70.178 - - [06/Jan/2008:11:46:17 +1300] "GET /site/debug.seam?name=org.jboss.seam.core.validators&cid=381 HTTP/1.1" 200 21717 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117346#4117346
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117346
18 years, 3 months
[JBoss Seam] - Re: how can I create a simple database aplication?
by anewton
I'm no Seam expert. In fact, I'm very new to it. But I've been quite a bit of time trying to convert the registration example to use Maven. And I'm pretty sure it uses a database.
There are two things to look for:
1) If you downloaded JBoss AS, the registration example is probably using the built-in HSQL in-memory database. You can either reconfigure JBoss to use HSQL as a disk-based database, or point it to some other database.
2) The persistence.xml in the registration example has "create-drop" under the hibernate.hbm2ddl.auto property. That will drop and the create your database tables every time the app comes up, I think. Another setting, such as "update" might be in order. You'll probably have to look at the Hibernate docs to find the right answer.
I hope that helps.
-andy
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117345#4117345
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117345
18 years, 3 months