[JBoss-user] [Installation & Configuration] - Transaction Timeout
I have a very bad problem. My EJB (session-bean, CMT) performs an UPDATE on a DBMS (Oracle or SQL Server), and after that it makes some other long operations, without using the DBMS. My transaction-timeout is set to 30 seconds (in jboss-service.xml), and the operations takes more than this (let's say 35 seconds). I see in JBoss console only a warnig, and so I suppose that my UPDATE did his job, but if I look in the DB, I see that a ROLLBACK has been done by the DBMS. This meas that the user suppose that his operation has been completed succesfully, while an error occured. This, for me, is the worst problem we can have in a complex application like the one we are developing. The problem described aboev is just a test case, so don't tell me to change the logig of this, or to change the timeout ... I mean if this problem occurs in production environment, we will become crazy to find it ... should we look at the console for a warnig? Who is so crazy to consider this error a simple warning? Please tell me that I can configure somehow to have some kind of exception insted of this completely useless warning ... please. Any help will be a great thing for me. I'm using JBoss 3.2.5, but I can esaly change to any other version if this new one solves the problem. Alessandro View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3855390#3855390 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3855390 --- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation & Configuration] - Re: Slow startup
For example: 1) I've started JBoss 2) I've recompiled and rebuild a Jar (let's call it A.jar): I've seen JBoss re-deploing A.jar, correctly. 3) I've start my application: I get this error: 09:41:07,437 ERROR [LogInterceptor] Unexpected Error: java.lang.IllegalAccessError: tried to access class A from B (I use A and B, instead of the real names, just to simplify my explanation) Notice that both A and B are inside A.jar Now if I restart JBoss, everything works. Mind that A.jar is a library, I mean contains some classes which a used and inherited from classes that are in other jars, and those last classes are EJB. Is now more clear the situation? Regards Alessandro View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3846393#3846393 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3846393 --- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation & Configuration] - Slow startup
I'm in a developing step of a big J2EE applications, with (at now) more that 35 jar each one with some EJB inside. I've JBoss 3.2.3 and at now on my P4 1.5Mh it needs something like 1 minute and 20 seconds to start. Since I need to change my EJB very often, and the hot deploy feature is not so nice when you change libraries, I have to restart it many times a day. Is there a way to obtain a faster start-up? Caching something from the previous deploy, maybe? I also use orion, which needs about 10 seconds to start ... because he deploys EJB only when they change, and I change only 1 EJB at a time, not all of the 35 jar ... Can anybody help me please Regards Alessandro View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3846298#3846298 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3846298 --- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation & Configuration] - Re: 2 J2EE application with the same EJB
Thanks a lot for you suggestion, I'll try them as soon as I can. For the clients call, they won't call both EJB at the same time, but some client will call the first EJB while some others will call the oter one, this (I hope) will not cause cast exception (client are deployed via JWS) Regards Alessandro Rizzi View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3845868#3845868 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3845868 --- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation & Configuration] - Re: 2 J2EE application with the same EJB
"wtff" wrote : yes this is possible. | | First of all, if you just deploy ejb-jars by placing them somewhere below the deploy directory, their classes will be loaded into the same loader repository. | So lets first start with the simple case of having an ejb which you want to deploy two times, lets say with different configuration settings. You can do this, but you have to make sure to use two different ejb-names and two different JNDI paths. | How can I have two different ejb-names? Modifing the ejb-jar.xml of each one? I cannot do that, since in this way I should also modify the client call. I'd like to have the same EJB name, but a differenti J2EE application name. In Orion this is possible, I can deploy the same Jar in 2 different application, and the only thing to do on the client is changing the J2EE application name in the lookup. "wtff" wrote : | If the bean should also be able to exist in two different versions, you have to ensure that they are loaded into different classloader repositories. In order to achieve this, you have to put them into two different ear archives. Within the jboss-app.xml file in the META-INF directory of the ear archive you need to specify a separate loader repository for each ear: | | | | | | | | | http://www.jboss.org/j2ee/dtd/jboss-app_3_2.dtd";> | | | | | | | | jmx-domain-name:loader=application-ONE | | | | | | | | | Thanks for your help, I'll try to make the 2 EAR's, but if you can ask to the above question, I'll be very thankful. Reagards Alessandro Rizzi View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3845462#3845462 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3845462 --- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation & Configuration] - 2 J2EE application with the same EJB
I would like to have 2 J2EE applications containg the same EJB, is this possible? I have JBoss 3.2.3 and the situation should be this: I should have 2 folders like this: ..\jboss-3.2.3\server\default\deploy\myApp1 ..\jboss-3.2.3\server\default\deploy\myApp2 Both folder myApp1 & myApp2 contains (for example) jarA.jar which contains the same EJB's. The pourpose of the 2 folder is to have the same application in 2 different versions. If I made a configuration like this, I get an error: ERROR [EJBModule] Could not create JSR-77 EJBModule: jarA.jar javax.management.InstanceAlreadyExistsException: jboss.management.local:J2EEApplication=null,J2EEServer=Local,j2eeType=EJBModule,name=jarA.jar registered. Can anybody help me? Maybe I've to set something to NOT have "J2EEApplication=null"? Or this kind of configuration (which works well on Orion) is not possible? Regards Alessandro Rizzi View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3845057#3845057 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3845057 --- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: Timeout with statefull session bean
I found it: In standardjboss.xml you have to change Standard Stateful SessionBean ... org.jboss.ejb.plugins.LRUStatefulContextCachePolicy ... 1800 (in a clustered environment you have to change also another just some lines later) This means that after 1800 seconds (30 minutes) the statefull session been, which was alredy passivated to file, is completely removed from disk. I simply improve the value from 1800 to 1073741824, so now I'm sure that my EJB will never been deleted from disk (which made my application crash, and the only solution was to restart JBoss) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3822023#3822023 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3822023 --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Having class path from an EJB
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3820078#3820078 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3820078 I've to know the full class-path from an EJB that runs inside JBoss or Orion. With Orion I simply write: System.getProperty("java.class.path"); and I got it. With JBoss I got only the 2 jars used to run JBoss (tools.jar and run.jar) while I need to know all the jars full path. I need it to do it at run-time, so within Java ... Can anybody help me. Regards Alessandro Rizzi --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Timeout with statefull session bean
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3820079#3820079 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3820079 I need to set the timeout to infinite for a statefull session bean. For what I've understood I should write something in jboss.xml of my sesssion-bean or (better) I should write something in standardjboss.xml of my server. Can anyone help me Regards Alessandro Rizzi --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user