[JBoss-user] JBoss-3.0.4 released
JBoss-3.0.4 has been released to SourceForge and in addition to the default Jetty web container includes bundled versions of Tomcat-4.0.6 and Tomcat-4.1.12. The releases may be downloaded from: http://sourceforge.net/project/showfiles.php?group_id=22866 The release notes are available here: http://sourceforge.net/project/shownotes.php?release_id=120145 Scott Stark Chief Technology Officer JBoss Group, LLC --- 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
RE: [JBoss-user] httpsession clustering overhead
ECPERF is in CVS under the ecperf module. For testing with 3.0 series, you'll need to checkout: ecperf -r Branch_3_0 3.2 and higher, just check out ecperf regulary. It is configured to use either BMP, CMP, or clustering. You can email me for help, but I'm pretty busy right now so I may not respond to lengthy questions. Also ECPerf is not a good HTTP test. For that I suggest the RICE study (JBoss vs. Jonas). Dain has done some great work porting the test to 3.0, but we haven't committed it yet. Could anybody offer up machines for doing clustering benchmarks with RICE and ECPERF? I only have 3 machines at home and its just not enough. Email me if you're interested. Bill > -Original Message- > From: [EMAIL PROTECTED] > [mailto:jboss-user-admin@;lists.sourceforge.net]On Behalf Of Rick LaBanca > Sent: Saturday, November 02, 2002 12:31 PM > To: [EMAIL PROTECTED] > Subject: Re: [JBoss-user] httpsession clustering overhead > > > I did think of the backplane idea as well. But we also have memory > consumption to think about. If I had four servers evenly balanced, say 100 > users on each, I think I would end up with 400 sessions per server. Our > sessions are currently pigs, and that is motivation to fix that! > > Perhaps better would be the cmp implementation which I haven't > tried. There, > it seems the servers could keep only the load they need, and if the get an > unknown session, the cmp would pull in the data if needed. I'm not sure it > really works that way though, I suppose it depends on how bean clustering > works, and I haven't looked into that. It could be just as bad if bean > clustering works in high availability mode as well! > > > Thats a good point that I once was worried about also. I even tought of > > setting up a network infrastructure with a backplane only for those > > messages. In the messages I have exchenged in the forum & ML, I got the > > feeling that for "usual" setup a 100 Mbps network is more than enough to > > handle the replication messages without a problem. Netvertheless, I have > > read lots of J2EE design recomendation (generic, not particular > to JBoss) > > that would recomend to design your structures so that you would need to > > sync the smallest possible info. > > I am sorry I cannot answer your question right now, as I > > still haven't > > found a way to benchmark the efficiency of a single Jboss 3.x, > in a way to > > find the improvment that a clustered environment can get. > > > > --- > This sf.net email is sponsored by: See the NEW Palm > Tungsten T handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: See the NEW Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] is sessionid unique?
- Original Message - From: "Marcin Gryszkalis" <[EMAIL PROTECTED]> > > application and I'd like to know how unique is sessionid > > generated by server (especially in long run, including > > server restart and aplication redeployment). > > After posting this I did some searching and found that > in Tomcat sessionid is pure random (16 bytes written in hex) > while in jetty it's just System.currentTimeMillis() based. Random generators may give good uniqueness but that is not what they are designed for. java.util.Random is pseudo random and one should not expect good random behavior from it. java.security.SecureRandom is better quality but slow. I believe Tomcat can be configured to use either. SecureRandom is very slow, and Random is not really random, wouldn't rely on either for unique generation. Harmeet --- This sf.net email is sponsored by: See the NEW Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] is sessionid unique?
I'm working on user-behavior-tracking solution for a jboss application and I'd like to know how unique is sessionid generated by server (especially in long run, including server restart and aplication redeployment). After posting this I did some searching and found that in Tomcat sessionid is pure random (16 bytes written in hex) while in jetty it's just System.currentTimeMillis() based. Is Tomcat's sessid creation safe? 16 bytes is not small size but I guess nobody would accept such key generation for database... regards marcin --- This sf.net email is sponsored by: See the NEW Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] setting SecurityManager causes security exception in hybrid JBoss /RMI application
You need these permissions assigned to any code that interacts with the JBoss security layer when running with a security manager: java.lang.RuntimePermission("org.jboss.security.SecurityAssociation.getPrincipalInfo") java.lang.RuntimePermission("org.jboss.security.SecurityAssociation.setPrincipalInfo") java.lang.RuntimePermission("org.jboss.security.SecurityAssociation.setServer") java.lang.RuntimePermission("org.jboss.security.SecurityAssociation.setRunAsRole") Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 01, 2002 12:17 PM Subject: [JBoss-user] setting SecurityManager causes security exception in hybrid JBoss /RMI application > We have a large, distributed, legacy application that uses RMI. This code > always checks System.getSecurityManager() and sets it to a new > RMISecurityManager() if the system one is null. > > Now, we've rewritten some of the legacy guis to utilize some J2EE > components, but they still rely on some legacy RMI stuff. > > Here's the scenario. We open the app and start communicating with JBoss. > Everything is fine. Then the user does some stuff that needs to use the > legacy RMI code. This code checks and finds out that there is no Security > Manager, so it sets the security manager to a new RMISecurityManager. It > does it's RMI thing and everything is happy. Then, the user does something > that requires an interaction with JBoss and the JBoss code throws a > SecurityException: > > [java] java.security.AccessControlException: access denied > (java.lang.RuntimePermission > org.jboss.security.SecurityAssociation.getPrincipalInfo) > [java] at > java.security.AccessControlContext.checkPermission(AccessControlContext.java > :270) > [java] at > java.security.AccessController.checkPermission(AccessController.java:401) > [java] at > java.lang.SecurityManager.checkPermission(SecurityManager.java:542) > [java] at > org.jboss.security.SecurityAssociation.getPrincipal(SecurityAssociation.java > :112) > [java] at > org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:74) > [java] at > org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInter > ceptor.java:109) > [java] at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:82) > [java] at $Proxy7.getRadios(Unknown Source) > > How do I get the code to work with legacy RMI stuff and with JBoss? Do I > need to set up some sort of security policy or something? > > We've also tried setting the security manager before we invoke either JBoss > or the legacy RMI stuff and JBoss still throws a security exception. > > Thanks, > Michael > > > --- > This sf.net email is sponsored by: See the NEW Palm > Tungsten T handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > --- This sf.net email is sponsored by: See the NEW Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] is sessionid unique?
Hi I'm working on user-behavior-tracking solution for a jboss application and I'd like to know how unique is sessionid generated by server (especially in long run, including server restart and aplication redeployment). regards marcin -- Marcin Gryszkalis http://fork.pl <>< --- This sf.net email is sponsored by: See the NEW Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Web Application Structure (WAR) within EAR
Does the war file need to have the client jars (jboss/client/*.jar) included in its WEB-INF/lib directory? I deployed it in the ear file under a jboss+tomcat (embeded) server. Do I also need to include the ejb files in the war (WEB-INF/lib) file when I refer to it under web.xml ()? My setup: app.ear /web.war /ejb.jar /META-INF /application.xml my application.xml http://java.sun.com/dtd/application_1_3.dtd'> Some Name Some Description web.war some-context xzoom-ejb.jar _ Surf the Web without missing calls! Get MSN Broadband. http://resourcecenter.msn.com/access/plans/freeactivation.asp --- This sf.net email is sponsored by: See the NEW Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Running CMP2 tests: HSqlDB allows duplicate columns
Jonathan.O'[EMAIL PROTECTED] wrote: Folks, I'm on a mission to allow the same column be mapped to both a CMP field and a CMR field. What version are you targeting this for? Jboss 4.0 cmp is getting a complete rewrite that what will for one thing makes this type of n:m data mapping model trivial. Since 3.0 isn't really getting new features, this seems like a lot of work for just the 3.2 release. If you still decide to go ahead, be really careful with the cached values, as each field has a private cache and the last thing we want is an inconsistent cache. I made some mods to one of the tests (ReadOnlyUnitTestCase) and found that the create table SQL that JBoss generates contains a column name twice. Yes, fields are not allowed to be mapped to the same column. I have gotten patches that address the sql generation problem but none have address the big cache problem I mention above. That's fine, but hsqldb doesn't complain. However, Oracle hates such SQL. The version of hsqldb we use does no real verification of the query. Which DBs do the unit tests get run against? hsqldb, postgres and sometimes mysql... some of the other guys have tested on oracle Also, are all new releases supposed to run all unit tests cleanly? I'd like to see the test suite report added to release. They are supposed to, but don't. All releases should cleanly run the tests-db suite, which tests bmp, cmp 1.1 and cmp 2. -dain --- This sf.net email is sponsored by: See the NEW Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Performance issue while adding to a EJB 2.0 relation- JBoss version: 3.0.2
Chris Bonham wrote: > I'm running JBoss 3.2.0beta with Dain's Unidirectional performance > patch, Sun JDK 1.3.1_03 on both Win2K and RedHat Linux 7.3, plus > XDoclet 1.2.0beta. > > I have two local CMP entity beans with this relationship: > > SelectedBowComponent (M) -> (1) BowComponent > > When I create a new SelectedBowComponent, the read ahead cache adds > the relation SelectedBowComponent_bowComponent. Then, that > BowComponent tries to load up all SelectedBowComponents that's it's > related to. Since this is a unidirectional relationship, that > relationship will never be traversed, so why is the data put in the > cache or is that a bug? I wouldn't have noticed this problem except > for the BowComponent the new SelectedBowComponent points to is also > pointed to by 30 rows! So, depending on memory settings, the > read ahead cache insertion process either runs out of memory or the > transaction times out. I've attached code snippets below. Directionally of relationships has no effect on the code; it is just a matter of convince for designers. With the performance patch you mention above, I make sure to not load relationships unless absolutely necessary for referential integrity, so what you are seeing is a bug. Please, file a bug report with a simple test case (Order-LineItem) that reproduces the error. -dain --- This sf.net email is sponsored by: See the NEW Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] httpsession clustering overhead
I did think of the backplane idea as well. But we also have memory consumption to think about. If I had four servers evenly balanced, say 100 users on each, I think I would end up with 400 sessions per server. Our sessions are currently pigs, and that is motivation to fix that! Perhaps better would be the cmp implementation which I haven't tried. There, it seems the servers could keep only the load they need, and if the get an unknown session, the cmp would pull in the data if needed. I'm not sure it really works that way though, I suppose it depends on how bean clustering works, and I haven't looked into that. It could be just as bad if bean clustering works in high availability mode as well! > Thats a good point that I once was worried about also. I even tought of > setting up a network infrastructure with a backplane only for those > messages. In the messages I have exchenged in the forum & ML, I got the > feeling that for "usual" setup a 100 Mbps network is more than enough to > handle the replication messages without a problem. Netvertheless, I have > read lots of J2EE design recomendation (generic, not particular to JBoss) > that would recomend to design your structures so that you would need to > sync the smallest possible info. > I am sorry I cannot answer your question right now, as I > still haven't > found a way to benchmark the efficiency of a single Jboss 3.x, in a way to > find the improvment that a clustered environment can get. --- This sf.net email is sponsored by: See the NEW Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] httpsession clustering overhead
> I am beginning to get httpclustering to work. Aside from the overhead of > each server having to have the capacity to hold the total sessions in all > servers, what's the wire traffic like? Yea, I'll sniff it if I have to, this > is just to see if anyone has a quick idea. Thats a good point that I once was worried about also. I even tought of setting up a network infrastructure with a backplane only for those messages. In the messages I have exchenged in the forum & ML, I got the feeling that for "usual" setup a 100 Mbps network is more than enough to handle the replication messages without a problem. Netvertheless, I have read lots of J2EE design recomendation (generic, not particular to JBoss) that would recomend to design your structures so that you would need to sync the smallest possible info. I am sorry I cannot answer your question right now, as I still haven't found a way to benchmark the efficiency of a single Jboss 3.x, in a way to find the improvment that a clustered environment can get. BTW, has someone got ECPerf to work with JBoss 3.x? I have read a posting from bill burk were I got the feeling he has done it, but every time I ask about this everyone points me to that project that has the instructions for JBoss 2.4.x series.. Joao Clemente --- This sf.net email is sponsored by: See the NEW Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] httpsession clustering overhead
I am beginning to get httpclustering to work. Aside from the overhead of each server having to have the capacity to hold the total sessions in all servers, what's the wire traffic like? Yea, I'll sniff it if I have to, this is just to see if anyone has a quick idea. I'm guessing it sends out X bytes representing the serialized session data each time it is changed via setattribute, and all servers pick it up and store. Or is that not true? If so I suppose I have to ensure good granularity with the session data. Unfortunately we have a big ugly object that holds a lot of the info, which I can just imagine going out all the time for one or two field changes! I have my debug level of logging, and the logs don't tell much of what's happening. rick --- This sf.net email is sponsored by: See the NEW Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Performance issue while adding to a EJB 2.0relation - JBoss version: 3.0.2
1. Do you run the code in a transaction? 2. Sun JDK 1.3.1_03 is AFAIK the slowest >=1.3 JDK you can find for linux. I recommend upgrading to 1.4.1 from sun, IBMs 1.3 or www.jrockit.com's 1.3. When you have done that, can you see any performance difference between Linux and Win2k? What kernel? Recompiled, or stock-RH-kernel? On fre, 2002-11-01 at 22:10, Chris Bonham wrote: > I'm running JBoss 3.2.0beta with Dain's Unidirectional performance patch, Sun JDK >1.3.1_03 on both Win2K and RedHat Linux 7.3, plus XDoclet 1.2.0beta. > > I have two local CMP entity beans with this relationship: > > SelectedBowComponent (M) -> (1) BowComponent > > When I create a new SelectedBowComponent, the read ahead cache adds the > relation SelectedBowComponent_bowComponent. Then, that BowComponent tries to > load up all SelectedBowComponents that's it's related to. Since this is a > unidirectional relationship, that relationship will never be traversed, so why > is the data put in the cache or is that a bug? I wouldn't have noticed this > problem except for the BowComponent the new SelectedBowComponent points to is > also pointed to by 30 rows! So, depending on memory settings, the read > ahead cache insertion process either runs out of memory or the transaction > times out. I've attached code snippets below. > > Thanks. > > -- > Chris Bonham > President/CEO > Third Eye Consulting, Inc. > [EMAIL PROTECTED] > http://www.thirdeyeconsulting.com > 317.823.3686 > 317.823.0353 (FAX) > > > > SelectedBowComponentBean.java: > > /** > * @ejb.interface-method > * @ejb.relation > * name="bowComponent-selectedBowComponent" > * role-name="SelectedBowComponentRelationshipRole" > * cascade-delete="no" > * target-ejb="BowComponent" > * target-role-name="BowComponentRelationshipRole" > * target-cascade-delete="no" > * target-multiple="yes" > * > * @jboss.relation > * related-pk-field="bowComponentEjbId" > * fk-column="BOWCOMPONENTEJB_ID" > * > * @weblogic.column-map > * foreign-key-column="BOWCOMPONENTEJB_ID" > * key-column="BOWCOMPONENTEJB_ID" > */ > public abstract BowComponentLocal getBowComponent(); > > /** > * @ejb.interface-method > */ > public abstract void setBowComponent(BowComponentLocal bowComponent); > ... > > ejb-jar.xml: > > ... > > bowComponent-selectedBowComponent > > > >SelectedBowComponentRelationshipRole > Many > >SelectedBowComponent > > >bowComponent > > > > > >BowComponentRelationshipRole > One > >BowComponent > > > > > ... > > jbosscmp-jdbc.xml: > > ... > > bowComponent-selectedBowComponent > > > > > >SelectedBowComponentRelationshipRole > > > > >BowComponentRelationshipRole > > >bowComponentEjbId >BOWCOMPONENTEJB_ID > > > > > ... > > Log: > > ... > 2002-10-31 15:26:30,391 DEBUG >[org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.SelectedBowComponent] >Executing SQL: INSERT INTO SELECTEDBOWCOMPONENTEJB (SELECTEDBOWCOMPONENTEJB_ID, >XPOSITION, YPOSITION, ZINDEX, PIXELTOPX, PIXELTOPY, PIXELBOTTOMX, PIXELBOTTOMY, >HEIGHT, WIDTH, NAME, BOWCOMPONENTEJB_ID, LIFEPAGEEJB_ID) VALUES (?, ?, ?, ?, ?, ?, ?, >?, ?, ?, ?, ?, ?) > 2002-10-31 15:26:30,391 TRACE >[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.SelectedBowComponent.selectedBowComponentEjbId] > Set parameter: index=1, jdbcType=INTEGER, value=632304 > 2002-10-31 15:26:30,411 TRACE >[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.SelectedBowComponent.xPosition] > Set parameter: index=2, jdbcType=INTEGER, value=300 > 2002-10-31 15:26:30,411 TRACE >[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.SelectedBowComponent.yPosition] > Set parameter: index=3, jdbcType=INTEGER, value=10 > 2002-10-31 15:26:30,411 TRACE >[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.SelectedBowComponent.zIndex] > Set parameter: index=4, jdbcType=INTEGER, value=-1 > 2002-10-31 15:26:30,411 TRACE >[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.SelectedBowComponent.pixelTopX] > Set parameter: index=5, jdbcType=INTEGER, value=-1 > 2002-10-31 15:26:30,411 TRACE >[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.SelectedBowComponent.pixelTopY] > Set parameter: index=6, jdbcType=INTEGER, value=-1 > 2002-10-31 15:26:30,411 TRACE >[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.SelectedBowComponent.pixelBottomX] > Set parameter: index=7, jdbcType=INTEGER, value=-1 > 2002-10-31 15:26:30,411 TRACE >[org.