• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

EBJ3.0 configuration help needed JBoss (4.2.3)

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I am running EJB3.0 along with hibernate in jboss 4.2.3. I am having an EJB with method Parent() which calls another EJB with a method
A() which in turn calls a DAO layer method B() which makes a select statment. I have given @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
for method A(). I printed the execution time of the method A() in method Parent() and printing the execution time of the query within the DAO
method B().

They are as follows in secs
A() - 0.063 -> B() - 0.015
A() - 0.063 -> B() - 0.031
A() - 1.563 -> B() - 0.032
A() - 1.875 -> B() - 1.531
A() - 1.828 -> B() - 1.578

Why is there a sudden increase in excecution time (1.563) of method A() even when my corrresponding DAO method B() takes only little time (0.032) to complete. The corresponding calls are all increased.. The calls to method A() will be approximately 40 per second so my application is fast running. Is there something wrong in configurations of my JBOSS or is there a way to avoid it ???

I tried many ways to get this fixed... but it didnot help me. I meddled with the
jboss-service.xml file under \all\deploy\ejb3.deployer\META-INF folder by setting

socket://${jboss.bind.address}:3873/?maxPoolSize=600
maxPoolSize=600 attribute, which didnot work.

I also changed my standardjboss.xml file under \all\conf folder for maximum pool size of by stateless session beans..



which didnot work either.

I am making only local calls to my EJBs (3.0) , so what invokers will be involved in the calls and where can I alter them???

Regards
Thanks in advance
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Jk Vv"

Please click on the "My Private Messages" link on top of this page, to view a PM from JavaRanch.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"JK Vv", please check your private messages for an important administrative matter.
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
I am new to EJB3. I am using Eclipse Europa(Java 5 compiler). I am trying to create HelloWorld program using EJB3. Can you please tell me that how can I resolve annotations ?
I am trying to use annotation like @Stateless..@Remote..
Also I downloaded JBOSS 5.0 unzipped it. Set JAVA_HOME ..JBOSS_HOME but server is till not started after clicking on run.bat
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Rahul, please do not hijack other's topics - ask your questions in a new topic. (You actually have two questions, you should ask each in its own topic.)
 
Ew. You guys are ugly with a capital UG. Here, maybe this tiny ad can help:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic