[JBoss-user] Urgent: JBoss Reference Needed.
Hi All! have submitted a proposal to a client recommending JBoss... hes still not really convinced.. he wants an article/resource/case study anything that says how JB is running successfully in a production environment. Preferably from an independent website and not from JBoss.org. Our competitors are recommending commercial appservers. Any Help would be appreciated. Regards, Rahul Ganjoo. --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: Problem after problem... (Re: [JBoss-user] http session clustering)
Well, if this application is buggy, it is buggy. Either you fix it, or you use another one. Take xPetstore: Sun says it contains the best j2EE patterns. Take a subset of this app, cluster it, and you end-up with a clustered j2eE app. Good luck, Sacha -Original Message- From: Joao Clemente [mailto:[EMAIL PROTECTED] Sent: vendredi, 4. juillet 2003 01:41 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Problem after problem... (Re: [JBoss-user] http session clustering) sorry for replying so late, but here goes: No, my problems are still not solved... And I almost gave up on this... This is my university thesis, and I'm already almost a year late (it should take a year and I've started my research almost two years ago). If this is not finished in the 2 year-time, the thesis will be cancelled by the university. I'm suposed to use JBoss to provide a scalable, fault-tolerant and high-available middleware infra-structure for a j2ee app that is being developed by another person.. another thesis that is being developed at the same time, a kind of a webmail on steroids.. This j2ee application is build on top of a already developed open source webapplication (servlet+jsp). It was redesigned to use EJB's aswell. Then it was expanded with the help of a couple of more external libraries of other independent open-source projects.. So we're talking about a webapp that was redisegned to be a j2ee app, and then glued to some other libs and projects and with some extra code developed here... Put a Ldap connection here, a jabber server there, a mailserver somewhere else and with a bit of luck you get something like this... About 10 months ago, I should had delivered tested results on how the jboss cluster can improve the scalability and fault-tolerance of this application. I'm failing miserably every test I make... day after day I crash into another problem, and I'm unable to get those test results... I'm not saying this is JBoss's fault... No. I've found a couple of bugs that were JBoss and Javagroups related, as you (sacha) can certainly remember. But those were not the reasons I'm failing every time I try... This app sucks. Thats the truth I'm already seeing for a long time ago and it's exactly that that my thesis advisor (togheter with the other theses developer and advisor) is refusing to see.. Sure.. but the app works fine, they say. It's a problem on your side, they say... It's your work to get that thing usable under load, it's what your research is suposed to do, they say.. And, actually, if we use 1 (ONE!!!) client (wich, btw, must be InterntExplorer) , with 1 (A SINGLE ONE!!!) jboss server, and you test it manually... it works.. But, for instance, - The app uses non-serializable objects all over the http session. This ceartainly gives us a hard time getting fault-tolerance (or failover) to work, besides the problems with the load-balancing... - The owner of the original project (the one that was redesigned here to have ejb's besides servlets and jsp's) admitted that it never tought of it to be clustered, and had no ideia of what was to be done for it to be runnable in a cluster... About three or four months ago I started writing java test programs using httpunit to load the app.. I've designed a simple client model that would just do four or five steps in the web app... Simple, right? Then added a threading model so I could have n similar clients accessing the webapp... Again, simple... I decided to test WITHOUT a cluster. So, there as been at least 3 months that I do NOT have a load balancer, i DO NOT have a clustered jboss setup, there is just 1 jboss server and my client application... Results? I'm almost willing to wait 'till the 2 years of my thesis end, my university cancels it, so that I can start something new from the scratch... With NO cluster involved: - with 1 client ,if I run my test case (get hompage, login, check mail, logout) for 6 times, I would get locked. End of story. - with 2 clients, would get about the same results.. - with 4 clients, I would get little more than exceptions... oh, btw, in most of these cenarios, I' would not even be able to use the application manually, as it would enter a cicle redirecting me for the start page (it's a feature of this app: if something goes wrong then redirect to start page)... until I shutted down jboss and started it over (trying to undeploy the app would lock jboss) and no, it does not stop here... after some time, we found out that a singleton object of that j2ee app was unable to be runned concurrently and would cause the exception... gimme some more headaches, and we find out that the locking was due to one of the external libs that were being used that, by some reason, locks under yet to be understood circuntances.. oh,
AW: [JBoss-user] Jboss Net Question
-Ursprüngliche Nachricht- Von: Ramrakhiani, Vikas [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 3. Juli 2003 14:48 An: '[EMAIL PROTECTED]' Betreff: [JBoss-user] Jboss Net Question Hi, I want to know what is the limit (max. size) of soap messages we can send in a web service hosted on Jboss Axis. What should I say ... That depends on the configuration/properties of the chosen transport layer (your WebContainer in this case) and the settings of your Java VM. How Can I send attachments with soap messages (usually large files) ? JBoss.net bases on Axis which supports SAAJ (Soap with Attachments). See the axis and JAX-RPC documentations on that matter. CGJ ### This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. For more information, connect to http://www.F-Secure.com/ --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Castor, can I remove it?
Is castor used in jboss (3.0.7 and 3.2.x)? We have removed the jar and it seems to start and run OK, but it would be nice to know that this won't cause problems A quick grep of the 3.0.7 source finds usages in org.jboss.jdo under the varia directory. If I am not using JDOs at all this shouldn't affect me should it? Reason to remove is to replace it with a later version. thanks, brian wallis... --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Re: JBoss and Lucene search engine
you can have a look at : ... LuceneService.java It seems you are opening a new IndexSearcher for every request? This may be problematic for larger indexes, but perhaps this is not an issue here. -- Eric Jain --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Castor, can I remove it?
Brian, do it in cold blood. alex Friday, July 04, 2003, 11:15:55 AM, Brian Wallis wrote: BW Is castor used in jboss (3.0.7 and 3.2.x)? BW We have removed the jar and it seems to start and run OK, but it would be nice BW to know that this won't cause problems BW A quick grep of the 3.0.7 source finds usages in org.jboss.jdo under the varia BW directory. If I am not using JDOs at all this shouldn't affect me should it? BW Reason to remove is to replace it with a later version. BW thanks, BW brian wallis... --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Entity bean Attribute Changed Notifications
Brian JBoss AOP would certainly do what you want, it wouldn't be that hard to write an Interceptor that generated your notification for the setXXX methods you're interested in. To do the same within the CMP class is more difficult ... the attribute setXXX methods have to be abstract, that's part of the EJB contract. You could write wrappers around each setXXX method but then you'd have to ensure every client used the wrappers, and since the setXXX methods have to be public, that's not enforceable. You could edit the XDoclet template that generates the CMP file so that your setValue method generated the notification, but, as you say, this wouldn't trap the attribute setXXX calls. At least this way you wouldn't have to handcode the CMP class, XDoclet would generate it for you. I've done very similar stuff myself for, eg, generating JMS messages on session bean method calls, but in that case, the methods weren't abstract ... that's the real problem with the entity bean attribute methods. I'd say AOP is your best bet. The latest release, DR2, has added the ability to declare interceptors on a per-method basis, although the XDoclet support hasn't quite caught up with that (it will soon, honest :) HTH Andy - Original Message - From: Brian Wallis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 04, 2003 3:28 AM Subject: [JBoss-user] Entity bean Attribute Changed Notifications I need to generate some sort of notification when attributes are changed on certain entity beans. The notifications need to contain the identity of the authenticated user and the old and new value of the attribute (or just the new value would be OK). (I'm running 3.0.7 jboss) I'm not sure how I can do this. We are generally using value objects to set the values in the entity bean so more than one attribute may change at a time and we are using xdoclet to generate the various interfaces and support classes. We may be able to hand code the xxxCMP class that is currently generated from the bean class and add the functionality to the setValue method(s) but that gives me another file to maintain which I'd rather be generating. It also means I miss direct calls to the setXxxAttr() methods. I could use triggers or some other database centric mechanism but would rather not (not portable, more to maintain and break). Does anyone know if this is supported by the platform in any form or if xdoclet can be coerced into generating the required code? Using aspects could do it very neatly by wrapping each setter of the entity beans in an aspect that reads the old value, calls the setter and then generates the notification for me. I could do this with aspectJ but I'm not sure about the new 4.0 jboss aspects. any suggestions welcome. thanks, brian wallis... --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] doing xml-rpc with JBoss
Hi all, happy July 4th to all US JBoss users. Question is simple : is it possible to use xml-rpc with JBoss ? (calling Session beans methods using xml-rpc) If it is possible, what do I need to implement it and where can I find example (docs, DDs, sample source code ...) thanks, ionel --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] [JBoss-user]Container Transacted MDB ?
The only valid transaction settings for an MDB are requires and not supported. Change requires new to requires and see what happens. I'm surprised this is not picked up by the bean validator. Rgds, Dan. -- Danny Yates -Original Message- From: Magesh Prabhu [mailto:[EMAIL PROTECTED] Sent: 04 July 2003 11:12 To: jboss-user Subject: [JBoss-user] [JBoss-user]Container Transacted MDB ? Guys, I want my Message Driven Bean under Transaction boundaries. Transaction should start when onMessage() call is received. Here's my deployment descriptor which says my MDB is ContainerTransacted and It requires a New Transaction. message-driven description![CDATA[This is reponsible for prioritising requests and dispatching them accordingly.]]/description ejb-nameQueueDispatcherMDBBean/ejb-name ejb-classcom.pindartech.imageprocessing.manager.queuemanager.QueueDispatch erBean/ejb-class message-selector/message-selector transaction-typeContainer/transaction-type acknowledge-modeAuto-acknowledge/acknowledge-mode message-driven-destination destination-typejavax.jms.Queue/destination-type /message-driven-destination /message-driven container-transaction method ejb-nameQueueDispatcherMDBBean/ejb-name method-name*/method-name /method trans-attributeRequiresNew/trans-attribute /container-transaction This MDB calls an helper class which inturn calls a bunch of Entity Beans and updates the database. In Exceptional scenario when I want to rollback the whole Transaction, I use this.context.setRollbackOnly(); public void onMessage(javax.jms.Message message) { try { ... do the business } catch(Exception e) { this.context.setRollbackOnly(); } } When Exception occours, I get a message saying setRollbackOnly() must be called only from a Transacted Bean. Why does the container think that my MDB is not Container Transacted. Please advice me If I'm missing out on anything. [ERROR] - [LogInterceptor].handleException() RuntimeException: java.lang.IllegalStateException: setRollbackOnly must only be called in the context of a transaction (EJB 2.0 - 15.5.1) at org.jboss.ejb.MessageDrivenEnterpriseContext$MessageDrivenContextImpl.setRol lbackOnly(MessageDrivenEnterpriseContext.java:214) at com.pindartech.imageprocessing.manager.queuemanager.QueueDispatcherBean.onMe ssage(QueueDispatcherBean.java:139) ... Thanks in advance, Magesh ** This email and its attachments are intended for the above named only and may be confidential. If they have come to you in error, you must take no action based on them, nor must you copy or show them to anyone; please reply to this email and highlight the error. Security Warning: Please note that this email has been created in the knowledge that the internet email is not a 100% secure communications medium. We advise that you understand and observe this lack of security when emailing us. Viruses: Although we have taken steps to ensure that this email and attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free. If you have received this email in error please notify: [EMAIL PROTECTED] ** --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority. _
AW: [JBoss-user] doing xml-rpc with JBoss
You can do it using jax-rpc and SOAP. See jboss.net module. CGJ -Ursprüngliche Nachricht- Von: Ionel Gardais [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 4. Juli 2003 11:40 An: [EMAIL PROTECTED] Betreff: [JBoss-user] doing xml-rpc with JBoss Hi all, happy July 4th to all US JBoss users. Question is simple : is it possible to use xml-rpc with JBoss ? (calling Session beans methods using xml-rpc) If it is possible, what do I need to implement it and where can I find example (docs, DDs, sample source code ...) thanks, ionel --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_06 1203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ### This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. For more information, connect to http://www.F-Secure.com/ --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] [JBoss-user]Container Transacted MDB ?
MDBs can only be Required or NotSupported Adrian Brock Director of Support Back Office JBoss Group, LLC -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Magesh Prabhu Sent: 04 July 2003 11:12 To: jboss-user Subject: [JBoss-user] [JBoss-user]Container Transacted MDB ? Guys, I want my Message Driven Bean under Transaction boundaries. Transaction should start when onMessage() call is received. Here's my deployment descriptor which says my MDB is ContainerTransacted and It requires a New Transaction. message-driven description![CDATA[This is reponsible for prioritising requests and dispatching them accordingly.]]/description ejb-nameQueueDispatcherMDBBean/ejb-name ejb-classcom.pindartech.imageprocessing.manager.queuemanager .QueueDispatcherBean/ejb-class message-selector/message-selector transaction-typeContainer/transaction-type acknowledge-modeAuto-acknowledge/acknowledge-mode message-driven-destination destination-typejavax.jms.Queue/destination-type /message-driven-destination /message-driven container-transaction method ejb-nameQueueDispatcherMDBBean/ejb-name method-name*/method-name /method trans-attributeRequiresNew/trans-attribute /container-transaction This MDB calls an helper class which inturn calls a bunch of Entity Beans and updates the database. In Exceptional scenario when I want to rollback the whole Transaction, I use this.context.setRollbackOnly(); public void onMessage(javax.jms.Message message) { try { ... do the business } catch(Exception e) { this.context.setRollbackOnly(); } } When Exception occours, I get a message saying setRollbackOnly() must be called only from a Transacted Bean. Why does the container think that my MDB is not Container Transacted. Please advice me If I'm missing out on anything. [ERROR] - [LogInterceptor].handleException() RuntimeException: java.lang.IllegalStateException: setRollbackOnly must only be called in the context of a transaction (EJB 2.0 - 15.5.1) at org.jboss.ejb.MessageDrivenEnterpriseContext$MessageDrivenCont extImpl.setRollbackOnly(MessageDrivenEnterpriseContext.java:214) at com.pindartech.imageprocessing.manager.queuemanager.QueueDispa tcherBean.onMessage(QueueDispatcherBean.java:139) ... Thanks in advance, Magesh ** This email and its attachments are intended for the above named only and may be confidential. If they have come to you in error, you must take no action based on them, nor must you copy or show them to anyone; please reply to this email and highlight the error. Security Warning: Please note that this email has been created in the knowledge that the internet email is not a 100% secure communications medium. We advise that you understand and observe this lack of security when emailing us. Viruses: Although we have taken steps to ensure that this email and attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free. If you have received this email in error please notify: [EMAIL PROTECTED] ** --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_06 1203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Castor, can I remove it?
Castor is not used by JBoss so this file can be removed and the jar is being removed from the dists since it is not used. -- Scott Stark Chief Technology Officer JBoss Group, LLC Brian Wallis wrote: Is castor used in jboss (3.0.7 and 3.2.x)? We have removed the jar and it seems to start and run OK, but it would be nice to know that this won't cause problems A quick grep of the 3.0.7 source finds usages in org.jboss.jdo under the varia directory. If I am not using JDOs at all this shouldn't affect me should it? Reason to remove is to replace it with a later version. thanks, brian wallis... --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JMS exception in Web Start application
Patches should be submitted to sourceforge: https://sourceforge.net/tracker/?group_id=22866atid=376687 -- Scott Stark Chief Technology Officer JBoss Group, LLC Anthony Mowers wrote: Hi All, I get an exception when trying to run a JMS subscriber from within a java app launched via Web Start. It appears the authentication for the JMS connection fails because the JMS SocketHandler code makes calls to System.getProperty. This sort of operation is not allowed within the security sandbox of a Web Start launched application (or applet). I am tempted to patch the JBOSS JMS code to fix this, but I am wondering if there is a work-around for this other than just increasing the permissions of the java Application. If I do patch the JMS code should I just submit the patch to the JBoss patches on sourceforge? I have included the traceback for the problem. It's a bit hard to track down the problem because it turns out that the NestedThrowable$Util class violates the security sandbox too and so the exception traceback is not complete. Below is the exception trace back: java.lang.ExceptionInInitializerError at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:140) at org.jboss.util.NestedThrowable$Util.class$(NestedThrowable.java:27) at org.jboss.util.NestedThrowable$Util.clinit(NestedThrowable.java:101) at org.jboss.mq.SpyJMSException.init(SpyJMSException.java:67) at org.jboss.mq.Connection.authenticate(Connection.java:766) at org.jboss.mq.Connection.init(Connection.java:233) at org.jboss.mq.Connection.init(Connection.java:264) at org.jboss.mq.SpyConnection.init(SpyConnection.java:59) at org.jboss.mq.SpyConnectionFactory.createTopicConnection(SpyConnectionFactory .java:78) at com.nextbus.bustracker.app.JMSConfigurationSubscriber.init(JMSConfiguratio nSubscriber.java:93) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces sorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc torAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:306) at java.lang.Class.newInstance(Class.java:259) at com.nextbus.bustracker.app.Factory.init(Factory.java:51) at com.nextbus.bustracker.app.Main.init(Main.java:22) at com.nextbus.bustracker.app.Main.main(Main.java:42) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sun.javaws.Launcher.executeApplication(Unknown Source) at com.sun.javaws.Launcher.executeMainClass(Unknown Source) at com.sun.javaws.Launcher.continueLaunch(Unknown Source) at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source) at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source) at com.sun.javaws.Launcher.run(Unknown Source) at java.lang.Thread.run(Thread.java:536) Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission org.jboss.util.NestedThrowable.parentTraceEnabled read) at java.security.AccessControlContext.checkPermission(AccessControlContext.java :270) at java.security.AccessController.checkPermission(AccessController.java:401) at java.lang.SecurityManager.checkPermission(SecurityManager.java:542) at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1291) at java.lang.System.getProperty(System.java:611) at org.jboss.util.NestedThrowable$Util.getBoolean(NestedThrowable.java:123) at org.jboss.util.NestedThrowable.clinit(NestedThrowable.java:39) --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBoss SAP DB
hi, has anybody experiences with JBoss and SAP DB? Regards, Rafal --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] DR2 Released
I am afraid that this is really true. I have read about it in the theserverside.com discussion abot JBoss4DR2 discussion. The official argument is that the JBoss group now has a Tomcat5 developer as member and since the mortbay guys moved to CDN the JBG now use Tomcat as default. Sad news. I know that the JBG guys will say: Hey, Jetty is still there so you can still use it. Well, I have to change configuration and so on and so on. But who cares about the user? I am waiting for the CDN release. Hope there will be a branch in CVS for these guys where we can get a JBoss4 maybe without the fancy AOP? But with JBossDO? Or a web-GUI for adminstration (not the human unreadable jmx-console which can only be understood by developers rather than admins)? Well, there is more on the list, but who cares. just my 2 cents - Original Message - From: Hunter Hillegas [EMAIL PROTECTED] To: JBoss User [EMAIL PROTECTED] Sent: Thursday, July 03, 2003 8:43 PM Subject: Re: [JBoss-user] DR2 Released Is this the case? Why was the default servlet engine changed? Was it a technical or business decision? I'd like to know more about this. In our tests Jetty has performed much better than Tomcat. Hunter From: Vladyslav Kosulin [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Thu, 03 Jul 2003 10:12:45 -0400 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] DR2 Released And one more feature: now the default servlet engine is Tomcat. The first outcome of JBoss Group's split? :-( Too bad for me... :(( Vlad --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] [JBoss-user]Container Transacted MDB ?
Thanks again folks, This solved my problem and was a good learning too. Cheers, Magesh On 7/4/03 11:44 AM, Adrian Brock [EMAIL PROTECTED] wrote: MDBs can only be Required or NotSupported Adrian Brock Director of Support Back Office JBoss Group, LLC -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Magesh Prabhu Sent: 04 July 2003 11:12 To: jboss-user Subject: [JBoss-user] [JBoss-user]Container Transacted MDB ? Guys, I want my Message Driven Bean under Transaction boundaries. Transaction should start when onMessage() call is received. Here's my deployment descriptor which says my MDB is ContainerTransacted and It requires a New Transaction. message-driven description![CDATA[This is reponsible for prioritising requests and dispatching them accordingly.]]/description ejb-nameQueueDispatcherMDBBean/ejb-name ejb-classcom.pindartech.imageprocessing.manager.queuemanager .QueueDispatcherBean/ejb-class message-selector/message-selector transaction-typeContainer/transaction-type acknowledge-modeAuto-acknowledge/acknowledge-mode message-driven-destination destination-typejavax.jms.Queue/destination-type /message-driven-destination /message-driven container-transaction method ejb-nameQueueDispatcherMDBBean/ejb-name method-name*/method-name /method trans-attributeRequiresNew/trans-attribute /container-transaction This MDB calls an helper class which inturn calls a bunch of Entity Beans and updates the database. In Exceptional scenario when I want to rollback the whole Transaction, I use this.context.setRollbackOnly(); public void onMessage(javax.jms.Message message) { try { ... do the business } catch(Exception e) { this.context.setRollbackOnly(); } } When Exception occours, I get a message saying setRollbackOnly() must be called only from a Transacted Bean. Why does the container think that my MDB is not Container Transacted. Please advice me If I'm missing out on anything. [ERROR] - [LogInterceptor].handleException() RuntimeException: java.lang.IllegalStateException: setRollbackOnly must only be called in the context of a transaction (EJB 2.0 - 15.5.1) at org.jboss.ejb.MessageDrivenEnterpriseContext$MessageDrivenCont extImpl.setRollbackOnly(MessageDrivenEnterpriseContext.java:214) at com.pindartech.imageprocessing.manager.queuemanager.QueueDispa tcherBean.onMessage(QueueDispatcherBean.java:139) ... Thanks in advance, Magesh ** This email and its attachments are intended for the above named only and may be confidential. If they have come to you in error, you must take no action based on them, nor must you copy or show them to anyone; please reply to this email and highlight the error. Security Warning: Please note that this email has been created in the knowledge that the internet email is not a 100% secure communications medium. We advise that you understand and observe this lack of security when emailing us. Viruses: Although we have taken steps to ensure that this email and attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free. If you have received this email in error please notify: [EMAIL PROTECTED] ** --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_06 1203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
Re: [JBoss-user] JBoss SAP DB
Rafal Kedziorski wrote: hi, has anybody experiences with JBoss and SAP DB? Regards, Rafal --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user yes, i am using Jboss-3.2.1-Tomcat4.1.24 with sapdb regards jani --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] jboss 3.0.8 tomcat bundle
Sorry I did not see this email earlier. The zip package is incorrect while the tgz package was. I have fixed the zip bundle to contain the Tomcat dist. -- Scott Stark Chief Technology Officer JBoss Group, LLC Jure Lodrant wrote: Hi, I downloaded JBoss 3.0.8 - tomcat 4.1.24 package from sourceforge. Only while looking at console output I noticed that it's a Jetty package, no trace of tomcat. Was that intentional? Jure --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Re: Mailman results for JBoss-user
unsubscribe iloveioana * help Help for JBoss-user mailing list: This is email command help for version 2.0.9-sf.net of the Mailman list manager. The following describes commands you can send to get information about and control your subscription to Mailman lists at this site. A command can be in the subject line or in the body of the message. Note that much of the following can also be accomplished via the World Wide Web, at: https://lists.sourceforge.net/lists/listinfo/jboss-user In particular, you can use the Web site to have your password sent to your delivery address. List specific commands (subscribe, who, etc) should be sent to the *-request address for the particular list, e.g. for the 'mailman' list, use '[EMAIL PROTECTED]'. About the descriptions - words in s signify REQUIRED items and words in [] denote OPTIONAL items. Do not include the s or []s when you use the commands. The following commands are valid: subscribe [password] [digest-option] [address=address] Subscribe to the mailing list. Your password must be given to unsubscribe or change your options. When you subscribe to the list, you'll be reminded of your password periodically. 'digest-option' may be either: 'nodigest' or 'digest' (no quotes!) If you wish to subscribe an address other than the address you send this request from, you may specify address=email address (no brackets around the email address, no quotes!) unsubscribe password [address] Unsubscribe from the mailing list. Your password must match the one you gave when you subscribed. If you are trying to unsubscribe from a different address than the one you subscribed from, you may specify it in the 'address' field. who See everyone who is on this mailing list. info View the introductory information for this list. lists See what mailing lists are run by this Mailman server. help This message. set option on|off password Turn on or off list options. Valid options are: ack: Turn this on to receive acknowledgement mail when you send mail to the list. digest: Receive mail from the list bundled together instead of one post at a time. plain: Get plain-text, not MIME-compliant, digests (only if digest is set) nomail: Stop delivering mail. Useful if you plan on taking a short vacation. norcv: Turn this on to NOT receive posts you send to the list. Does not work if digest is set. hide: Conceals your address when people look at who is on this list. options Show the current values of your list options. password oldpassword newpassword Change your list password. end or -- Stop processing commands (good to do if your mailer automatically adds a signature file - it'll save you from a lot of cruft). Commands should be sent to [EMAIL PROTECTED] Questions and concerns for the attention of a person should be sent to [EMAIL PROTECTED] --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
AW: AW: [JBoss-user] doing xml-rpc with JBoss
Yes, jboss.net is the webservice engine of JBoss. CGJ -Ursprüngliche Nachricht- Von: Ionel Gardais [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 4. Juli 2003 14:35 An: [EMAIL PROTECTED] Betreff: Re: AW: [JBoss-user] doing xml-rpc with JBoss Thanks. What about webservices ? is there a way to export session bean's methods and access them by http calls ? thanks, ionel --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_06 1203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ### This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. For more information, connect to http://www.F-Secure.com/ --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss SAP DB
I've used it since about 6 months ago. I had had a lot of problem with sapdb jdbc driver that had caused big memory leaks problems in the application server. Now we're going with postgresql and happy with it. No more daily reboot of the jboss server and life easier. But perhaps now sapdb finally succeded in creating a reliable jdbc driver, I don't know. Bye, V --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] StreamCorruptedException after update from jdk 1.3.0 to jdk 1.4.1_02
Hello, Environment: jboss.2.4.10 Tomcat 3.3.1 in sepearte JVM Apache 2.46 Windows2000 JDK1.4.1_02 Our Application (Applets accessing stateful SessionBeans) worked fine using jdk 1.3.0. Now we updated to jdk 1.4.1_02 and get a StreamCorruptedException in the browser when reading data from a SessionBean. In the jboss logfile all seems to be ok, no Exception occured. Caused by: java.io.StreamCorruptedException at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1301) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324) at java.rmi.MarshalledObject.get(MarshalledObject.java:135) at org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.invokeContainer(GenericPr oxy.java:357) at org.jboss.ejb.plugins.jrmp.interfaces.StatefulSessionProxy.invoke(StatefulSe ssionProxy.java:136) ... 29 more Any idea ? Annegret java.lang.reflect.UndeclaredThrowableException at $Proxy5.readObjectData(Unknown Source) at com.tenovis.oam.i33.browser.mmomethodsproxy.MultiCompanyMmoMethodsProxy.read ObjectData(MultiCompanyMmoMethodsProxy.java:99) at com.tenovis.oam.i33.browser.mmomanager.MultiCompanyMmoManager.readFromPabx(M ultiCompanyMmoManager.java:138) at com.tenovis.oam.i33.browser.mmoattributefield.MultiCompanyMmoAttributeField. performStartSearch(MultiCompanyMmoAttributeField.java:1963) at com.tenovis.oam.i33.browser.mmoattributefield.MultiCompanyMmoAttributeField. access$300(MultiCompanyMmoAttributeField.java:72) at com.tenovis.oam.i33.browser.mmoattributefield.MultiCompanyMmoAttributeField$ 9.actionPerformed(MultiCompanyMmoAttributeField.java:369) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764) at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButto n.java:1817) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:4 19) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener .java:245) at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:227) at java.awt.Component.processMouseEvent(Component.java:5134) at java.awt.Component.processEvent(Component.java:4931) at java.awt.Container.processEvent(Container.java:1566) at java.awt.Component.dispatchEventImpl(Component.java:3639) at java.awt.Container.dispatchEventImpl(Container.java:1623) at java.awt.Component.dispatchEvent(Component.java:3480) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095) at java.awt.Container.dispatchEventImpl(Container.java:1609) at java.awt.Component.dispatchEvent(Component.java:3480) at java.awt.EventQueue.dispatchEvent(EventQueue.java:450) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja va:197) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java :150) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136) at java.awt.EventDispatchThread.run(EventDispatchThread.java:99) Caused by: java.io.StreamCorruptedException at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1301) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324) at java.rmi.MarshalledObject.get(MarshalledObject.java:135) at org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.invokeContainer(GenericPr oxy.java:357) at org.jboss.ejb.plugins.jrmp.interfaces.StatefulSessionProxy.invoke(StatefulSe ssionProxy.java:136) ... 29 more Annegret Sternagel MDI/ADB TENOVIS GmbH Co. KG Kleyerstrasse 94, 60326 Frankfurt T +49 69 7505 - 3862 F +49 69 7505 - 5 3862 [EMAIL PROTECTED] www.tenovis.com --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now.
Re: [JBoss-user] Renaming a cluster partition
Hi, Thanks! I guess is more efficient to change the Multicast adress, right? Is a problem to change both? I take is not a problem And last issue: I will need to change the autodiscoveryaddress as well: I tried to use from my client the -Djnp.discoveryGroup property to match the changed value in the cluster_service.xml attribute name=AutoDiscoveryAddress230.0.5.4/attribute but it was not working. I was wrong doing the -D option, it must be set in the properties for the JNDI context. Thanks again Simone --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBoss 3.2.1/Firebird Issue
Greetings. I am trying to get XPetstore running on JBoss 3.2.1, against a Firebird database. I am running into some trouble. Specifially, it appears that the ManagedConnectionFactory, jboss.jca.xpetstoreDS is not configured. As a result, it is trying to connect to the Firebird Database using the username of the account that started the Jboss instance. And this is causing bad things to happen when you try to access anything other than the main page. Suggestions/corrections would be appreciated. Thanks, Steve JDK = 1.4.x (I can be more specific if I have to, but there a couple of machines involved, with different JDKs). OS = SuSE Linux 8.2 JBoss = 3.2.1 -- Java/J2EE Developer/Integrator 214-724-7741 jboss3.2.1.tgz Description: GNU Unix tar archive
[JBoss-user] Compile current cvs
I try compile current cvs and get error /u1/jboss/jboss-head/aop/src/main/org/jboss/aop/Advisor.java:11: package gnu.trove does not exist import gnu.trove.TLongObjectHashMap; ^ package gnu.trove doesn't exists ./build.sh clean don't work with error that directory jms doesn't exists regards Haris Peco --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Datasource Problems
Ok Guy Rouillier... I Will stop this discussion, because I think We are talking about different aspects. I Will try to obtain the same behaviour from JBoss DataSource that you have nowadays. Regards Edgar - Original Message - From: Guy Rouillier [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 03, 2003 6:18 PM Subject: Re: [JBoss-user] Datasource Problems Edgar Silva wrote: Roullier... I Can understand you, but you agree to me that is strange? Not really, seems to me to be an apples to oranges comparison. Sure, at a basic level we are all talking about data sources, but the runtime semantics are very different. I don't wanna also get into a protracted discussion here... =) I am Brazilian, then almost all days I am happy...=) But, the enviroment of my application is: WebServices Which I am using Apache Axis, Then I can to use JBoss with TomCat, And uses DBCP from this guy. But, besides this, I will use DataSource to use CMP's. By this trouble, I am asking you about some special configuration using JBoss DataSources, in transaction-services.xml, or something inside dabase-ds.xml, Do you know? Sorry, I don't understand the question. Imagine one Application using a big amount of StoredProcedures, So I could not use EntityBeans, the major possibility is to Use SessionBeans. However , I am worried with this problem. Do You can guarantee me that whether always I close my connections, the Pool will work fine? I doubt you will find any open source project that will guarantee anything. However, I will point out that datasources are one of the most heavily used components in JBoss. If there was a basic connection leak, many people would have encountered it by now (and thus it would have been fixed.) Best Regards Edgar - Original Message - From: Guy Rouillier [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 02, 2003 12:28 AM Subject: Re: [JBoss-user] Datasource Problems Edgar, I haven't used Common-DBCP, but I just downloaded it and quickly read some documentation. I don't want to get into a protracted discussion here, but there are many reasons why a Tomcat-based implementation might not exhibit exhausted connections when JBoss does. For example, JBoss works in a persistent environment. That is, JBoss run continuously, and your client makes intermittent use of the services it provides. Between those uses, things like database pools continue to exist. Things you do in Tomcat, on the other hand, typically have shorter lifetimes. Much of the time, variables exist only for the duration of a request, so once a request is finished, everything gets cleaned up (assuming things are working properly.) There are other options, of course; you can choose to give things session or application lifetimes. One of the difficulties in database pooling in a JSP environment is that there is no place to put a shared pool. At any rate, I provided one suggestion in my last message which may allow you to determine in a JBoss environment if you are indeed leaking connections. Edgar Silva wrote: Hi Roullier, this behavior of the JBoss's DataSource is very strange, because I solved this trouble changing the Datasource from JBoss to TomCat. I Know that TomCat uses Jakarta Commons DBCP, and with this Container I solved all my troubles, when JBoss arrives in a number of connection greater than 200 ,Then JBoss Crashes. This number was defined in XML Configuration. The right behavior from a DataSouce that I Believe is: Make the Connections and after client uses it, this object will be consumed by other client. When I made the deploy of the same application, changing only lookup statement to TomCat Requirements, The Application is working fine now, And in each test I had only of 2 to 6 Connections established. Then I am in doubts about JBoss's Datasources to provide Connection Pool. But, I know that can be my technical problem, however I had been using several other J2EE Containers like Borland, BEA and IBM , And I do not remember of fails like this. I will buy the JBoss Documentation, then who knows I will can understand it better. Because is like a friend talks: The software is free, however the work is not slave. And I hope solve many problems after read some Chapters in JBoss's Documentation. I like too much JBoss, in addition to this I am trying to migrate many projects to JBoss. Because is free, and I Believe in the Project. If you know some article or resource talking about Connection Pooling of Datasouces in JBoss would be cool. I am using JBoss 3.2, Oracle 9.i, in a RedHat 7.2 . Thanks by help friend ... Edgar - Original Message - From: Guy Rouillier [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 6:08 PM Subject: Re: [JBoss-user] Datasource Problems
Re: [JBoss-user] Compile current cvs
Probably, you need to check it out again. I think that JAR was added just in DR2. I have a fresh copy and it compiles fine. alex Friday, July 04, 2003, 11:13:29 PM, snpe snpe wrote: s I try compile current cvs and get error s /u1/jboss/jboss-head/aop/src/main/org/jboss/aop/Advisor.java:11: package gnu.trove does not exist s import gnu.trove.TLongObjectHashMap; s ^ s package gnu.trove doesn't exists s ./build.sh clean s don't work with error that directory jms doesn't exists s regards s Haris Peco --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] CMP persistent field using relationship-field fk column
Hi, I have a cmp question: We have bean that consists entirely of CMP relationship fields. When we xml-encode this entity bean's contents, we simply want the primary key, and the foreign keys. In an effort to avoid loading the related beans, I've added persistent fields that point to the fk-columns. Amazingly, this seems to work. However, after calling a finder and then accessing the persistent fields of each bean that is returned, I see an update called for every bean on the database log. First, is there a less crazy way to directly access the fk value without loading the related bean? Secondly, why are there these unnecessary updates to the db, and is it possible to avoid them? Thanks, fawce --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Is there a maxNewConnections limit set to +-about 20-30 somewhere?!?
The new problem I'm having: Trying to figure out the maximum number of concurrent connections that my server deals with, I'm being able to open more than 20 connections at a time, and less than 30 connections... The strange thing is that this value only applies to the new connections I'm trying to open... For instance, supose I try to start 40 threads and 10 fails to connect. 30 are connected. Now, again with the same 40 threads, I try to do another request. the 40 threads work fine! So, I supose that this second interaction is of 30 already active connections + 10 new connections, so the server does not complain... There doesn't seem to be a magic number... sometimes I get 28 connections ok, sometimes I get about 25.. I tought of checking the http listener configuration.. but I have: New class=org.mortbay.http.SocketListener Set name=MinThreads10/Set Set name=MaxThreads100/Set and this value does not match the cenario I'm having ... I changed the falue for 50/200 and I kept having problems so it's not from there... Any other places to look for? I'm using Jboss 3.0.8 Thank you --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Re: Problem after problem... (Re: http session clustering)
Not to fuel your fire, but it really sounds like poorly written ejb's and jsp's. When you get into that situation there is no magic cluster to save it. Also I don't know the history or details of this story, but... What commit option are you using? Try option A with cache invalidation. Make sure any beans doing selects are deployed read-only. If you are using tomcat, make sure the max proccessors and acceptcount are high enough. Make sure the JVM is getting enough RAM. Try a different JDK. So many things, and I don't know your story, I'm sure you tried all of these, but I hope I maybe helped. Cam Joao Clemente wrote: sorry for replying so late, but here goes: No, my problems are still not solved... And I almost gave up on this... This is my university thesis, and I'm already almost a year late (it should take a year and I've started my research almost two years ago). If this is not finished in the 2 year-time, the thesis will be cancelled by the university. I'm suposed to use JBoss to provide a scalable, fault-tolerant and high-available middleware infra-structure for a j2ee app that is being developed by another person.. another thesis that is being developed at the same time, a kind of a webmail on steroids.. This j2ee application is build on top of a already developed open source webapplication (servlet+jsp). It was redesigned to use EJB's aswell. Then it was expanded with the help of a couple of more external libraries of other independent open-source projects.. So we're talking about a webapp that was redisegned to be a j2ee app, and then glued to some other libs and projects and with some extra code developed here... Put a Ldap connection here, a jabber server there, a mailserver somewhere else and with a bit of luck you get something like this... About 10 months ago, I should had delivered tested results on how the jboss cluster can improve the scalability and fault-tolerance of this application. I'm failing miserably every test I make... day after day I crash into another problem, and I'm unable to get those test results... I'm not saying this is JBoss's fault... No. I've found a couple of bugs that were JBoss and Javagroups related, as you (sacha) can certainly remember. But those were not the reasons I'm failing every time I try... This app sucks. Thats the truth I'm already seeing for a long time ago and it's exactly that that my thesis advisor (togheter with the other theses developer and advisor) is refusing to see.. Sure.. but the app works fine, they say. It's a problem on your side, they say... It's your work to get that thing usable under load, it's what your research is suposed to do, they say.. And, actually, if we use 1 (ONE!!!) client (wich, btw, must be InterntExplorer) , with 1 (A SINGLE ONE!!!) jboss server, and you test it manually... it works.. But, for instance, - The app uses non-serializable objects all over the http session. This ceartainly gives us a hard time getting fault-tolerance (or failover) to work, besides the problems with the load-balancing... - The owner of the original project (the one that was redesigned here to have ejb's besides servlets and jsp's) admitted that it never tought of it to be clustered, and had no ideia of what was to be done for it to be runnable in a cluster... About three or four months ago I started writing java test programs using httpunit to load the app.. I've designed a simple client model that would just do four or five steps in the web app... Simple, right? Then added a threading model so I could have n similar clients accessing the webapp... Again, simple... I decided to test WITHOUT a cluster. So, there as been at least 3 months that I do NOT have a load balancer, i DO NOT have a clustered jboss setup, there is just 1 jboss server and my client application... Results? I'm almost willing to wait 'till the 2 years of my thesis end, my university cancels it, so that I can start something new from the scratch... With NO cluster involved: - with 1 client ,if I run my test case (get hompage, login, check mail, logout) for 6 times, I would get locked. End of story. - with 2 clients, would get about the same results.. - with 4 clients, I would get little more than exceptions... oh, btw, in most of these cenarios, I' would not even be able to use the application manually, as it would enter a cicle redirecting me for the start page (it's a feature of this app: if something goes wrong then redirect to start page)... until I shutted down jboss and started it over (trying to undeploy the app would lock jboss) and no, it does not stop here... after some time, we found out that a singleton object of that j2ee app was unable to be runned concurrently and would cause the exception... gimme some more headaches, and we find out that the locking was due to one of the external libs that were being used that, by some reason, locks under yet to be understood circuntances.. oh, and that lib was now deprecated.. ok, now what? sending
Re: [JBoss-user] Question about CMP entity
Marco I tried your code (adapting it to my project - I changed the key and the package names, substantially) but I found what I think could be a bug. I had the tb_sequence table with the first key set to 10, but the returned value (the one to which I set the primary key) set to 11. I discovered the reason in the Session bean getNextId method, as once you retrieve the value then you add 1: public Integer getNextId(String sequenceName) throws FinderException, SequenceException, CreateException { //Get cached block Integer nextId = (Integer) blocks.get(sequenceName); if (nextId == null || ((nextId.intValue() % BLOCK_SIZE) == 0)) { nextId = getNextBlockStart(sequenceName); } //This is the part of code - Marco Tedone nextId = new Integer(nextId.intValue() + 1); blocks.put(sequenceName, nextId); return nextId; } So, I updated the line nextId = new Integer(nextId.intValue() + 1); with nextId = new Integer(nextId.intValue);and everything worked fine. Marco - Original Message - From: Marco Garbelini To: [EMAIL PROTECTED] Sent: Thursday, June 26, 2003 12:30 AM Subject: Re: [JBoss-user] Question about CMP entity - Original Message - From: "Marco Tedone" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 8:19 PM Subject: Re: [JBoss-user] Question about CMP entity Could you please forward some example? You can use thissame bean to create ids for any entity, or create a sequence bean for each entity to get some performance boost. Observe the for (;;) loop and the TransactionRolledbackException catch, that´s the tricky part. there you go: -- package com.ped.server.util.sequence; import javax.ejb.EntityBean;import javax.ejb.EntityContext;import javax.ejb.CreateException; import org.jboss.logging.Logger; /*** Class to implement Sequence entity* @ejb.bean* cmp-version = "2.x"* name = "Sequence"* local-jndi-name = "ped/server/SequenceLocal"* type = "CMP"* view-type = "local"* @ejb.persistence* table-name="tb_sequence"* @ejb.pk* class = "com.ped.server.util.sequence.SequencePk" */public abstract class SequenceBean implements EntityBean { private EntityContext context; //EJB context private static final Logger logger = Logger.getLogger(SequenceBean.class); // EJB Default Methods - /** * */ public void setEntityContext(EntityContext context) { this.context = context; } /** * */ public void ejbActivate() { } /** * */ public void ejbPassivate() { } /** * * @param sequenceName * @return * @throws CreateException * @ejb.create-method */ public SequencePk ejbCreate(String sequenceName) throws CreateException { setSequenceName(sequenceName); setCurrentKeyValue(0); //Set initial value return null; } /** * * @param sequenceName * @throws CreateException */ public void ejbPostCreate(String sequenceName) throws CreateException { } /** * */ public void ejbRemove() { } /** * */ public void unsetEntityContext() { context = null; } /** * */ public void ejbLoad() { } /** * */ public void ejbStore() { } /** * * @param blockSize * @return * @ejb.interface-method * view-type = "local" */ public int getNextBlockFirstKey(int blockSize) { int nextCounter = getCurrentKeyValue(); nextCounter += blockSize; setCurrentKeyValue(nextCounter); return nextCounter; } //CMP methods -- /** * Get sequene name * @ejb.persistent-field * @ejb.pk-field * @ejb.persistence * column-name="sequencename" * @ejb.interface-method * view-type = "local" */ public abstract String getSequenceName(); /** * * @param sequenceName */ public abstract void setSequenceName(String sequenceName); /** * @ejb.persistent-field * @ejb.persistence * column-name="currentkey" * @ejb.interface-method * view-type = "local" * @return */ public abstract int getCurrentKeyValue(); /** * * @param currentKeyValue * @ejb.interface-method * view-type = "local" */ public abstract void setCurrentKeyValue(int currentKeyValue); } package com.ped.server.util.sequence; import java.util.HashMap; import javax.ejb.CreateException;import javax.ejb.FinderException;import javax.ejb.SessionBean;import javax.ejb.SessionContext;import javax.naming.InitialContext;import javax.naming.NamingException;import javax.transaction.TransactionRolledbackException; import org.jboss.logging.Logger; /*** Implements a facade to obtain primary keys*
Re: [JBoss-user] Compile current cvs
I checkout jboss-head more times.Where is trove.jar (which modul) ? Sourceforge cvs is very slow for last time, I don't know why Thanks Haris Peco On Friday 04 July 2003 06:24 pm, Alexey Loubyansky wrote: Probably, you need to check it out again. I think that JAR was added just in DR2. I have a fresh copy and it compiles fine. alex Friday, July 04, 2003, 11:13:29 PM, snpe snpe wrote: s I try compile current cvs and get error s /u1/jboss/jboss-head/aop/src/main/org/jboss/aop/Advisor.java:11: package gnu.trove does not exist s import gnu.trove.TLongObjectHashMap; s ^ s package gnu.trove doesn't exists s ./build.sh clean s don't work with error that directory jms doesn't exists s regards s Haris Peco --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user