[JBoss-user] jboss and customized authorization
I'm trying to write this customized security proxy class to protect a bean. Now the problem seems to be be that EJBContext object is always for somereason set to null, which makes it impossible to detect caller's principal etc... Client calling this bean is servlet. Any ideas why this happens? --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] @jboss-net:web-service
Hello Derek, Great response! But what exactly is that jboss-head? is it a web page or a folder. I've not been able to find it. Regards Ricardo - Original Message - From: Derek Lin To: [EMAIL PROTECTED] Sent: Sunday, October 27, 2002 1:22 AM Subject: Re: [JBoss-user] @jboss-net:web-service I've found it. 1) Where do I get the xdoclet module that supports it? \jboss-head\jboss.net\output\lib\xdoclet-module-jboss-net.jar 2) What entries do I need? (build.xml, bean.java, etc.) jbossnet destdir="${ejb}/bean/gen-dd/META-INF"/ (build.xml) * @jboss-net:web-service urn="CompanyHandler"* expose-all="true" (bean.java) -- Derek - Original Message - From: Derek Lin To: [EMAIL PROTECTED] Sent: Saturday, October 26, 2002 4:30 PM Subject: [JBoss-user] @jboss-net:web-service Anyone familiar with this xdoclet tag?: @jboss-net:web-service How do I use it? 1) Where do I get the xdoclet module that supports it? 2) What entries do I need? (build.xml, bean.java, etc.) Thanks, Derek
Re: [JBoss-user] JBossNetSubTask.class and jboss-net_xml.xdt
Okay just some dumb questions. I found the class you are using int he CVS of sourceforge.org, but how do I download that version of JBoss, or do I just download the JBossNetSubTask.class and then try and compile it. What do I do then, do jar it and drop it on the ant/lib? Can you give me some steps on how to go about doing this please. Regards Ricardo (excuse my ignorance, I am a beginner at this) - Original Message - From: Derek Lin To: [EMAIL PROTECTED] Sent: Sunday, October 27, 2002 6:56 AM Subject: Re: [JBoss-user] JBossNetSubTask.class and jboss-net_xml.xdt Anyway, I fixed the problem by using this: parameter name="beanJndiName" value="XDtEjb:ifRemoteEjbXDtEjbHome:jndiName type="remote"//XDtEjb:ifRemoteEjbXDtEjb:ifNotRemoteEjbXDtEjb:ifLocalEjbXDtEjbHome:jndiName type="local"//XDtEjb:ifLocalEjb/XDtEjb:ifNotRemoteEjb"/ Don't know if this is the right fix--Because I don't know the details of web-service.xml (anyone has a DTD?) - Original Message - From: Derek Lin To: [EMAIL PROTECTED] Sent: Saturday, October 26, 2002 10:32 PM Subject: [JBoss-user] JBossNetSubTask.class and jboss-net_xml.xdt I am using \xdoclet\modules\jboss\net\JBossNetSubTask.class (the jboss xdoclet subtask for @jboss-net:web-service urn="CompanyHandler"). I am seeing bad web-service.xml being generated (for view-type="both"). So I did a little investigation: If you look at this file \xdoclet-module-jboss-net\xdoclet\modules\jboss\net\resources\jboss-net_xml.xdt and if you look at these lines: parameter name="beanJndiName" value="XDtEjb:ifRemoteEjbXDtEjbHome:jndiName type="remote"//XDtEjb:ifRemoteEjbXDtEjb:ifLocalEjbXDtEjbHome:jndiName type="local"//XDtEjb:ifLocalEjb"/ You see that it is putting both remote jndi name and local jndi name together. Here is the result in my web-service.xml file: parameter name="beanJndiName" value="ejb/CompanyHandlerCompanyHandlerLocal"/ Is there a XDtEjb:ifNotLocalEjb tag? If so,maybe Ican fix this on my own. But is anyone fixing this (any developers reading this?) Anyone has the similar experience? Thanks, Derek
[JBoss-user] One J2EE Application, Multiple Oracle Datasource
With JBoss 3.0.3, How can I configure the entity bean using different datasource in the same J2EE application. I have already configured the oracle-service.xml bounding to different database instant and successfully test to connect to each datasource in different application. Each application having jbosscmp-jdbc.xml file config like this. jbosscmp-jdbc defaults datasourcejava:/STKD2D/datasource datasource-mappingOracle8/datasource-mapping /defaults enterprise-beans entity .. /entity /enterprise-beans /jbosscmp-jdbc Can I have another jbosscmp-jdbc.xml file include in the same application? Or any other way please advice? Thanks in advance, Phuwarin --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] One J2EE Application, Multiple Oracle Datasource
Hello Phuwarin, PSsc jbosscmp-jdbc PSsc defaults PSscdatasourcejava:/STKD2D/datasource PSscdatasource-mappingOracle8/datasource-mapping PSsc /defaults PSsc enterprise-beans PSsc entity datasourcejava:/STK3D/datasource datasource-mappingmySQL/datasource-mapping PSsc .. PSsc /entity PSsc /enterprise-beans PSsc /jbosscmp-jdbc See jbosscmp-jdbc_3_0.dtd for more info. PSsc Can I have another jbosscmp-jdbc.xml file include in the same application? PSsc Or any other way please advice? PSsc Thanks in advance, PSsc Phuwarin -- Best regards, Alex Loubyansky --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] One J2EE Application, Multiple Oracle Datasource
Or You can create database link and synonym in one database to another database and work in JBoss like only one database regards Haris Peco On Monday 28 October 2002 11:17 am, Alex Loubyansky wrote: Hello Phuwarin, PSsc jbosscmp-jdbc PSsc defaults PSscdatasourcejava:/STKD2D/datasource PSscdatasource-mappingOracle8/datasource-mapping PSsc /defaults PSsc enterprise-beans PSsc entity datasourcejava:/STK3D/datasource datasource-mappingmySQL/datasource-mapping PSsc .. PSsc /entity PSsc /enterprise-beans PSsc /jbosscmp-jdbc See jbosscmp-jdbc_3_0.dtd for more info. PSsc Can I have another jbosscmp-jdbc.xml file include in the same application? PSsc Or any other way please advice? PSsc Thanks in advance, PSsc Phuwarin --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] A question on Jboss scalability!
Hi All! I have a few queries regarding application performance and scalability of a web based app. Jboss: 3.x Tomcat:4.0.4 Op Sys: Linux(red hat 7.2),win2k,solaris DB:Oracle 9i H/W:Pentium 4 dual ,1GB RAM. Now using a profiling/testing tool we saw that not more than 440 users could use the system concurrently(on win 2000 enterprise server).The app typically has the following archtitecture: UI Layer: Jsps Middleware: Session beans DB layer: Entity beans with CMP2.0 or in some cases DAO layer(JDBC calls from session beans) I don't know if this info is vague or enough to tell me 1.What Jboss specific things should I take care of in order to scale up to 1000+ concurrent users. 2.Any other tips that will enable me to scale up. 3.typically how does the performance vary from win2k to linux to solaris. 4.Is there any upper limit on the number of users that Jboss can support concurrently. We are not running Jboss clusters yet. Guys let me know if you need any other info to help me with this. Thanks a lot in advance, Regards, Rahul Ganjoo. --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] servlet Mapping configuration error
hi, I had perpared an application which works fine in jboss integrated with jetty web server but If i am putting the same application in jboss integrated with tomcat server, then i get the error No Context configured to process the request when i access any servlet of the application. I can able to access the JSP of my application. Do I need to make any setting to execut the servlet to work in jboss-3.0.3_tomcat-4.1.12 pls respond to this mail. Regards, Pankaj Kumar Jain Tata Consultancy Services Phone:00-91-22-8291680 Ext:1150 Dial Com:1108 --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Confused about JBoss Version Control and versions
i have just reaserched about patterns on branches and releases (to define our way of doing this), and one of the most import detail when getting a bug fixed is do it first in the least modified branch (I thing this would be a stable branch , like 3.0) and after that propagate it to other branches until getting it to HEAD. some stuff about SCM : - Branching Patterns for Parallel Software Development http://www.enteract.com/~bradapp/acme/branching - Configuration Management Patterns http://www.bell-labs.com/cgi-user/OrgPatterns/OrgPatterns?ConfigurationManagementPatterns - Zope Release Policy http://dev.zope.org/CVS/ZopeReleasePolicy - High-Level Best Practices in SCM http://www.perforce.com/perforce/bestpractices.html - Data Grid CVS policies http://lindir.ics.muni.cz/dg_public/cederqvist-1.11.1p1.html/cvs.html - And of course (maybe it should be updated a little): http://www.jboss.org/developers/guides/cvs-admin.jsp Scott M Stark wrote: Its priorities and/or lazy developers. If a fix has not made it into a branch you need it in create a context diff of the patch for the branch and submit it to patches section of the jboss project on sourceforge. Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message - From: Alwyn Schoeman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, October 27, 2002 7:15 PM Subject: [JBoss-user] Confused about JBoss Version Control and versions JBoss consists of various CVS branches. What confuses me is that there seems to be no consistent method of fixes to CVS head moving into Release versions. One example is the rollinglogged PersistenceManager fix that has been existing in CVS Head now for 2 months, but has not moved to 3.0 branch yet, although rollinglogged will not work at all in 3.0 without it. Is this a matter of more important issues taking precedence or must users specific request this action? If so, where? --- This SF.net email is sponsored by: ApacheCon, November 18-21 in Las Vegas (supported by COMDEX), the only Apache event to be fully supported by the ASF. http://www.apachecon.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- | Emerson Cargnin | | Analista de Sistemas Sr. | | Tel : (051) 3358-4959| | SICREDI Serviços | | Porto Alegre - Brasil| |xx| --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] binding ejb to wrong datasource
does anyone know why my ejb resources are always trying to bind to java:/DefaultDS?? in jboss 3.0.3 when i deploy my ejb's, they always try to bind to DefaultDS instead of the datasource i have configured for them. i have 3 datasources configured, DefaultDS, was1DS, and was2DS to oracle databases. here are the important parts of my ejb-jar.xml and my jboss.xml. i don't see why it won't work with my other datasources. ejb-jar.xml session description![CDATA[DutyManager Enterprise Java Bean.]]/description display-nameDutyManager/display-name ejb-nameDutyManager/ejb-name homecom.bpc.bcs.interfaces.DutyManagerHome/home remotecom.bpc.bcs.interfaces.DutyManager/remote ejb-classcom.bpc.bcs.ejb.DutyManagerSession/ejb-class session-typeStateless/session-type transaction-typeContainer/transaction-type resource-ref res-ref-namejdbc/bcs/bcsuser/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /session jboss.xml session ejb-nameDutyManager/ejb-name jndi-nameejb/bcs/dutyManager/jndi-name resource-ref res-ref-namejdbc/bcs/bcsuser/res-ref-name resource-namejava:/was2DS/resource-name /resource-ref /session here's the message from jboss when the ejb is deployed: 09:48:52,424 DEBUG [StatelessSessionContainer] Begin java:comp/env for EJB: DutyManager 09:48:52,424 DEBUG [StatelessSessionContainer] TCL: java.net.URLClassLoader@230be4 09:48:52,424 DEBUG [StatelessSessionContainer] Binding resource manager: java:/DefaultDS to JDNI ENC as: jdbc/bcs/bcsuser --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] question about caching session beans in the weblayer
i have been looking at your servicelcoator imp and i have some questions : 1 - does it always create a new initial context for every new home? 2 - why doesn't putting the logic in lazy loading of homes after the null testing for a given home? Greg Turner wrote: All I have been working on this problem. I would like to know what you think of my solution. First of all, you can cache EJBHome objects, but not EntityBean or SessionBean objects. There are many Locator patterns on the web such as this one: http://java.sun.com/blueprints/corej2eepatterns/Patterns/ServiceLocator.html There is one problem with them. That is, if the EJBHome object goes stale for whatever reason, say its server goes down, then it does not work, and you have to re-get the InitialContext and then re-get the home object from the InitialContext after the EJBHome's server comes back up. I have come up with what I think might be a solution. Here are 3 attached java source files. The EjbHomeLocator does the caching of the EJBHome objects. But for a FooBean and FooHome, the FooHomeService takes care of the stale EJBHome problem. My intention is that a XDoclet task could be written that would generate the FooHomeService.java source so that would not have to be written for each bean. What do you think? Emerson Cargnin - SICREDI Serviços wrote: I have some questions regarding to caching homes and session beans in the remote client : 1- I already cache initicalcontext and homes in businness delegate, is it secure to cache the real session object as a static attribute in business delegate and reuse it across a long time ? 2- If i call the same session object instance simultaneously from two different threads it will serialize the business method calls? I made this question because we use a satellite line between web and ejb layers (bank office and central bank site) and it takes 1,5 seconds to the cached home to just create the session facade bean. if someone has any better approache, i'd appreciate. Thanks in advance | Emerson Cargnin | | Analista de Sistemas Sr. | | Tel : (051) 3358-4959| | SICREDI Serviços | | Porto Alegre - Brasil| |xx| --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user /* ** * Copyright (c) 2002 Tiburon Enterprise Systems, Inc. All rights reserved. * com.tes.framework.ejbs.homeservice.EjbHomeLocator.java ** */ package com.tes.framework.ejbs.homeservice; import java.util.Properties; import javax.ejb.EJBHome; import javax.naming.Context; import javax.naming.InitialContext; // this class is located in the Concurrent.jar file which comes with JBoss ! import EDU.oswego.cs.dl.util.concurrent.ConcurrentReaderHashMap; /** * This class keeps a cache of EJBHomes. If a EJBHome object becomes stale, * we ignore issue of trying to get a new instance from same Context. We just * get a new Context and try again. This is because whether or not there are * multiple instances of the same EJBHome into context is a vendor implementation * specific issue. * * This class ignores the issue of whether or not it is possible to have different * EJBHomes on different machines but cached in Context with same key. Probably should * revisit this !! * * This class assumes we are not using a clustered Jndi. Need to revisit this issue !! */ public class EjbHomeLocator { private static EjbHomeLocator INSTANCE = new EjbHomeLocator (); // We use this implementation of a HashMap because it neatly // handles all issues of concurrent puts and gets to the HashMap private ConcurrentReaderHashMap homes; public static EJBHome getEjbHome (String key, boolean refreshCache, Properties props) throws Exception { return INSTANCE.nonStaticGetEjbHome (key, refreshCache, props); } private EjbHomeLocator () { homes = new ConcurrentReaderHashMap(); } private EJBHome nonStaticGetEjbHome (String key, boolean refreshCache, Properties props) throws Exception { EJBHome home = null; if (refreshCache) refreshCache (key, props); home = (EJBHome)homes.get (key); // If we got a null home and we did not call for a refresh of cache // then do the refresh and try again. So, first time calling this will // force getting the home from Context. But if we already called for // a refresh, we don't do it again.
Re: [JBoss-user] question about caching session beans in the weblayer
sorry it was meant to be a private msg... Emerson Cargnin - SICREDI Serviços wrote: i have been looking at your servicelcoator imp and i have some questions : 1 - does it always create a new initial context for every new home? 2 - why doesn't putting the logic in lazy loading of homes after the null testing for a given home? Greg Turner wrote: All I have been working on this problem. I would like to know what you think of my solution. First of all, you can cache EJBHome objects, but not EntityBean or SessionBean objects. There are many Locator patterns on the web such as this one: http://java.sun.com/blueprints/corej2eepatterns/Patterns/ServiceLocator.html There is one problem with them. That is, if the EJBHome object goes stale for whatever reason, say its server goes down, then it does not work, and you have to re-get the InitialContext and then re-get the home object from the InitialContext after the EJBHome's server comes back up. I have come up with what I think might be a solution. Here are 3 attached java source files. The EjbHomeLocator does the caching of the EJBHome objects. But for a FooBean and FooHome, the FooHomeService takes care of the stale EJBHome problem. My intention is that a XDoclet task could be written that would generate the FooHomeService.java source so that would not have to be written for each bean. What do you think? Emerson Cargnin - SICREDI Serviços wrote: I have some questions regarding to caching homes and session beans in the remote client : 1- I already cache initicalcontext and homes in businness delegate, is it secure to cache the real session object as a static attribute in business delegate and reuse it across a long time ? 2- If i call the same session object instance simultaneously from two different threads it will serialize the business method calls? I made this question because we use a satellite line between web and ejb layers (bank office and central bank site) and it takes 1,5 seconds to the cached home to just create the session facade bean. if someone has any better approache, i'd appreciate. Thanks in advance | Emerson Cargnin | | Analista de Sistemas Sr. | | Tel : (051) 3358-4959| | SICREDI Serviços | | Porto Alegre - Brasil| |xx| --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user /* ** * Copyright (c) 2002 Tiburon Enterprise Systems, Inc. All rights reserved. * com.tes.framework.ejbs.homeservice.EjbHomeLocator.java ** */ package com.tes.framework.ejbs.homeservice; import java.util.Properties; import javax.ejb.EJBHome; import javax.naming.Context; import javax.naming.InitialContext; // this class is located in the Concurrent.jar file which comes with JBoss ! import EDU.oswego.cs.dl.util.concurrent.ConcurrentReaderHashMap; /** * This class keeps a cache of EJBHomes. If a EJBHome object becomes stale, * we ignore issue of trying to get a new instance from same Context. We just * get a new Context and try again. This is because whether or not there are * multiple instances of the same EJBHome into context is a vendor implementation * specific issue. * * This class ignores the issue of whether or not it is possible to have different * EJBHomes on different machines but cached in Context with same key. Probably should * revisit this !! * * This class assumes we are not using a clustered Jndi. Need to revisit this issue !! */ public class EjbHomeLocator { private static EjbHomeLocator INSTANCE = new EjbHomeLocator (); // We use this implementation of a HashMap because it neatly // handles all issues of concurrent puts and gets to the HashMap private ConcurrentReaderHashMap homes; public static EJBHome getEjbHome (String key, boolean refreshCache, Properties props) throws Exception { return INSTANCE.nonStaticGetEjbHome (key, refreshCache, props); } private EjbHomeLocator () { homes = new ConcurrentReaderHashMap(); } private EJBHome nonStaticGetEjbHome (String key, boolean refreshCache, Properties props) throws Exception { EJBHome home = null; if (refreshCache) refreshCache (key, props); home = (EJBHome)homes.get (key); // If we got a null home and we did not call for a refresh of cache // then do the refresh and try again. So, first time calling this will // force
Re: [JBoss-user] transactions in stateless session bean.
I'm getting a similar error to the post quoted below (at least, I'm getting the same error message: A CMR collection may only be used within the transction in which it was created) when attempting to iterate through a CMR Collection in a SLSB method. here are the relevant ejb-jar.xml transaction attributes for this bean: assembly-descriptor container-transaction method ejb-nameCSRequestViewerBean/ejb-name method-name*/method-name /method trans-attributeRequired/trans-attribute /container-transaction /assembly-descriptor (the entity beans that this session bean uses are also set to 'Required' in their ejb-jar.xml files) here is the snippet of code from a method in this bean: public Collection getCSRsByJob(String jobId) throws RemoteException { try { LocalJob ljob = lookupJobHome().findByPrimaryKey(jobId); Collection c = ljob.getCSRequests(); Collection result = new Vector(); Iterator i = c.iterator(); //** THIS FAILS ** for(; i.hasNext();) { LocalCSRequest csr = (LocalCSRequest)i.next(); CSRViewObject vo = createCSRViewFromEntity(csr); result.add(vo); } return result; } (etc) So I've been reading old messages from the list and searching through posts in the jboss forum (e.g., http://www.jboss.org/forums/thread.jsp?forum=46thread=20507 ) and basically every answer is to make sure the iterating method is wrapped in a user transaction or a session bean. This method definitely falls into the latter category, but I still get the error. Any hints are greatly appreciated! Jboss ver = 3.0.4RC1 (built from branch_3_0 on 10-28-2002) using Commit Option A I found a reference to bug # 575815 https://sourceforge.net/tracker/?func=detailatid=376685aid=575815group_id=22866 but it appears to have been fixed over a month ago. Is there a chance it may still be a problem? Justin hi, i'm getting this exception from jboss. 08:56:58,675 ERROR [LogInterceptor] TransactionRolledbackException, causedBy: java.lang.IllegalStateException: A CMR collection may only be used within the transction in which it was created at org.jboss.ejb.plugins.cmp.jdbc.bridge.RelationSet.getIdList(RelationSet.jav a:58) at org.jboss.ejb.plugins.cmp.jdbc.bridge.RelationSet.iterator(RelationSet.java :260) at test.server.session.PermissionManagerEJBImpl.checkByRelationTraversal(Permi ssionManagerEJBImpl.java:59) at test.server.session.PermissionManagerEJBImpl.check(PermissionManagerEJBImpl .java:130) my ejb-jar.xml says. session description![CDATA[]]/description ejb-namePermissionManager/ejb-name hometest.shared.PermissionManagerHome/home remotetest.shared.PermissionManager/remote ejb-classtest.server.session.PermissionManagerEJBImpl/ejb-class session-typeStateless/session-type transaction-typeContainer/transaction-type /session container-transaction method ejb-namePermissionManager/ejb-name method-intfLocal/method-intf method-namecheck/method-name method-params method-paramtest.shared.UserLocal/method-param method-paramtest.shared.TypeLocal/method-param method-paramjava.lang.Integer/method-param method-paramtest.shared.OpLocal/method-param /method-params /method trans-attributeREQUIRED/trans-attribute /container-transaction since trans-attribute is REQUIRED, shouldn't jboss have a transaction for me? barbee. --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] @jboss-net:web-service
jboss-head is the cvs branch. sorry for the confusion. -- Derek - Original Message - From: Ricardo Escalon To: [EMAIL PROTECTED] Sent: Monday, October 28, 2002 1:57 AM Subject: Re: [JBoss-user] @jboss-net:web-service Hello Derek, Great response! But what exactly is that jboss-head? is it a web page or a folder. I've not been able to find it. Regards Ricardo - Original Message - From: Derek Lin To: [EMAIL PROTECTED] Sent: Sunday, October 27, 2002 1:22 AM Subject: Re: [JBoss-user] @jboss-net:web-service I've found it. 1) Where do I get the xdoclet module that supports it? \jboss-head\jboss.net\output\lib\xdoclet-module-jboss-net.jar 2) What entries do I need? (build.xml, bean.java, etc.) jbossnet destdir="${ejb}/bean/gen-dd/META-INF"/ (build.xml) * @jboss-net:web-service urn="CompanyHandler"* expose-all="true" (bean.java) -- Derek - Original Message - From: Derek Lin To: [EMAIL PROTECTED] Sent: Saturday, October 26, 2002 4:30 PM Subject: [JBoss-user] @jboss-net:web-service Anyone familiar with this xdoclet tag?: @jboss-net:web-service How do I use it? 1) Where do I get the xdoclet module that supports it? 2) What entries do I need? (build.xml, bean.java, etc.) Thanks, Derek
Re: [JBoss-user] JBossNetSubTask.class and jboss-net_xml.xdt
just follow the cvs instruction to check out jboss-head. and build the jars. (go to /build and type build) - Original Message - From: Ricardo Escalon To: [EMAIL PROTECTED] Sent: Monday, October 28, 2002 2:32 AM Subject: Re: [JBoss-user] JBossNetSubTask.class and jboss-net_xml.xdt Okay just some dumb questions. I found the class you are using int he CVS of sourceforge.org, but how do I download that version of JBoss, or do I just download the JBossNetSubTask.class and then try and compile it. What do I do then, do jar it and drop it on the ant/lib? Can you give me some steps on how to go about doing this please. Regards Ricardo (excuse my ignorance, I am a beginner at this) - Original Message - From: Derek Lin To: [EMAIL PROTECTED] Sent: Sunday, October 27, 2002 6:56 AM Subject: Re: [JBoss-user] JBossNetSubTask.class and jboss-net_xml.xdt Anyway, I fixed the problem by using this: parameter name="beanJndiName" value="XDtEjb:ifRemoteEjbXDtEjbHome:jndiName type="remote"//XDtEjb:ifRemoteEjbXDtEjb:ifNotRemoteEjbXDtEjb:ifLocalEjbXDtEjbHome:jndiName type="local"//XDtEjb:ifLocalEjb/XDtEjb:ifNotRemoteEjb"/ Don't know if this is the right fix--Because I don't know the details of web-service.xml (anyone has a DTD?) - Original Message - From: Derek Lin To: [EMAIL PROTECTED] Sent: Saturday, October 26, 2002 10:32 PM Subject: [JBoss-user] JBossNetSubTask.class and jboss-net_xml.xdt I am using \xdoclet\modules\jboss\net\JBossNetSubTask.class (the jboss xdoclet subtask for @jboss-net:web-service urn="CompanyHandler"). I am seeing bad web-service.xml being generated (for view-type="both"). So I did a little investigation: If you look at this file \xdoclet-module-jboss-net\xdoclet\modules\jboss\net\resources\jboss-net_xml.xdt and if you look at these lines: parameter name="beanJndiName" value="XDtEjb:ifRemoteEjbXDtEjbHome:jndiName type="remote"//XDtEjb:ifRemoteEjbXDtEjb:ifLocalEjbXDtEjbHome:jndiName type="local"//XDtEjb:ifLocalEjb"/ You see that it is putting both remote jndi name and local jndi name together. Here is the result in my web-service.xml file: parameter name="beanJndiName" value="ejb/CompanyHandlerCompanyHandlerLocal"/ Is there a XDtEjb:ifNotLocalEjb tag? If so,maybe Ican fix this on my own. But is anyone fixing this (any developers reading this?) Anyone has the similar experience? Thanks, Derek
RE: [JBoss-user] JBoss/Tomcat hanging on undeploy
How about a slightly different question: Has anyone else experienced this, or am I alone in the universe? :-) Thanks, Jeff Schnitzer [EMAIL PROTECTED] -Original Message- From: Schnitzer, Jeff Sent: Thursday, October 24, 2002 2:19 PM To: [EMAIL PROTECTED] Subject: [JBoss-user] JBoss/Tomcat hanging on undeploy Hi! I've noticed that JBoss (3.0.2, with Tomcat 4.0.4) seems to hang periodically when trying to undeploy an application, either as part of the shutdown process or as part of a redeploy. The problematic message seems to be: 2002-10-24 20:04:37,378 INFO [org.jboss.web.localhost.Engine] StandardWrapper[:jsp]: Waiting for 9 instance(s) to be deallocated I've seen this with both an ear (containing two war files no ejbs) and a straight war file. Any idea what's going on? I just grepped the latest source tree for fragments of that message and couldn't find anything. What is StandardWrapper, and where do I find localhost.Engine? Thanks, Jeff Schnitzer [EMAIL PROTECTED] --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Possible CMR Bug with Transactions
This application imports an XML document into a database. The data contains several one-to-many relations that are stored using fk's. There is one session bean that reads the XML and creates the entity beans. The entity beans all have bidirectional relationships. When testing, the session bean that does the actually importing failed, while the entity bean tests past. A quick look in the database showed that the fk's were null when the entity was created by the session bean. The only difference between my session bean test and the others that I could think of was the scope of the transaction. In the tests that are passing, creation of object A and B each occur in their own transaction. While the session bean creates both object A and B (and the relation between them), in the same transaction. It also seems that I need to create multiple B's in order to recreate this problem. To test my theory I changed the transaction type on the session bean's method from Required to NotSupported. This change of transaction type allows the test to pass. I'm currently using JBoss 3.0.3 with Windows 2000 and JDK 1.4.0. I'm working on a small test case to try against the 3.0 Branch and Head. Has anyone else run into something similar? Regards, Leon __ Do you Yahoo!? Y! Web Hosting - Let the expert host your web site http://webhosting.yahoo.com/ --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] A question on Jboss scalability!
I did ran ECPerf tests and the RICE study on both linux and win2k. Linux was 2 times slower than Win2k. Not sure why, not much of a sys-admin so wouldn't know what to tune. Some other performance tidbits: - JBossWeb (Jetty) is 30% faster than Tomcat 4.0.4 under the heavy load tests I did. (RICE study). - Make sure that your Web tier and EJB tier are running in the same VM. You'll see huge performance gains. - Make sure you have enough DB connections in your DB pool. Otherwise your system will start to slow down under heavy load. - Are you having problems with Entity Bean locking? JBoss 3.0.4 (Branch_3_0) has a EntityBean monitoring MBean. In jboss-service.xml in .../server/default/conf (or server/all/conf) uncomment out the EntityBeanMonitor MBean. Run your stress test again, and then go to the JMX console :8080/jmx-console and view the stats on your Entity bean concurrency issues. If you have high concurrency and high wait times then there is a locking problem. Consult the for-pay documentation on how to solve Entity Bean locking problems - Are you sure you're not overloading your DB's I/O? - Hire JBossGroup to help out your performance. I personally have helped out Dow Jones Indexes (www.djindexes.com) to improve their performance to over 1000% as well as Elogex (www.elogex.com). Other JBossGroup consultants have done the same at other sites if you need references. - From my ECPerf tests I've found that the DB was the limiting factor. Bill Burke JBossGroup -Original Message- From: [EMAIL PROTECTED] [mailto:jboss-user-admin;lists.sourceforge.net]On Behalf Of Rahul Ganjoo Sent: Monday, October 28, 2002 8:11 AM To: [EMAIL PROTECTED] Subject: [JBoss-user] A question on Jboss scalability! Hi All! I have a few queries regarding application performance and scalability of a web based app. Jboss: 3.x Tomcat:4.0.4 Op Sys: Linux(red hat 7.2),win2k,solaris DB:Oracle 9i H/W:Pentium 4 dual ,1GB RAM. Now using a profiling/testing tool we saw that not more than 440 users could use the system concurrently(on win 2000 enterprise server).The app typically has the following archtitecture: UI Layer: Jsps Middleware: Session beans DB layer: Entity beans with CMP2.0 or in some cases DAO layer(JDBC calls from session beans) I don't know if this info is vague or enough to tell me 1.What Jboss specific things should I take care of in order to scale up to 1000+ concurrent users. 2.Any other tips that will enable me to scale up. 3.typically how does the performance vary from win2k to linux to solaris. 4.Is there any upper limit on the number of users that Jboss can support concurrently. We are not running Jboss clusters yet. Guys let me know if you need any other info to help me with this. Thanks a lot in advance, Regards, Rahul Ganjoo. --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] error when redeploying
I'm redeploying an app that has struts jar inside (since it's better to manage it's versions). 20:06:07,582 ERROR [ActionServlet] Parsing error processing resource path /WEB-INF/struts-config.xml java.lang.LinkageError: loader constraints violated when linking org/apache/commons/digester/ObjectCreationFactory class at org.apache.struts.config.ConfigRuleSet.addRuleInstances(ConfigRuleSet.java:121) at org.apache.commons.digester.Digester.addRuleSet(Digester.java:1610) at org.apache.struts.action.ActionServlet.initConfigDigester(ActionServlet.java:1088) at org.apache.struts.action.ActionServlet.initApplicationConfig(ActionServlet.java:854) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:455) at javax.servlet.GenericServlet.init(GenericServlet.java:256) -- | Emerson Cargnin | | Analista de Sistemas Sr. | | Tel : (051) 3358-4959| | SICREDI Serviços | | Porto Alegre - Brasil| |xx| --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Entity Bean Performance Tuning Help
That makes sense for the weird timing observations. I tried the value object pattern with a local ejbHome method. Utilizing a finder this reduced my time from ~2200ms to ~1600, then i tried an ejbSelect which took it down to ~1400ms. Then i tried your suggestion (bulk getter) and was able to get the time to about ~1200ms. A lot better then the original 2200, but can this still be acceptable for reading ~10 fields from 750ejbs that are 100% cached? Also, the first time though (uncached), is still very long 11,000 ms for the exact same code and data...course a bit of this is creating db pool connections. .peter -Original Message- From: Dan Christopherson [mailto:danch;nvisia.com] Sent: Monday, October 21, 2002 12:45 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Entity Bean Performance Tuning Help Luttrell, Peter wrote: basically pass in a reference to the ejb and call most of the methods on it. The trace dumps out the total time the constructor took. I noticed a weird pattern. Most of the constructions took 0ms, but every 5th or so it took 15-16ms, which is where all of my time is going. Note that it is not exactly 18:46:06,840 INFO [STDOUT] displayBean construction took 0 ms 18:46:06,840 INFO [STDOUT] displayBean construction took 0 ms 18:46:06,855 INFO [STDOUT] displayBean construction took 15 ms 18:46:06,855 INFO [STDOUT] displayBean construction took 0 ms Assuming you're using System.currentTimeMillis(), this might just be the granularity that this method uses: in the past, I've noticed it returning only multiples of 10 under windows. One thing that this method is doing is it's calling through the entire container stack for each attribute that needs to be copied to the data object. Can you instead give the entity a factory method (bulk getter)? That might help by reducing overhead. -danch --- This sf.net emial is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4699841;7576298;k? http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user This transmission contains information solely for intended recipient and may be privileged, confidential and/or otherwise protect from disclosure. If you are not the intended recipient, please contact the sender and delete all copies of this transmission. This message and/or the materials contained herein are not an offer to sell, or a solicitation of an offer to buy, any securities or other instruments. The information has been obtained or derived from sources believed by us to be reliable, but we do not represent that it is accurate or complete. Any opinions or estimates contained in this information constitute our judgment as of this date and are subject to change without notice. Any information you share with us will be used in the operation of our business, and we do not request and do not want any material, nonpublic information. Absent an express prior written agreement, we are not agreeing to treat any information confidentially and will use any and all information and reserve the right to publish or disclose any information you share with us. --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] binding ejb to wrong datasource
Why do you have a resource-ref section in jboss.xml? This section should be resource-manager. Here is a working section from one of my EJBs. resource-managers resource-manager res-jndi-namejava:/ordermanagementDB/res-jndi-name res-namejdbc/ordermanagementDB/res-name /resource-manager /resource-managers - Original Message - From: Sonnek, Ryan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 28, 2002 10:57 AM Subject: [JBoss-user] binding ejb to wrong datasource does anyone know why my ejb resources are always trying to bind to java:/DefaultDS?? in jboss 3.0.3 when i deploy my ejb's, they always try to bind to DefaultDS instead of the datasource i have configured for them. i have 3 datasources configured, DefaultDS, was1DS, and was2DS to oracle databases. here are the important parts of my ejb-jar.xml and my jboss.xml. i don't see why it won't work with my other datasources. ejb-jar.xml session description![CDATA[DutyManager Enterprise Java Bean.]]/description display-nameDutyManager/display-name ejb-nameDutyManager/ejb-name homecom.bpc.bcs.interfaces.DutyManagerHome/home remotecom.bpc.bcs.interfaces.DutyManager/remote ejb-classcom.bpc.bcs.ejb.DutyManagerSession/ejb-class session-typeStateless/session-type transaction-typeContainer/transaction-type resource-ref res-ref-namejdbc/bcs/bcsuser/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /session jboss.xml session ejb-nameDutyManager/ejb-name jndi-nameejb/bcs/dutyManager/jndi-name resource-ref res-ref-namejdbc/bcs/bcsuser/res-ref-name resource-namejava:/was2DS/resource-name /resource-ref /session here's the message from jboss when the ejb is deployed: 09:48:52,424 DEBUG [StatelessSessionContainer] Begin java:comp/env for EJB: DutyManager 09:48:52,424 DEBUG [StatelessSessionContainer] TCL: java.net.URLClassLoader@230be4 09:48:52,424 DEBUG [StatelessSessionContainer] Binding resource manager: java:/DefaultDS to JDNI ENC as: jdbc/bcs/bcsuser --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] One J2EE Application, Multiple Oracle Datasource
Hello Alex, Got it. I look in the dtd file and make some change in the jbosscmp-jdbc.xml file, here below. It works. jbosscmp-jdbc defaults datasourcejava:/STKD2D/datasource datasource-mappingOracle8/datasource-mapping /defaults enterprise-beans entity ejb-nameAttributeEJB/ejb-name !-- Use default Oracle data source-- ... /entity entity ejb-nameRadiusEJB/ejb-name !-- Use another Oracle data source-- datasourcejava:/STTD2D/datasource datasource-mappingOracle8/datasource-mapping ... /entity entity ejb-nameAccountEJB/ejb-name !-- Use MySQL data source-- datasourcejava:/MySqlDS/datasource datasource-mappingmySQL/datasource-mapping ... /entity /enterprise-beans /jbosscmp-jdbc Thanks, Phuwarin --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Erroneous deadlock detected???
Queued pessmistic is useful for caching. Without it you can't cache. You're wrong that it turns jBoss into single tasking. It really depends on your application and there are other settings you can use. Buy the for-pay docs(or search the archives, I've answered these questions a million times before). It goes into details about locking policies. Ok, so why did he get deadlock detected? begin tx1 - create entity this locks it into tx1 - entity.setX --- tx1 suspended tx2 starts, deadlock, tx1 has lock. Besides, you can't do a requiresnew call anyways because the newly created entity will never have been committed! Learn what transaction isolation is. Bill -Original Message- From: [EMAIL PROTECTED] [mailto:jboss-user-admin;lists.sourceforge.net]On Behalf Of Georg Schmid Sent: Friday, October 25, 2002 6:14 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] Erroneous deadlock detected??? I ran into this same problem a while ago, and I suggested the same (at least the thread, that holds the lock, should not be locked out). Somebody wrote a 'SimpleReadWriteEJBLock' class, that seems to achieve exactly this, but I could not find any info related to it. You can also try to play around with the method attribute read-only setting in jboss.xml (see the DTD). To get better concurrency you may consider switching to the Instance Per Transaction configuration (see standardjboss.xml) . The QueuedPessimisticEJBLock does not make any sense with CMP, IMHO (if you use it, it turns JBoss into a single tasking system). Georg -Original Message- From: [EMAIL PROTECTED] [mailto:jboss-user-admin;lists.sourceforge.net] On Behalf Of Jim Crossley Sent: Thursday, October 24, 2002 22:06 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Erroneous deadlock detected??? Well, it would seem to me that a ThreadLocal instance could help solve this problem. If one thread tries to acquire a lock it already owns, it ought to get it, right? If we were to apply the same semantics you describe to a simple Java class, then calling setX would always block... class C { synchronized void setX() { setY(); } synchronized void setY() { ; } } If this is really the way JBoss works, and nobody knows a good reason why it should, can someone point me to the package/class responsible for this behavior and I'll take a whack at fixing it? Thanks, Jim On Thu, 2002-10-24 at 15:40, Michael Bartmann wrote: Explanation attempt inline. Regards, Michael Bartmann Jim Crossley wrote: I have an MDB with the following pseudocode in its onMessage method: public void onMessage(Message msg) { // Entity bean = home.create(...) // bean.setX(...) this starts a tx1 and locks the instance bean. // bean.setY(...) this suspends the tx1 on bean temporarily, and starts a tx2, which tries to obtain the lock on the bean, which it will never get, because tx1 is not commited or rollbacked yet. We had this problem under 2.4.4 w/o deadlock detection. Problem: even the tx timeout didn't work in this case; the server locked forever... :-( } Each of the three methods, create, setX, and setY have a trans-attribute of RequiresNew. With only one client posting a message, a deadlock detected exception is thrown when setX is invoked. How can deadlock occur when only one thread is active Thanks, Jim --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javav ote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now.
RE: [JBoss-user] Entity Bean Performance Tuning Help
Georg stop spewing nonsenseNever ever take out the synchronization interceptor! It registers synchronzations with the TM so that the entity bean changes get committed! Please read the for-pay docs or review the archives. I have explained this shit over and over. I've added a EntityLockMonitor MBean to 3.0.4 and higher. Look in jboss-service.xml to uncomment it. Gives you # contentions in table with bean beans. Also gives averages and other stats. I'll be adding this to docs eventually. Bill -Original Message- From: [EMAIL PROTECTED] [mailto:jboss-user-admin;lists.sourceforge.net]On Behalf Of Georg Schmid Sent: Monday, October 21, 2002 4:32 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] Entity Bean Performance Tuning Help Peter, I have a similar problem and tried to dig into it. You may have a look at the thread http://www.jboss.org/forums/thread.jsp?forum=46thread=20827 in the forums. To summarize: the EB caching works perfectly (I guess it is as fast as you can get with JDBC), but getting the rows in memory into a data or value object is slow. Creating n value objects for n EB instances involves going through the interceptor stack n times, and this is, where the time is lost. I incrementally stripped down the interceptor stack using a custom configuration in my jboss.xml, but without much success. The only way to really speed up things that I found was removing the synchronization interceptor, which improves performance by a factor of 2, if no or only one attribute is read, but makes it worse, if many attributes have to be read. BTW: I used commit option B, read-ahead on-load, and the Instance Per Transaction setup in my experiments. The pattern you found is interesting. Because there are so many things impacting the performance, it is hard to tell, whom to ask (Dain, Bill, David,...). Bill Burke did some performance tests using ECPerf. Maybe he can report a bit on the results. Regards Georg -Original Message- From: [EMAIL PROTECTED] [mailto:jboss-user-admin;lists.sourceforge.net] On Behalf Of Luttrell, Peter Sent: Saturday, October 19, 2002 02:17 To: '[EMAIL PROTECTED]' Subject: [JBoss-user] Entity Bean Performance Tuning Help I have something that is taking longer then I would like and am trying to tune jboss to reduce the time it takes. My test scenario is as such: JBoss3.0.3 on jdk1.4.1_01 1 2.0 CMP Enity bean with about 10 fields and 3 relationships. I'm using commit-option A so all beans should be cached (see cache policy below) once loaded. The first time that I run this it obviously takes longer (filling the cache), however subsequent times aren't as fast as i would like; see below: I have a method, which does this: 1) begin manual transaction with jta 2) calls findBySomeCriteria() which returns some 750 ejbs -takes 200-300ms (good) 3) then iterate through each, calling one of the methods i do this to fill the readahead cache for all the beans in an attempt to isolate the performance problem -takes 80-100ms (good) 4) then iterate through each, and constructing a dataobject that I use for display purposes -takes 2000-2500ms (this seams way too long) 5) commit the transaction, blablabla.. The problem is step 4 seams to be taking longer then it should. I then added some trace to the dataobject constructor method, where I basically pass in a reference to the ejb and call most of the methods on it. The trace dumps out the total time the constructor took. I noticed a weird pattern. Most of the constructions took 0ms, but every 5th or so it took 15-16ms, which is where all of my time is going. Note that it is not exactly every 5th and tends to vary a bit. Here's a sample of the output: 18:46:06,840 INFO [STDOUT] displayBean construction took 0 ms 18:46:06,840 INFO [STDOUT] displayBean construction took 0 ms 18:46:06,840 INFO [STDOUT] displayBean construction took 0 ms 18:46:06,840 INFO [STDOUT] displayBean construction took 0 ms 18:46:06,855 INFO [STDOUT] displayBean construction took 15 ms 18:46:06,855 INFO [STDOUT] displayBean construction took 0 ms 18:46:06,855 INFO [STDOUT] displayBean construction took 0 ms 18:46:06,855 INFO [STDOUT] displayBean construction took 0 ms 18:46:06,855 INFO [STDOUT] displayBean construction took 0 ms 18:46:06,871 INFO [STDOUT] displayBean construction took 16 ms 18:46:06,871 INFO [STDOUT] displayBean construction took 0 ms 18:46:06,871 INFO [STDOUT] displayBean construction took 0 ms 18:46:06,871 INFO [STDOUT] displayBean construction took 0 ms 18:46:06,871 INFO [STDOUT] displayBean construction took 0 ms 18:46:06,886 INFO [STDOUT] displayBean construction took 15 ms 18:46:06,886 INFO [STDOUT] displayBean construction took 0 ms 18:46:06,886 INFO [STDOUT] displayBean construction took 0 ms 18:46:06,886 INFO [STDOUT] displayBean construction took 0 ms
[JBoss-user] Configuring message driven beans
Hi guys, Had a couple of questions regarding MDB configuration! My environment : JBOSS : 3.0.2 JDK : 1.4.1 Ant : 1.4.1 1. Is there any way to configure the queue name that the MDB binds to during run time??? I know that the jboss.xml file has the MDB deployment descriptor as follows but this means that the queue name has to exist when the message driven bean is deployed.I wish to read this QName from an application specific properties file so that we make sure that the QName is not out of sync in one of the components! message-driven ejb-namecom.yambay.nps.messagehandler.message.MessageConsumer/ejb-nam e destination-jndi-namequeue/ClientWriteQ/destination-jndi-name /message-driven 2. Following from the first question is there any way to actually dynamically change the xml descriptors after they are deployed?? 3. With message driven beans, how does instance pooling work? If a message bean is processing a message from a Queue and meanwhile another message comes in, does the container spawn another instance of the MDB to process the second message. If yes, how can i then restrict the no of instances of the message bean?? Thanks a lot in advance, any help is much appreciated! Cheers Dushy --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user