Re: [JBoss-user] jboss-web.xml?
I guess, the purpose of the ejb-local- ref element is to link an EJB referred to in the servlet code to an EJB defined elsewhere. If the EJB is defined in the same EAR, you need to specify its JNDI name using an ejb-link element in the web.xml file. This is according to the J2EE 3.0 specs, which you might want to consult. If the EJB is defined in some other EAR or WAR or EJB-JAR, you need to specify its JNDI name using an ejb-ref element in the jboss-web.xml file. This is according to the JBoss Admin and Development book, which you might want to consult as well. Both references work only if both the referred EJB and the referencing component are deployed in one JVM (modulo clustering). So this serves as an example of JNDI names referring to objects in one JVM. By the way, this is true in JBoss conventions with all names starting with "java:". --- 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/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Parallel thread performance: a visual aid
We had another good question about performance comparisons with regard to our study. As we have maintained, we have not attempted to produce a head to head comparison. JVMs execute code differently and we wanted to be free of such direct comparisons. We were more interested in the parallel performance characteristics relative to an internal reference. There are clearly two boundaries of performance - the ideal case where n tasks executed by n parallel CPUs complete in the same time as 1 task on 1 CPU; and the parity case where n tasks executed by n parallel CPUs complete in the same time as n tasks on 1 CPU, serially. These provide a frame for gauging observed performance. With this in mind, we have produced a technical note that shows how this visual aid can help someone determine at a glance the meaning of performance results, using our previous results as examples. Although again, we caution that these are simple tests, we hope the examples provide ample illustration of our boundary criteria and demonstrates an isolation from value for value comparison. You can find the document at http://www.amitysolutions.com.au/documents/Threads_aid-technote.pdf. We hope this answers adequately questions raised on direct comparison of performance results. Regards, JonB. smime.p7s Description: S/MIME cryptographic signature
Re: [JBoss-user] Pattern advice for ejb recovery wanted
Thanks for answering Richard. These are statefull session beans, there is no transaction involved (well, not that I know of) - Original Message - From: "Richard Katz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 01, 2003 11:38 PM Subject: Re: [JBoss-user] Pattern advice for ejb recovery wanted > Hello Joao, > > Are you using demarcation and saving the transaction state with separate containers? > > > ---Original Message--- > From: Joao Clemente <[EMAIL PROTECTED]> > Sent: 08/01/03 01:11 PM > To: [EMAIL PROTECTED] > Subject: [JBoss-user] Pattern advice for ejb recovery wanted > > > > > Well, I think I would like some feedback on how are the real > implementations > of failover recovery code out there. > > We though of three approaches: > 1 - use ejbActivate: The method would see if the ojbect is in a > non-consistent state and would revover if necessary. > 2 - intercept every method with a initial test: Each method would start > with "if recoveryNeeded() then recover" > 3 - wrap a transient variable with a getter method that would recover > that > variable. > getAVariable() { > if (aVariable==null) recover(); > return aVariable > } > > We still think that (1) is the best choice, but we had problem using it. > Our > ejb's have references for each other and they get each other variables > when > recovering so we would get locked while using ejbActivate. > > I think I can describe the problem like this: With 2 ejb's, where both > need > transient values that are found in the other, and where a client can start > calling either one, we have: > > EJB1 { > getValue2(); > businessMethod1(); // calls businessMethod2() > } > EJB2 { > transient value2; > recover(); // needs to get the value that is provided by EJB1: > EJB1.getValue2(); > businessMethod2(); // manipulates value2 > } > > In a failover situation, if I have a call to EJB1.businessMethod1(), what > is the pattern that allows to recover value2 ? > > > > > -- > Joao Clemente - jpcl at rnl ist utl pt > > > > --- > 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/psa0013ave/direct;at.aspnet_072303_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/psa0013ave/direct;at.aspnet_072303_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/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Pattern advice for ejb recovery wanted
Hello Joao, Are you using demarcation and saving the transaction state with separate containers? Regards, Rich Katz ---Original Message--- From: Joao Clemente <[EMAIL PROTECTED]> Sent: 08/01/03 01:11 PM To: [EMAIL PROTECTED] Subject: [JBoss-user] Pattern advice for ejb recovery wanted > > Well, I think I would like some feedback on how are the real implementations of failover recovery code out there. We though of three approaches: 1 - use ejbActivate: The method would see if the ojbect is in a non-consistent state and would revover if necessary. 2 - intercept every method with a initial test: Each method would start with "if recoveryNeeded() then recover" 3 - wrap a transient variable with a getter method that would recover that variable. getAVariable() { if (aVariable==null) recover(); return aVariable } We still think that (1) is the best choice, but we had problem using it. Our ejb's have references for each other and they get each other variables when recovering so we would get locked while using ejbActivate. I think I can describe the problem like this: With 2 ejb's, where both need transient values that are found in the other, and where a client can start calling either one, we have: EJB1 { getValue2(); businessMethod1(); // calls businessMethod2() } EJB2 { transient value2; recover(); // needs to get the value that is provided by EJB1: EJB1.getValue2(); businessMethod2(); // manipulates value2 } In a failover situation, if I have a call to EJB1.businessMethod1(), what is the pattern that allows to recover value2 ? -- Joao Clemente - jpcl at rnl ist utl pt --- 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/psa0013ave/direct;at.aspnet_072303_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/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] dynamic jms queues or bean polling
Hi, I have java GUI clients which connect to a clustered JBoss server environment via JMS. So far I was using JMS topics to broadcast certain message to a topic all clients where subscribed to. This turned out to be a great waste of bandwidth because most message are only relevant for a small subset of clients. So I thought about it and came up with two possibilities to address this issue: #1 Because of the pub/sub nature of topics I thought that possibly point-to-point message queues are better suited for my problem. I want to be able to publish messages from a MBean on the server side to specific clients. Because I need one queue per client and I don't know how many clients will log into my system. I think I will need to be able to dynamically created queues. I briefly looked into temporary queues but the API said that one can only use them within the same queue connection, which makes them unusable for me. I know that queues are just MBeans so I thought of creating them through a bean call and returning the unique JNDI name to the client which would look the Queue up and be able to subscribe. I might also have to think of something in case the JMS node in the cluster dies and dynamically recreate the queues. #2 Poll the app servers a few times a minute using ordinary bean calls and forgetting about JMS. Disadvantage is that I will have a possibly bigger latency until the client will get the information than it would if I would use JMS. Waste some bandwidth for unnecessary bean calls. Any feedback and alternative ideas are welcome. Regards, Sebastian --- 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/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] ejbActivate() and concurrent calls on stateful beans
Probably, but the deadlock thread dump is needed to be sure. -- Scott Stark Chief Technology Officer JBoss Group, LLC Joao Clemente wrote: I'm trying to use the following pattern to recover my ejb's after a failover: Each EJB checks the need for recovery inside "ejbActivate()". If there is a need to recover, it eventually calls another EJB to get some value. I'm facing a deadlock situation here where I believe that it should appear a "concurrent calls on stateful beans" exception instead: EJB1 activates. He needs to recover and needs to call ejb2 to have a certain value. EJB2 is passivated so EJB2 activates. He also needs to recover and needs a value that is in ejb1. I find a deadlock occuring here, where I was expecting to obtain an exception ("concurrent calls on stateful beans"). Using this pattern with methods other than ejbActivate we get that exception, so shouldn't it occur here aswell? ejb1 { ejbActivate() { ejb2.someMethod() } } ejb2 { ejbActivate() { ejb1.someMethod() } } --- 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/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] ejbActivate locks when it should throw "no concurrent calls on stateful beans"
Ok. I've read the spec and I see no reason why interlaced business-method calls triggered by ejbActivate()'s should not throw the referred exception. Using jboss 3.0.8 it locks silently. -- Joao Clemente - jpcl at rnl ist utl pt --- 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/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Pattern advice for ejb recovery wanted
Well, I think I would like some feedback on how are the real implementations of failover recovery code out there. We though of three approaches: 1 - use ejbActivate: The method would see if the ojbect is in a non-consistent state and would revover if necessary. 2 - intercept every method with a initial test: Each method would start with "if recoveryNeeded() then recover" 3 - wrap a transient variable with a getter method that would recover that variable. getAVariable() { if (aVariable==null) recover(); return aVariable } We still think that (1) is the best choice, but we had problem using it. Our ejb's have references for each other and they get each other variables when recovering so we would get locked while using ejbActivate. I think I can describe the problem like this: With 2 ejb's, where both need transient values that are found in the other, and where a client can start calling either one, we have: EJB1 { getValue2(); businessMethod1(); // calls businessMethod2() } EJB2 { transient value2; recover(); // needs to get the value that is provided by EJB1: EJB1.getValue2(); businessMethod2(); // manipulates value2 } In a failover situation, if I have a call to EJB1.businessMethod1(), what is the pattern that allows to recover value2 ? -- Joao Clemente - jpcl at rnl ist utl pt --- 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/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] ejbActivate() and concurrent calls on stateful beans
I'm trying to use the following pattern to recover my ejb's after a failover: Each EJB checks the need for recovery inside "ejbActivate()". If there is a need to recover, it eventually calls another EJB to get some value. I'm facing a deadlock situation here where I believe that it should appear a "concurrent calls on stateful beans" exception instead: EJB1 activates. He needs to recover and needs to call ejb2 to have a certain value. EJB2 is passivated so EJB2 activates. He also needs to recover and needs a value that is in ejb1. I find a deadlock occuring here, where I was expecting to obtain an exception ("concurrent calls on stateful beans"). Using this pattern with methods other than ejbActivate we get that exception, so shouldn't it occur here aswell? ejb1 { ejbActivate() { ejb2.someMethod() } } ejb2 { ejbActivate() { ejb1.someMethod() } } -- Joao Clemente - jpcl at rnl ist utl pt --- 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/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Register & Login User In One Step
Just send the authentication credentials through a redirect like: response.sendRedirect(response.encodeRedirectURL("j_security_check?" + J_USER_NAME + "=" + userName + "&" + J_PASSWORD + "=" + password)); Mike On Fri, 2003-08-01 at 10:42, James Ward wrote: > Erik, > Thanks for the response. I am just not sure how to do this with form > based auth and the j_security_check stuff. Any help would be greatly > appreciated. > > -James > > > On Fri, 2003-08-01 at 09:56, Erik Price wrote: > > James Ward wrote: > > > Has anyone figured out a cool way with JBoss and JAAS to make it so that > > > when a user registers on a web page (ie. creates an account) they get > > > automatically logged in? > > > > Assuming you have a servlet, or servlet-like class where you receive the > > HTTP request that creates the new account (such as a Struts Action), why > > not just include a redirect at the end of the class that auto-submits > > the login using the newly-created username/password? > > > > > > Erik > > > > > > > > --- > > 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/psa0013ave/direct;at.aspnet_072303_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/psa0013ave/direct;at.aspnet_072303_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/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] ScanMail Message: To Recipient virus found or matched file blocking setting.
ScanMail for Microsoft Exchange has taken action on the message, please refer to the contents of this message for further details. Sender = [EMAIL PROTECTED] Recipient(s) = [EMAIL PROTECTED]; Subject = [JBoss-user] your account uanuikoi Scanning Time = 08/01/2003 15:25:51 Engine/Pattern = 6.510-1002/597 Action on message: The attachment message.zip contained WORM_MIMAIL.A virus. ScanMail has taken the Moved action. The attachment was moved to E:\Program Files\Trend\Smex\Virus\message3f2abebfe4.zip_. Warning :Virus was stripped from message. --- 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/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [MailServer Notification] To Recipient a virus was found and action taken.
Title: [MailServer Notification] To Recipient a virus was found and action taken. ScanMail for Microsoft Exchange took action on the message. The message details were: Sender = [EMAIL PROTECTED] Recipient(s) = [EMAIL PROTECTED]; Subject = [JBoss-user] your account uanuikoi Scanning time = 08/01/2003 19:23:11 Engine/Pattern = 6.510-1002/597 Action taken on message: The attachment message.zip contained WORM_MIMAIL.A virus. ScanMail took the action: Deleted. Warning to recipient. ScanMail detected a virus in an email attachment sent from [EMAIL PROTECTED] at 08/01/2003 07:23 PM with the subject [JBoss-user] your account uanuikoi. For more information contact [EMAIL PROTECTED]
Re: [JBoss-user] Register & Login User In One Step
I have not done this yet, but it was a feature that I've been considering adding to my application. Here is a bookmark that I had made quite some time ago when I did some googling for the topic. http://raibledesigns.com/training/index.jsp?topic=rememberMe Maybe this will give an idea or two that helps. gary. On Fri, 2003-08-01 at 14:22, Erik Price wrote: > James Ward wrote: > > Erik, > > Thanks for the response. I am just not sure how to do this with form > > based auth and the j_security_check stuff. Any help would be greatly > > appreciated. > > > Hmm > > Well, if form-based auth didn't expect a POST request with the login > credentials, you could just call sendRedirect with GET parameters in a > URL like "server.com/j_security_check?J_USERNAME=jward&J_PASSWORD=secret". > > The only way I can think of doing it would be kind of an ugly hack, but > it might work. You can open a socket directly connecting to the server > and hand-create a string-based HTTP POST request yourself by typing in > the headers, followed by two newlines, followed by > "J_USERNAME=jward&J_PASSWORD=secret". > > The problem is that I don't know how you would capture the response -- > in fact, I don't this would work after all. It would submit the POST > request but the browser wouldn't be updated that it is now privileged to > access the protected resources. So I don't know if it's possible using > CMA after all... I take it all back. > > > Apologies, > > Erik > > > > --- > 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/psa0013ave/direct;at.aspnet_072303_01/01 > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user -- Gary S. Cuozzo <[EMAIL PROTECTED]> Innovation Software Group, LLC --- 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/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Antigen found FILE FILTER= message.zip file
Antigen for Exchange found message.zip matching FILE FILTER= message.zip file filter. The file is currently Removed. The message, "[JBoss-user] your account uanuikoi", was sent from [EMAIL PROTECTED] and was discovered in IMC Queues\Inbound located at BellHowell/PSC Richfield/RFEXC1. --- 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/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [ANN] Pixory beta-3.1
Pixory is a freeware "personal image server" that comes package ready for hot-deploy into jboss. The application can be found -> http://www.pixory.org WHATSNEW in this release: Pixory Beta.3.0 -> Pixory Beta.3.1 (07/31/03) Fixed bugs: * "ignore directories" not working. * Can't paste into the "use other" date text field in the Photo Info Editor. Date Picker is difficult to use. * After deleting or moving albums on the filesystem , album attributes might not update in the database. Produces 'SQLException, violation of unique constraint SYS_IDX2' in the logs. * Changing Album "flow" on an empty Album (Album without any pictures) results in an application exception-- ArrayIndexOutOfBoundsException in logs. Other changes: * Photos can now be marked "private". Private photos appear in the Lightbox with a turquoise background, as opposed to the white background for non-private photos. Private photos are completely invisible to Album "Viewers", that is they never show up in Album Pages, Album Indexes or Album Archive downloads. * Albums can now have a "display name" different from the album directory name. The display name appears everywhere in the Viewer portion of the application. It's set in the Album Attributes section and defaults to the name of the album directory. * Albums can now be set to "display filenames". A filename for each photo will appear in place of the caption if no caption has been set by the user. This filename will appear on the Album Index and individual Album Pages. * The Album Index page now always display page numbers. * There is a new procedure for handling lost passwords. Please see the FAQ for details. joe panico -- Open WebMail Project (http://openwebmail.org) --- 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/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Blocked File Attachment
An Internet e-mail message was sent to you from an outside source that contained an prohibited file type, but was removed for security purposes. The message header is attached below. If you must use e-mail to receive business-related .exe files, there is a workaround. Please inform the sender of the Internet Message to create a password protected zip file as explained in the steps below. For assistance with this procedure, please contact your local helpdesk. 1. Go to Start...Programs...WinZip 2. Click [New] 3. For "File name", type desired file name for the new compressed file 4. For "Create In". browse to desired location to save newly compressed file 5. Click to check box next to "Add Dialog" 6. Click [OK] 7. For "Add from", browse to location of file(s) to compress 8. Select file(s) to be compressed 9. Click [Password] 9a. For "Password", type desired password 9b. Click [OK] 9c. For "Please reenter your password", retype your password 9d. Click [OK] 10. Click [Add] Sender: <[EMAIL PROTECTED]> Date: 08/01/2003, 03:04:30 PM Attachments: message.zip
[JBoss-user] [MailServer Notification] To Recipient a virus was found and action taken.
ScanMail for Microsoft Exchange took action on the message. The message details were: Sender = [EMAIL PROTECTED] Recipient(s) = [EMAIL PROTECTED]; Subject = [JBoss-user] your account uanuikoi Scanning time = 08/01/2003 20:56:07 Engine/Pattern = 6.510-1002/597 Action taken on message: The attachment message.zip contained WORM_MIMAIL.A virus. ScanMail took the action: Deleted. ScanMail detected a virus in an enail attachment during real-time scan: 08/01/2003 >From [EMAIL PROTECTED] to [EMAIL PROTECTED]; at 08:56 PM in jboss-usr: [JBoss-user] your account uanuikoi message.zip/Deleted --- 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/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] your account uanuikoi
Hello there, I would like to inform you about important information regarding your email address. This email address will be expiring. Please read attachment for details. --- Best regards, Administrator uanuikoi message.zip Description: Zip compressed data
Re: [JBoss-user] Register & Login User In One Step
James Ward wrote: Erik, Thanks for the response. I am just not sure how to do this with form based auth and the j_security_check stuff. Any help would be greatly appreciated. Hmm Well, if form-based auth didn't expect a POST request with the login credentials, you could just call sendRedirect with GET parameters in a URL like "server.com/j_security_check?J_USERNAME=jward&J_PASSWORD=secret". The only way I can think of doing it would be kind of an ugly hack, but it might work. You can open a socket directly connecting to the server and hand-create a string-based HTTP POST request yourself by typing in the headers, followed by two newlines, followed by "J_USERNAME=jward&J_PASSWORD=secret". The problem is that I don't know how you would capture the response -- in fact, I don't this would work after all. It would submit the POST request but the browser wouldn't be updated that it is now privileged to access the protected resources. So I don't know if it's possible using CMA after all... I take it all back. Apologies, Erik --- 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/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] CMR remove results in UPDATE? (which fails because of NOT NULLc onstraint)
Hello, I have defined a bi-directional one-to-many CMR between two EJBs, PerformancePlan and AssignedPerformanceElement. In my database, the FK field (PerformancePlanID) in AssignedPerformanceElement is defined as NOT NULLable. In my code, I am trying to remove an AssignedPerformanceElement from a PerformancePlan, and I make my ValueObject (from XDoclet) to reflect this. When I set this value object on the PerformancePlan, it attempts to call remove() on a AssignedPerformanceElement instance. In the console log, I get the following: 11:40:01,090 DEBUG [AssignedPerformanceElement] Executing SQL: UPDATE ASSIGNEDPERFORMANCEELEMENT SET performancePlanID=? WHERE assignedPerformanceElementID=? 11:40:01,131 INFO [STDOUT] p6spy - 1059752401131|41|3|statement|UPDATE ASSIGNEDPERFORMANCEELEMENT SET performancePlanID=? WHERE assignedPerformanceElementID=?|UPDATE ASSIGNEDPERFORMANCEELEMENT SET performancePlanID='' WHERE assignedPerformanceElementID='170' 11:40:01,211 ERROR [LogInterceptor] TransactionRolledbackLocalException, causedBy: java.sql.SQLException: ORA-01407: cannot update ("HR"."ASSIGNEDPERFORMANCEELEMENT"."PERFORMANCEPLANID") to NULL First, why is JBoss trying to UPDATE to remove the AssignedPerformanceElement? Shouldn't this be a DELETE instead? What am I missing? Is there anything in the documentation (I bought the whole subscription set! I highly recommend it to anyone who hasnt bought it yet.) Thanks Troy Poppe --- 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/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Register & Login User In One Step
Erik, Thanks for the response. I am just not sure how to do this with form based auth and the j_security_check stuff. Any help would be greatly appreciated. -James On Fri, 2003-08-01 at 09:56, Erik Price wrote: > James Ward wrote: > > Has anyone figured out a cool way with JBoss and JAAS to make it so that > > when a user registers on a web page (ie. creates an account) they get > > automatically logged in? > > Assuming you have a servlet, or servlet-like class where you receive the > HTTP request that creates the new account (such as a Struts Action), why > not just include a redirect at the end of the class that auto-submits > the login using the newly-created username/password? > > > Erik > > > > --- > 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/psa0013ave/direct;at.aspnet_072303_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/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] JBoss recompiles Jsps every time I hit the page
Somewhere in JBoss's tmp dir. -James On Fri, 2003-08-01 at 10:22, Brian McSweeney wrote: > Hey James, > Thanks for the help again. I've been trying to look for the compiled > jsps. > Can you tell me where JBoss puts the compiled jsps? > > Cheers, > Brian > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of James Ward > Sent: 01 August 2003 16:31 > To: [EMAIL PROTECTED] > Subject: RE: [JBoss-user] JBoss recompiles Jsps every time I hit the > page > > Brian, > Hmmm. Strange. Your files get time stamped no matter what. So, I would > check the time stamp on the compile jsp's and on your actual jsp's. > Just to confirm that that's not the problem. > If the timestamp on your compiled jsp is before the timestamp on your > actual jsp, then you will have problems. If not, it's something else. > > -James > > > On Fri, 2003-08-01 at 09:03, Brian McSweeney wrote: > > Hey James, > > Thanks very much for that. I understand what you mean, but seeing as > > I'm creating the ear on the same machine as I'm running JBoss I don't > > see how that could be happening. I don't even use a timestamp in > > building > > my ear/war. Perhaps I should! > > > > Thanks for the suggestion though, > > Brian > > > > > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of James > Ward > > Sent: 01 August 2003 15:40 > > To: [EMAIL PROTECTED] > > Subject: Re: [JBoss-user] JBoss recompiles Jsps every time I hit the > > page > > > > Hey Brian. > > I think JBoss (Jetty or Tomcat) will only compile the jsp if the > > original jsp file date is newer than the compiled class. We had a > > problem where the date on the computer creating the war was in the > > future, so jsp's would recompile every hit. Check that first. > > > > -James > > > > > > On Fri, 2003-08-01 at 06:23, Brian McSweeney wrote: > > > Hi all, > > > > > > > > > > > > I'm using JBoss3.2.1_tomcat4.1.24 > > > > > > > > > > > > I'm working on windows2000 and with jvm 1.4.1_01 > > > > > > > > > > > > My ear contains a war with jsps. My jsps are not precompiled. > > > > > > My understanding is that JBoss compiles the jsps on the first hit, > > > > > > and after that, should not need to compile them again. However, > > > > > > on the task manager every time I hit a jsp again (eg, second, third > > > time etc. ) > > > > > > I see that the javac task is run and takes up most of the processor. > > > > > > > > > > > > Is this an option with JBoss - ie, always recompile jsps? > > > > > > > > > > > > Can I turn this off ? > > > > > > > > > > > > Thanks, > > > > > > Brian > > > > > > > > > > > > > > --- > > 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/psa0013ave/direct;at.aspnet_072303_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/psa0013ave/direct;at.aspnet_072303_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/psa0013ave/direct;at.aspnet_072303_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/psa0013ave/direct;at.aspnet_072303_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 X
RE: Re[6]: [JBoss-user] CMR Problem in 3.2.2RC2
Alex, Success :) I grabbed last nights source and my test case passes - is it possible the fix went in post-rc2? Anyway finally I can finish this upgrade - thanks for you help and patience. gavin -Original Message- From: Alexey Loubyansky [mailto: Sent: Thursday, July 31, 2003 5:02 AM To: '[EMAIL PROTECTED]' Subject: Re[6]: [JBoss-user] CMR Problem in 3.2.2RC2 Hello Gavin, my setup: OS: Win2000 JDK: Sun 1.3.1_05/1.4.1_02 JBoss: 3.2.2RC2/RC3 JDBC: Microsoft SQL Server 2000 Driver for JDBC Service Pack 1 Version 2.2.0029 December 2002 Don't give up, I believe, we'll fix it. alex Wednesday, July 30, 2003, 9:57:17 PM, Gavin Matthews wrote: GM> Alex, GM> Damn wierd - this test case fails everytime for me. This most likely means GM> it's an environmental issue, a config problem or some really dumb user GM> error. Do you know of any config issue that could cause my problem? GM> I'm running against the released 3.2.2RC2 Jetty code base. Did you test GM> against RC2 or the tip of the branch - have there been any post-RC2 checkins GM> that could possibly affect this behaviour? GM> Also to rule out any JDBC driver weirdness I've tried it with the Sprinta GM> driver (our in-house default) and also the microsoft MSSQL JDBC driver. The GM> behaviour is the same for both. Which driver did you use for the test? GM> Which version of the JDK are you using (I'm using JDK_1.4.1_01), could it GM> cause this issue? GM> I'd really appreciate any pointers on possible config settings that could GM> possibly cause the behaviour I'm seeing. For now I'm going to move this GM> setup to a clean machine and start over (just to rule out any environmental GM> issues), and I'll let you know how it goes. GM> thanks, GM> gavin >> -Original Message- >> From: Alexey Loubyansky [mailto:[EMAIL PROTECTED] >> Sent: Wednesday, July 30, 2003 4:35 AM >> To: '[EMAIL PROTECTED]' >> Subject: Re[4]: [JBoss-user] CMR Problem in 3.2.2RC2 >> >> >> Hello Gavin, >> >> I had to change only one thing: java:/DefaultDS to java:/MSSQLDS. >> >> I get the same output for both methods. The difference is only in id >> values: >> >> Bar id through foo: 4 >> Bar id through bars foos: >> Number of foos associated with bar: 1 >> >> Foo id: 4 >> Bar id: 4 >> >> >> alex >> >> Wednesday, July 30, 2003, 3:20:26 AM, Gavin Matthews wrote: >> >> GM> Alex, >> GM> Attached is the standalone case - it exhibits the same >> behaviour (i.e. the >> GM> cmr problem). >> >> GM> It's hacked out of our inhouse environment so the build >> scripts could be >> GM> cleaner, however they should work fine for you. I believe >> all you will need >> GM> to modify some of the paths in cmrtest-config.xml: >> >> GM> >> GM> > GM> value="y:/External/Java/XDocLet/xdoclet-1.2.0-beta3/lib" /> >> GM> > GM> value="y:/External/Java/JBoss/jboss-3.2.2RC2_jetty-4.2.11"/> >> GM> > GM> value="y:/External/Java/commons-logging/commons-logging-1.0.2"/> >> >> GM> Just run ant to build it, the build files should go into >> CmrTest/build. It >> GM> generates 2 files to deploy: >> >> GM> CmrTest/build/ejb/target/cmrtest-ejb.jar - which >> contains the entities & >> GM> session. >> GM> >> CmrTest/build/service/jboss3/target/cmrtest-service-jboss3.sar >> - This is a >> GM> mbean service (it was faster than writing a cactus >> testcase) used to run the >> GM> test case. >> >> GM> Deploy the ejb jar and then the service. Open up the >> service in the JMX >> GM> console and start it. You'll see the service has two >> relevant methods, >> GM> testWithFinder & testWithoutFinder. They both execute the >> same code the only >> GM> difference is that in the middle of testWithFinder a >> finder is called which >> GM> causes a db sync. testWithFinder behaves as expected >> testWithoutFinder is >> GM> the bug I'm seeing. >> >> GM> Let me know if I can provide anything other info or if >> you've problems with >> GM> the test case. >> >> GM> gavin >> >> >> >> >> >> -Original Message- >> >> From: Alexey Loubyansky [mailto:[EMAIL PROTECTED] >> >> Sent: Tuesday, July 29, 2003 12:23 AM >> >> To: '[EMAIL PROTECTED]' >> >> Subject: Re[2]: [JBoss-user] CMR Problem in 3.2.2RC2 >> >> >> >> >> >> Hello Gavin, >> >> >> >> can you provide a testcase? Previously, you posted the source files >> >> and I integrated them into a testcase. Can you send me a >> ready-to-run >> >> testcase so I need just issue 'build run' or like that? >> >> I'll correct it and send it back to you fixed. >> >> >> >> alex >> >> >> >> Tuesday, July 29, 2003, 12:20:04 AM, Gavin Matthews wrote: >> >> >> >> >> >> GM> Alex, >> >> GM> I've double checked everything and it definitely does >> >> not work for me. I'm >> >> GM> not sure what the cause could be unless there's some >> >> weird config issue (I >> >> GM> fixed the known/unknown config - but that d
[JBoss-user] Re: CachedConnectionManager and JMS (3.2.2RC2 v. 3.2.2RC1)
Thanks Scott, closing the QueueSession was the solution -- perhaps once I learn how to read I'll be OK ... well, maybe not. Once again, thanks! Paul Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail! http://login.mail.lycos.com/r/referral?aid=27005 --- 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/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] JBoss recompiles Jsps every time I hit the page
Hi Nathan, Thanks for the tip. I'll give this a go. Brian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nathan Blair Sent: 01 August 2003 17:02 To: '[EMAIL PROTECTED]' Subject: RE: [JBoss-user] JBoss recompiles Jsps every time I hit the page I can't speak to *why* it's actually recompiling each time. However, there are a few mods you can make to your $JBOSS_HOME/server/default/deploy/jbossweb-tomcat.sar/web.xml file, under the jsp servlet section: 1. Add in "development" and "reloading" init-params with values of false. This should make it quit checking to see if it should recompile. 2. Set logVerbosityLevel to "DEBUG". Maybe it will give you some useful information. For more info, see http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jasper-howto.html I haven't done this in JBoss, but have noticed dramatic performance improvements in a standalone tomcat instance. Nate -Original Message- From: James Ward [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 9:31 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] JBoss recompiles Jsps every time I hit the page Brian, Hmmm. Strange. Your files get time stamped no matter what. So, I would check the time stamp on the compile jsp's and on your actual jsp's. Just to confirm that that's not the problem. If the timestamp on your compiled jsp is before the timestamp on your actual jsp, then you will have problems. If not, it's something else. -James On Fri, 2003-08-01 at 09:03, Brian McSweeney wrote: > Hey James, > Thanks very much for that. I understand what you mean, but seeing as > I'm creating the ear on the same machine as I'm running JBoss I don't > see how that could be happening. I don't even use a timestamp in > building > my ear/war. Perhaps I should! > > Thanks for the suggestion though, > Brian > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of James Ward > Sent: 01 August 2003 15:40 > To: [EMAIL PROTECTED] > Subject: Re: [JBoss-user] JBoss recompiles Jsps every time I hit the > page > > Hey Brian. > I think JBoss (Jetty or Tomcat) will only compile the jsp if the > original jsp file date is newer than the compiled class. We had a > problem where the date on the computer creating the war was in the > future, so jsp's would recompile every hit. Check that first. > > -James > > > On Fri, 2003-08-01 at 06:23, Brian McSweeney wrote: > > Hi all, > > > > > > > > I'm using JBoss3.2.1_tomcat4.1.24 > > > > > > > > I'm working on windows2000 and with jvm 1.4.1_01 > > > > > > > > My ear contains a war with jsps. My jsps are not precompiled. > > > > My understanding is that JBoss compiles the jsps on the first hit, > > > > and after that, should not need to compile them again. However, > > > > on the task manager every time I hit a jsp again (eg, second, third > > time etc. ) > > > > I see that the javac task is run and takes up most of the processor. > > > > > > > > Is this an option with JBoss - ie, always recompile jsps? > > > > > > > > Can I turn this off ? > > > > > > > > Thanks, > > > > Brian > > > > > > > > --- > 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/psa0013ave/direct;at.aspnet_072303_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/psa0013ave/direct;at.aspnet_072303_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/psa0013ave/direct;at.aspnet_072303_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/psa0013ave/direct;at.aspnet_072303_01 /01 __
RE: [JBoss-user] JBoss recompiles Jsps every time I hit the page
Hey James, Thanks for the help again. I've been trying to look for the compiled jsps. Can you tell me where JBoss puts the compiled jsps? Cheers, Brian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of James Ward Sent: 01 August 2003 16:31 To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] JBoss recompiles Jsps every time I hit the page Brian, Hmmm. Strange. Your files get time stamped no matter what. So, I would check the time stamp on the compile jsp's and on your actual jsp's. Just to confirm that that's not the problem. If the timestamp on your compiled jsp is before the timestamp on your actual jsp, then you will have problems. If not, it's something else. -James On Fri, 2003-08-01 at 09:03, Brian McSweeney wrote: > Hey James, > Thanks very much for that. I understand what you mean, but seeing as > I'm creating the ear on the same machine as I'm running JBoss I don't > see how that could be happening. I don't even use a timestamp in > building > my ear/war. Perhaps I should! > > Thanks for the suggestion though, > Brian > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of James Ward > Sent: 01 August 2003 15:40 > To: [EMAIL PROTECTED] > Subject: Re: [JBoss-user] JBoss recompiles Jsps every time I hit the > page > > Hey Brian. > I think JBoss (Jetty or Tomcat) will only compile the jsp if the > original jsp file date is newer than the compiled class. We had a > problem where the date on the computer creating the war was in the > future, so jsp's would recompile every hit. Check that first. > > -James > > > On Fri, 2003-08-01 at 06:23, Brian McSweeney wrote: > > Hi all, > > > > > > > > I'm using JBoss3.2.1_tomcat4.1.24 > > > > > > > > I'm working on windows2000 and with jvm 1.4.1_01 > > > > > > > > My ear contains a war with jsps. My jsps are not precompiled. > > > > My understanding is that JBoss compiles the jsps on the first hit, > > > > and after that, should not need to compile them again. However, > > > > on the task manager every time I hit a jsp again (eg, second, third > > time etc. ) > > > > I see that the javac task is run and takes up most of the processor. > > > > > > > > Is this an option with JBoss - ie, always recompile jsps? > > > > > > > > Can I turn this off ? > > > > > > > > Thanks, > > > > Brian > > > > > > > > --- > 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/psa0013ave/direct;at.aspnet_072303_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/psa0013ave/direct;at.aspnet_072303_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/psa0013ave/direct;at.aspnet_072303_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/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] JBoss recompiles Jsps every time I hit the page
I can't speak to *why* it's actually recompiling each time. However, there are a few mods you can make to your $JBOSS_HOME/server/default/deploy/jbossweb-tomcat.sar/web.xml file, under the jsp servlet section: 1. Add in "development" and "reloading" init-params with values of false. This should make it quit checking to see if it should recompile. 2. Set logVerbosityLevel to "DEBUG". Maybe it will give you some useful information. For more info, see http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jasper-howto.html I haven't done this in JBoss, but have noticed dramatic performance improvements in a standalone tomcat instance. Nate -Original Message- From: James Ward [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 9:31 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] JBoss recompiles Jsps every time I hit the page Brian, Hmmm. Strange. Your files get time stamped no matter what. So, I would check the time stamp on the compile jsp's and on your actual jsp's. Just to confirm that that's not the problem. If the timestamp on your compiled jsp is before the timestamp on your actual jsp, then you will have problems. If not, it's something else. -James On Fri, 2003-08-01 at 09:03, Brian McSweeney wrote: > Hey James, > Thanks very much for that. I understand what you mean, but seeing as > I'm creating the ear on the same machine as I'm running JBoss I don't > see how that could be happening. I don't even use a timestamp in > building > my ear/war. Perhaps I should! > > Thanks for the suggestion though, > Brian > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of James Ward > Sent: 01 August 2003 15:40 > To: [EMAIL PROTECTED] > Subject: Re: [JBoss-user] JBoss recompiles Jsps every time I hit the > page > > Hey Brian. > I think JBoss (Jetty or Tomcat) will only compile the jsp if the > original jsp file date is newer than the compiled class. We had a > problem where the date on the computer creating the war was in the > future, so jsp's would recompile every hit. Check that first. > > -James > > > On Fri, 2003-08-01 at 06:23, Brian McSweeney wrote: > > Hi all, > > > > > > > > I'm using JBoss3.2.1_tomcat4.1.24 > > > > > > > > I'm working on windows2000 and with jvm 1.4.1_01 > > > > > > > > My ear contains a war with jsps. My jsps are not precompiled. > > > > My understanding is that JBoss compiles the jsps on the first hit, > > > > and after that, should not need to compile them again. However, > > > > on the task manager every time I hit a jsp again (eg, second, third > > time etc. ) > > > > I see that the javac task is run and takes up most of the processor. > > > > > > > > Is this an option with JBoss - ie, always recompile jsps? > > > > > > > > Can I turn this off ? > > > > > > > > Thanks, > > > > Brian > > > > > > > > --- > 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/psa0013ave/direct;at.aspnet_072303_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/psa0013ave/direct;at.aspnet_072303_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/psa0013ave/direct;at.aspnet_072303_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/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Register & Login User In One Step
James Ward wrote: Has anyone figured out a cool way with JBoss and JAAS to make it so that when a user registers on a web page (ie. creates an account) they get automatically logged in? Assuming you have a servlet, or servlet-like class where you receive the HTTP request that creates the new account (such as a Struts Action), why not just include a redirect at the end of the class that auto-submits the login using the newly-created username/password? Erik --- 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/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Need some help with JMS
Hello All, I am new to JMS and would like to know if the following is possible: 1. Enqueue a message with a delay interval (message should be available to consumer only after this delay) 2. Can the messages be ordered based on priority, FIFO, LIFO, expiration, delay Thanks in advance for your time and help. rgds MS --- 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/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] JBoss recompiles Jsps every time I hit the page
Brian, Hmmm. Strange. Your files get time stamped no matter what. So, I would check the time stamp on the compile jsp's and on your actual jsp's. Just to confirm that that's not the problem. If the timestamp on your compiled jsp is before the timestamp on your actual jsp, then you will have problems. If not, it's something else. -James On Fri, 2003-08-01 at 09:03, Brian McSweeney wrote: > Hey James, > Thanks very much for that. I understand what you mean, but seeing as > I'm creating the ear on the same machine as I'm running JBoss I don't > see how that could be happening. I don't even use a timestamp in > building > my ear/war. Perhaps I should! > > Thanks for the suggestion though, > Brian > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of James Ward > Sent: 01 August 2003 15:40 > To: [EMAIL PROTECTED] > Subject: Re: [JBoss-user] JBoss recompiles Jsps every time I hit the > page > > Hey Brian. > I think JBoss (Jetty or Tomcat) will only compile the jsp if the > original jsp file date is newer than the compiled class. We had a > problem where the date on the computer creating the war was in the > future, so jsp's would recompile every hit. Check that first. > > -James > > > On Fri, 2003-08-01 at 06:23, Brian McSweeney wrote: > > Hi all, > > > > > > > > I'm using JBoss3.2.1_tomcat4.1.24 > > > > > > > > I'm working on windows2000 and with jvm 1.4.1_01 > > > > > > > > My ear contains a war with jsps. My jsps are not precompiled. > > > > My understanding is that JBoss compiles the jsps on the first hit, > > > > and after that, should not need to compile them again. However, > > > > on the task manager every time I hit a jsp again (eg, second, third > > time etc. ) > > > > I see that the javac task is run and takes up most of the processor. > > > > > > > > Is this an option with JBoss - ie, always recompile jsps? > > > > > > > > Can I turn this off ? > > > > > > > > Thanks, > > > > Brian > > > > > > > > --- > 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/psa0013ave/direct;at.aspnet_072303_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/psa0013ave/direct;at.aspnet_072303_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/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Home Interface not found?
Hello, I want to connect my EAR App and get this exception: javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException: com.test.TestEJBHome] The Home Interface is in the EAR package. In older versions of Jboss it has worked. I tried 3.2.1. Any ideas? ejb-jar.xml: TestEJB com.test.TestEJBHome com.test.TestEJBRemote com.test.TestEJBLocalHome com.test.TestEJB com.test.TestEJBBean Stateless Container Juraj $ 17:22:24,687 INFO [MainDeployer] Starting deployment of package: file:/D:/dev /server/jboss-3.2.1/server/default/deploy/TestApp.ear 17:22:24,687 INFO [EARDeployer] Init J2EE application: file:/D:/dev/server/jbos s-3.2.1/server/default/deploy/TestApp.ear 17:22:24,968 INFO [EjbModule] Creating 17:22:24,968 INFO [EjbModule] Deploying TestEJB 17:22:24,968 INFO [StatelessSessionContainer] Creating 17:22:24,984 INFO [StatelessSessionInstancePool] Creating 17:22:24,984 INFO [StatelessSessionInstancePool] Created 17:22:24,984 INFO [StatelessSessionContainer] Created 17:22:24,984 INFO [EjbModule] Created 17:22:24,984 INFO [EjbModule] Starting 17:22:24,984 INFO [StatelessSessionContainer] Starting 17:22:25,000 INFO [StatelessSessionInstancePool] Starting 17:22:25,000 INFO [StatelessSessionInstancePool] Started 17:22:25,000 INFO [StatelessSessionContainer] Started 17:22:25,000 INFO [EjbModule] Started 17:22:25,000 INFO [EJBDeployer] Deployed: file:/D:/dev/server/jboss-3.2.1/serve r/default/tmp/deploy/server/default/deploy/TestApp.ear/34.TestApp.ear-contents/T estApp.jar 17:22:25,015 INFO [EARDeployer] Started J2EE application: file:/D:/dev/server/j boss-3.2.1/server/default/deploy/TestApp.ear 17:22:25,031 INFO [MainDeployer] Deployed package: file:/D:/dev/server/jboss-3. 2.1/server/default/deploy/TestApp.ear --- 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/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Sybase type-mapping of NUMERIC(10,7) read in as int
Hi, I'm using JBoss 3.0.6, and I'm migrating from Oracle 9i to Sybase 12.0 One of my unit tests is failing because I have a column in a table defined as NUMERIC(10,7). When I write a value like 1.24, the DB gets 1. Has anyone got any ideas? I tried adding in a mapping to jbossjdbccmp.xml for java.math.BigDecimal but that's no help. Ciao, Jonathan O'Connor Development Manager XCOM Dublin Phone: +353 1 872 3305 Mobile: +353 86 824 9736 --- 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/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] JBoss recompiles Jsps every time I hit the page
Hey James, Thanks very much for that. I understand what you mean, but seeing as I'm creating the ear on the same machine as I'm running JBoss I don't see how that could be happening. I don't even use a timestamp in building my ear/war. Perhaps I should! Thanks for the suggestion though, Brian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of James Ward Sent: 01 August 2003 15:40 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] JBoss recompiles Jsps every time I hit the page Hey Brian. I think JBoss (Jetty or Tomcat) will only compile the jsp if the original jsp file date is newer than the compiled class. We had a problem where the date on the computer creating the war was in the future, so jsp's would recompile every hit. Check that first. -James On Fri, 2003-08-01 at 06:23, Brian McSweeney wrote: > Hi all, > > > > I'm using JBoss3.2.1_tomcat4.1.24 > > > > I'm working on windows2000 and with jvm 1.4.1_01 > > > > My ear contains a war with jsps. My jsps are not precompiled. > > My understanding is that JBoss compiles the jsps on the first hit, > > and after that, should not need to compile them again. However, > > on the task manager every time I hit a jsp again (eg, second, third > time etc. ) > > I see that the javac task is run and takes up most of the processor. > > > > Is this an option with JBoss - ie, always recompile jsps? > > > > Can I turn this off ? > > > > Thanks, > > Brian > > --- 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/psa0013ave/direct;at.aspnet_072303_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/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] memory leaks during redeployment
Hi Scott, What I am trying to say is that the memory leaks affect the finders method as well. Does it makes sense? Thanks Simone - Original Message - From: "Scott M Stark" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 28, 2003 2:33 PM Subject: Re: [JBoss-user] memory leaks during redeployment > No, as no finders need be executed, only redeployment. > > -- > > Scott Stark > Chief Technology Officer > JBoss Group, LLC > > > Simone Milani wrote: > > > Hi Scott, > > > > Would you please confirm (as I think) that this problem is also causing > > the following bug? > > https://sourceforge.net/tracker/?func=detail&atid=376685&aid=738166&group_id=22866 > > > > Thanks! > > > > 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/psa0013ave/direct;at.aspnet_072303_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/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Register & Login User In One Step
Has anyone figured out a cool way with JBoss and JAAS to make it so that when a user registers on a web page (ie. creates an account) they get automatically logged in? Thanks in advance. -James --- 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/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss recompiles Jsps every time I hit the page
Hey Brian. I think JBoss (Jetty or Tomcat) will only compile the jsp if the original jsp file date is newer than the compiled class. We had a problem where the date on the computer creating the war was in the future, so jsp's would recompile every hit. Check that first. -James On Fri, 2003-08-01 at 06:23, Brian McSweeney wrote: > Hi all, > > > > I’m using JBoss3.2.1_tomcat4.1.24 > > > > I’m working on windows2000 and with jvm 1.4.1_01 > > > > My ear contains a war with jsps. My jsps are not precompiled. > > My understanding is that JBoss compiles the jsps on the first hit, > > and after that, should not need to compile them again. However, > > on the task manager every time I hit a jsp again (eg, second, third > time etc. ) > > I see that the javac task is run and takes up most of the processor. > > > > Is this an option with JBoss – ie, always recompile jsps? > > > > Can I turn this off ? > > > > Thanks, > > Brian > > --- 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/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] EJB Invocation fails
Hi, after I request an EJb via JNDI, I get this exception. I have no idea what this means. Any ideas? juraj ejb-jar.xml: BANFEJB com.tsystems.ik.ejb.sap.banf.BANFEJBHome com.tsystems.ik.ejb.sap.banf.BANFEJB com.tsystems.ik.ejb.sap.banf.BANFEJBLocalHome com.tsystems.ik.ejb.sap.banf.BANFEJBLocal com.tsystems.ik.ejb.sap.banf.BANFEJB Stateless Container jboss.xml: http://www.jboss.org/j2ee/dtd/jboss_3_1.dtd";> BANFEJB ejb/sap/ek/BANFEJB ejb/sap/ek/local/BANFEJB Exception: $ 16:28:02,031 WARN [NestedThrowable] Duplicate throwable nesting of same base type: class org.jboss.deployment.DeploymentException is assignable from: class o rg.jboss.deployment.DeploymentException 16:28:02,031 WARN [NestedThrowable] Duplicate throwable nesting of same base ty pe: class org.jboss.deployment.DeploymentException is assignable from: class org .jboss.deployment.DeploymentException 16:28:02,031 ERROR [URLDeploymentScanner] Failed to deploy: org.jboss.deployment [EMAIL PROTECTED] url=file:/D:/dev/server/jbos s-3.2.1/server/default/deploy/IKEJB.ear, deployedLastModified=0 } org.jboss.deployment.DeploymentException: exception in init of file:/D:/dev/serv er/jboss-3.2.1/server/default/deploy/IKEJB.ear; - nested throwable: (org.jboss.d eployment.DeploymentException: exception in init of file:/D:/dev/server/jboss-3. 2.1/server/default/tmp/deploy/server/default/deploy/IKEJB.ear/31.IKEJB.ear-conte nts/SAPBANF.jar; - nested throwable: (org.jboss.deployment.DeploymentException: Operation timed out: connect; - nested throwable: (java.net.ConnectException: Op eration timed out: connect))) at org.jboss.deployment.MainDeployer.init(MainDeployer.java:720) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:637) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613) at java.lang.reflect.Method.invoke(Native Method) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea nDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) at $Proxy7.deploy(Unknown Source) at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen tScanner.java:302) at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS canner.java:476) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread. doScan(AbstractDeploymentScanner.java:200) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread. loop(AbstractDeploymentScanner.java:211) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread. run(AbstractDeploymentScanner.java:190) + nested throwable: org.jboss.deployment.DeploymentException: exception in init of file:/D:/dev/serv er/jboss-3.2.1/server/default/tmp/deploy/server/default/deploy/IKEJB.ear/31.IKEJ B.ear-contents/SAPBANF.jar; - nested throwable: (org.jboss.deployment.Deployment Exception: Operation timed out: connect; - nested throwable: (java.net.ConnectEx ception: Operation timed out: connect)) at org.jboss.deployment.MainDeployer.init(MainDeployer.java:720) at org.jboss.deployment.MainDeployer.init(MainDeployer.java:714) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:637) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613) at java.lang.reflect.Method.invoke(Native Method) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea nDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) at $Proxy7.deploy(Unknown Source) at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen tScanner.java:302) at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS canner.java:476) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread. doScan(AbstractDeploymentScanner.java:200) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread. loop(AbstractDeploymentScanner.java:211) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread. run(AbstractDeploymentScanner.java:190) + nested throwable: org.jboss.deployment.DeploymentException: Operation timed out: connect; - nested throwable: (java.net.ConnectException: Operation timed out: connect) at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:316) at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:247) at org.jboss.ejb.EJBDeployer.init(EJBDeployer.java:388) at org.jboss.deployment.MainDeployer.init(MainDeployer.java:694) at org.jboss.deployment.MainDeployer.init(MainDeployer.java:714) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:637) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613) at java.lang.reflect.Method.invoke(Native Method) at org.jboss.mx.capabi
Re: [JBoss-user] Geting real performance data from the SPECjAppServer2002
Well ... I have to admit, that I haven't continued looking for the reason why it works. I am just happy it does ;) Pete Beck wrote: I'm just guessing, but perhaps throwing the extra memory and threads at the VM made it run faster. If ther VM runs faster, then the transactions will be shorter which means there will be less lock contention. On Tue, 2003-07-29 at 15:51, Christofer Dutz wrote: PS: Has anyone got an idea, why the deadlocks diapeared after increasing the VM Memory and the Tomcat threads? It sounded sort of funny to me --- 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/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Problems with web-interface in clustered JBoss environment
Hi, at the moment I am trying to deploy an application on a clustered jboss and am experiancing some strange things with the WAR-Content. I have my JBoss installed in a direcotry of a central file-server. This directory is mounted on several machines. I start jboss, with enabled clustering, from within ths directory. Everything is working perfectly except one thing. Only the last Jboss to finish deploying has a web-interface. All others give me an exception telling me that there is no such context. Do I have to do some special stuff in order to get the web-interface runing on all machines of the cluster ? The official documentation in the JBoss Clustering guide was no realy good help here. Chris --- 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/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] send JMS notifications after initialization
Hi Guys, My application gets initialzed by an Initializer Servlet and this initialization takes a few seconds. When I bounce my JBoss, I get the JMS messages redelivered as soon as the beans get deployed, but before the Initialization is complete. I need to initialize my system before I can receive any notifications from the JMS. Is there any way of informing the JBossMQ that I'm ready to accept messages so that JBoss does not deliver me message until that point. 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/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBoss recompiles Jsps every time I hit the page
Hi all, I’m using JBoss3.2.1_tomcat4.1.24 I’m working on windows2000 and with jvm 1.4.1_01 My ear contains a war with jsps. My jsps are not precompiled. My understanding is that JBoss compiles the jsps on the first hit, and after that, should not need to compile them again. However, on the task manager every time I hit a jsp again (eg, second, third time etc. ) I see that the javac task is run and takes up most of the processor. Is this an option with JBoss – ie, always recompile jsps? Can I turn this off ? Thanks, Brian
RE: [JBoss-user] Message to User about JBoss Startup Complete
Hi Fred, Really sorry about the delayed response... There were some other priorities to be covered, before this. What I understand from this is to deploy the following as an MBean and then try to access the MBean's isStarted() at regular intervals. If this is the case, how can I lookup this MBean, since I dont see nay JNDI names(referring to the documentation example for MBean.) Plus the service will be only deployed when the JBoss server itself start's right? Can you please specify the jboss-service.xml for this service? Thanks Muraly At 10:57 24/07/2003 -0700, Fred Hartman wrote: See the JMX message org.jboss.system.server.Server.START_NOTIFICATION_TYPE. The MBean would look something like this: import org.jboss.system.server.Server; import javax.management.Notification; import javax.management.NotificationFilter; import javax.management.NotificationListener; import org.jboss.system.ServiceMBeanSupport; public class ServerLoadDetector extends ServiceMBeanSupport implements ServerLoadDetectorMBean, NotificationFilter, NotificationListener { boolean state = false; // // MBean read only attribute // @jmx:managed-attribute // public boolean isStarted() { return state; } // // NotificationFilter, NotificationListener Implementations // public boolean isNotificationEnabled(Notification n) { return (Server.START_NOTIFICATION_TYPE.equals(n.getType())); } public void handleNotification(Notification n, Object handback) { // set an attribute that can be remotely introspected state = true; } } -Original Message- From: julien viet [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 24, 2003 9:02 AM To: Muraly R Subject: Re: [JBoss-user] Message to User about JBoss Startup Complete The started field could be added as an attribute on the ServerImplMBean mbean. Actually there is no way to know, though it is possible to know when the server starts because it sends a JMX notification at this moment. julien MR> Hi Gurus, MR> Objective MR> MR> Since my web server and all other services start prior to JBoss, I want to MR> provide a notification to user through the web UI, saying that the services MR> are starting, if the user tries to access the application before the App. MR> server is up. MR> To Know MR> === MR> What I wanted to know is, is there any API exposed from which we can know MR> about the JBoss server startup. So I can access this API at regular MR> intervals from UI, and re-direct the URL once the JBoss start has completed MR> successfully. MR> Thanks MR> Muraly MR> --- MR> This SF.Net email sponsored by: Free pre-built ASP.NET sites including MR> Data Reports, E-commerce, Portals, and Forums are available now. MR> Download today and enter to win an XBOX or Visual Studio .NET. MR> http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 MR> ___ MR> JBoss-user mailing list MR> [EMAIL PROTECTED] MR> https://lists.sourceforge.net/lists/listinfo/jboss-user -- Best regards, julien mailto:[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/psa0013ave/direct;at.aspnet_072303_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/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] 台灣區 email 行銷大全 &工商名錄2003/7/30 上午 08:53:48
Title: 0618 §C¦¨¥»°ª®Ä²vªº¦æ¾P¤u¨ã §Q¥Îºô¸ôÂX®i°Ó¾÷ªº§Q¾¹ 2003 ¦~ 7 ¤ë ³Ì·s»OÆW°Ï¹q¤l¶l¥ó¦æ¾P¦W³æ & ¥xÆW¦a°Ï¤u°Ó¦W¿ý ¤µ¦~¦~ªì°ê¬ì·|²Îp¡A§Ú°ê¤Wºô¤H¤f¤w¯}800¸U¤jÃö¡A¼eÀW¤Wºô¤H¤f¥ç¹F¨ì161¸U ªñ¨ÓSARS¬y¦æ¡A¤Wºô¤H¤f®É¼Æ¥ç¤j°Æ¦¨ªø¡A¨S¨Æ¤j®a³£¦b®a¤Wºô¤F¡I ºô¸ôªº¦~Á`®ø¶Oª÷ÃB§ó¹F¨ì¾ú¦~¨Ó³Ì°ª®p¡I¡I ±z¬O§_¤F¸Ñ±H«Hªº¯µ³Z¦b©ó¦³®Ä¦W³æªº´x´¤¤Îµo«HªºÂ¬ªù©O¡H¬°¦ó¦³¤H³æ³æ¾aµo«H´N¤ë¤Q¦h¸U°]·½ºuºu¡A¦b®a¸Ì·í°_»´ÃP [EMAIL PROTECTED](BBS¡B¦U¤jºô¯¸µ¥)[EMAIL PROTECTED]@[EMAIL PROTECTED] [EMAIL PROTECTED] ¦W³æ¨Ó·½ ¦¬¶°¦Ü¤C¤ë¥÷ , [EMAIL PROTECTED] T1 ½u¸ô 8¥x°ª¶¥¹q¸£¥Î±M·~ªº¦W³æ»`¶°³nÅé±q¦U¤j¤J¤fºô¯¸ . ¤G¤â¥«³õ . ¯d¨¥ª© . °Q½×ª© . ªÀ¸sµ¥»`¶°¦Ó¨Ó¡A¥t¥~¦¬¶°¥«°âe-mail¦W³æ , [EMAIL PROTECTED] , ¹LÂoµL®Ä¦W³æ , ¥þ³¡¦W³æ¦A¸g¥Ñç°£«ÂÐ--->ç°£«DªkµL®Ä..µ¥¨BÆJ¾ã²z¦Ó¦¨ªººë·ÇE-mail¦W³æ , ¨S¦³¶Ã¼Æ²£¥Í¾¹©Ò²Õ¦XªºµL®Ä¦W³æ , ¨S¦³¤£¦s¦bªº¦øªA¾¹¦W³æ , §ó«OÃÒµL«½Æªº¦W³æ , ³Ì«á¤ÀÃþ¦¨¨Ì isp ¤ÀÃþ (¤è«K±z¦Û¦æ«O¦s¾ã²z ) , ²V½s¦W³æ (¨Ì±b¸¹ÀY§À¦r¥À±Æ§Ç) , ¥H«K¹ê»Ú±H«H®É , ³q¹L mail serverªºÀÉ«H³]©w »OÆW¹q¤l¶l¥ó¦æ¾P¥úºÐ¤º®e ¡¹ [EMAIL PROTECTED] : a ¨Ì ISP¤ÀÃþ, ¦p:Hinet , Yahoo , Pchome , hotmail , Seed ...µ¥ , Åý±z¤è«KÀ˵ø¾ã²z b ¥þ³¡¦W³æ²V¦X½s±Æ , ¥H«K¹ê»Ú±H«H®É , ³q¹L mail serverªºÀÉ«H³]©w c ¤C¤ë¥÷³Ì·s¦¬¶°³Ì hot ¦W³æ d «ö¤u°Ó¦æ·~§O¤ÀÃþ¦W³æ ¡¹ ¶W±j¦æ¾Pµo«H³nÅé¤u¨ã[EMAIL PROTECTED] ¡¹ ¶W±j e-mail ¦¬¨í³nÅé [EMAIL PROTECTED] ¡¹ °ê¤º¥~°ª³tÂà«H¦øªA¾¹ ( open relay smtp server ) 1200²Õ, ³Ì·s§ó·s ¡@ ¥xÆW¦a°Ï¤u°Ó¦W¿ý¤º®e ¡¹ [EMAIL PROTECTED] ¸U®a ¡¹ ¸ê®Æ¶µ¥Ø¦³¤½¥q¦WºÙ¡B¸ê¥»ÃB¡B¦a§}¡B³]¥ß¤é´Á¡BÀç·~¶µ¥Ø¡B¹q¸Ü¡B¶Ç¯u.. ±zÁÙ¦bªá¨Cµ§1-2¤¸ªº¥N»ù§ä¦W³æ? ÁÙ¬O¦bªá®É¶¡¬Ý¹q¸Ü¥»§ä«È¤á©O? ·Q¦b¶Ç²Î¦æ¾P¤¤¹B¥Î¤W¹q¸£ªº¤O¶q¶Ü? [EMAIL PROTECTED] §ÚÌ´£¨Ñ¦U¦æ¦U·~¤u°Ó¦W¿ýµ¹±z¡A¤º¦³¸Ô²Ó¸ê®Æ , ¥i¥Î window office ¸ê®Æ®w¥i·s¼W¡B¬d¸ß¡Bקï¡B§R°£¡B¦C¦L¡B ¨Ì¦a°Ï©Î¸ô¦W©Î¦æ·~§O...,[EMAIL PROTECTED],¦pªG±z¬O¶W¯Å·~°Èû§ó¤£¯à¿ù¹L,Åý±z¦æ¾P¤W§óµL©¹¤£§Q¡I »OÆW¹q¤l¶l¥ó¦æ¾P¥úºÐ ¤À¨É»ù$700 ¤¸ ¥xÆW¦a°Ï¤u°Ó¦W¿ý ¤À¨É»ù$700 ¤¸ ¥H¤W¨â¤ù¦XÁÊ ¯S´f»ù $1250 ¤¸ ±Ä¶l§½¥N¦¬³f´Ú (¤w§t¶l¸ê) ÁʶR½Ð¶ñ¼g¤U¦CqÁÊ³æ ¡° 2003 ¦~ 7 ¤ë »OÆW¹q¤l¶l¥ó¦æ¾P¥úºÐ & ¥xÆW¦a°Ï¤u°Ó¦W¿ýqÁÊ³æ ¡° qÁʤH©m¦W ¹q¤l«H½c Ápµ¸¹q¸Ü ¦¬³f¦a§} ¶l»¼°Ï¸¹ ¶l»¼°Ï¸¹¬d¸ß qÁʶµ¥Ø »OÆW¹q¤l¶l¥ó¦æ¾P¥úºÐ $700 ¥xÆW¦a°Ï¤u°Ó¦W¿ý $700 »OÆW¹q¤l¶l¥ó¦æ¾P¥úºÐ + ¥xÆW¦a°Ï¤u°Ó¦W¿ý (¨â¤ù¦XÁÊ) $1250 ½Ð¿ï¾Ü ªþµù»¡©ú ¡@ --- 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/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: SOLVED (Re: [JBoss-user] Cluster failover and "no concurrent calls on stateful beans")
Good to know you solved it! Cheers, sacha > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Joao Clemente > Sent: vendredi, 1. août 2003 12:05 > To: [EMAIL PROTECTED] > Subject: SOLVED (Re: [JBoss-user] Cluster failover and "no > concurrent calls on stateful beans") > > > Thank you for having replied Sacha. I'll not provide the > exception stack > trace as we've found what was causing the problem. > I'll post our finding here to end this thread with the > explanation for our > problem (well, at least is what we suspect it was the > problem. I'm sorry if > what I'm saying is not 100% correct, but it is our conclusion so far) > > It was all about the design we were using to do the recovery: > > Supose we had an EJB1 and a EJB2. Both ejb's have a recovery method > "recover()" to fix the transient parts that were lost during > failover. That > recover method is called whenever we access an transient > variable by an > accessor we have in the class: > > class ejb1 { > transient xxx transientVariable; > getTransientVariable() > > if (transientVariable== null) revover(); > return transientVariable; > } > recover () { // Get the transient variables in a valid > state again. } > method1() > > // ... > getTransientVariable().doSomething(); > } > method2() { > // ... access ejb2 and invoque someMethod(); > } > } > > > ejb2 has a similar approach, but it had a difference: The > recover method had > to access ejb1 to get a value. > our client (servlet) would, for instance, invoque ejb1.method2(); > this would make a call to ejb2, so we have ejb1 invoquing ejb2. > ejb2.method2() would have the need to access a transient > variable so it > would try to recover. In particular that transient variable > was provided by > calling an ejb1 method. It has an reference to ejb1 that was kept safe > during failover, so it can invoque it something like this: > (ejb2) recover() { > // need to ask ejb1 for the correct value of some > transient variable > that I have: > ejb1.giveMeSomeVariable(); > } > > so ejb1 is calling ejb2 that, when recovering, needs to call > ejb1 again.. > and... well "concurrent call on statefull beans"... > > > > well, I actually thing that in some occasions it should be > possible to use > this... In particular, if there existed a "const method()" in > java (there is > no "const" is java, is there?) I think it should be possible. > This would say > that the method is harmless to the state of the bean... But > this is another > story... > Hope maybe our bad (old) design will help someone to avoid > this mistakes :-) > > Joao Clemente > > - Original Message - > From: "Joao Clemente" <[EMAIL PROTECTED]> > Sent: Monday, July 28, 2003 4:36 PM > > > > We're changing our app so that we can recover the transient > parts of our > > objects so that we can eventually support failover. > > One of our recovery methods fails with > > "Application error: no concurrent calls on stateful beans" > > and we're being unable to trace what is responsible for > this behaviour. We > > are using a single client so there should be only one call, not two. > > One thing I am thinking is that maybe the server is > activating the ejb and > > at the same time it invokes the recovery method that we wrote. > > > > Maybe one of you has already faced this situation and has > suggestions. > > We're using jboss 3.0.8 > > > > --- > 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/psa0013ave/direct;at.aspnet > _072303_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/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
SOLVED (Re: [JBoss-user] Cluster failover and "no concurrent calls on stateful beans")
Thank you for having replied Sacha. I'll not provide the exception stack trace as we've found what was causing the problem. I'll post our finding here to end this thread with the explanation for our problem (well, at least is what we suspect it was the problem. I'm sorry if what I'm saying is not 100% correct, but it is our conclusion so far) It was all about the design we were using to do the recovery: Supose we had an EJB1 and a EJB2. Both ejb's have a recovery method "recover()" to fix the transient parts that were lost during failover. That recover method is called whenever we access an transient variable by an accessor we have in the class: class ejb1 { transient xxx transientVariable; getTransientVariable() if (transientVariable== null) revover(); return transientVariable; } recover () { // Get the transient variables in a valid state again. } method1() // ... getTransientVariable().doSomething(); } method2() { // ... access ejb2 and invoque someMethod(); } } ejb2 has a similar approach, but it had a difference: The recover method had to access ejb1 to get a value. our client (servlet) would, for instance, invoque ejb1.method2(); this would make a call to ejb2, so we have ejb1 invoquing ejb2. ejb2.method2() would have the need to access a transient variable so it would try to recover. In particular that transient variable was provided by calling an ejb1 method. It has an reference to ejb1 that was kept safe during failover, so it can invoque it something like this: (ejb2) recover() { // need to ask ejb1 for the correct value of some transient variable that I have: ejb1.giveMeSomeVariable(); } so ejb1 is calling ejb2 that, when recovering, needs to call ejb1 again.. and... well "concurrent call on statefull beans"... well, I actually thing that in some occasions it should be possible to use this... In particular, if there existed a "const method()" in java (there is no "const" is java, is there?) I think it should be possible. This would say that the method is harmless to the state of the bean... But this is another story... Hope maybe our bad (old) design will help someone to avoid this mistakes :-) Joao Clemente - Original Message - From: "Joao Clemente" <[EMAIL PROTECTED]> Sent: Monday, July 28, 2003 4:36 PM > We're changing our app so that we can recover the transient parts of our > objects so that we can eventually support failover. > One of our recovery methods fails with > "Application error: no concurrent calls on stateful beans" > and we're being unable to trace what is responsible for this behaviour. We > are using a single client so there should be only one call, not two. > One thing I am thinking is that maybe the server is activating the ejb and > at the same time it invokes the recovery method that we wrote. > > Maybe one of you has already faced this situation and has suggestions. > We're using jboss 3.0.8 --- 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/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Geting real performance data from theSPECjAppServer2002
I'm just guessing, but perhaps throwing the extra memory and threads at the VM made it run faster. If ther VM runs faster, then the transactions will be shorter which means there will be less lock contention. On Tue, 2003-07-29 at 15:51, Christofer Dutz wrote: > PS: Has anyone got an idea, why the deadlocks diapeared after increasing > the VM Memory and the Tomcat threads? It sounded sort of funny to me. > -- Peter Beck BEng (hons) MIEE - Managing Director, Electrostrata Ltd. http://www.electrostrata.com --+-+-- Experts in e-business and e-commerce --- 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/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Start JBoss in Linux daemon
There is a JBoss_init.sh file in JBoss_HOME/bin that you can use in /etc/init.d/ > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of sun zheng > Sent: vendredi, 1. août 2003 11:10 > To: [EMAIL PROTECTED] > Subject: [JBoss-user] Start JBoss in Linux daemon > > > Dear all, > > what i did before is to use a bash file to restart MySQL, > TomCat and JBoss > so that my application got restarted. In order to let it > running after I log > off, I used "nohup". it works fine. However, as "nohup" > exports its own log > file -- nohup.out, it could not export as other log file names like > JBoss_restart_01082003.log which I want to get. I aware I > could restart > MySQL and TomCat as daemons, therefore, im trying to find > something like > jbossdaemonstart.sh in JBoss in order that I need not start > MySQL/JBoss/Tomcat by "nohup" but common bash file, after > that, the log file > I expected would be very easy to get or at least I know the > way.. pity as > you know, it is not there.. > > any comment is appreciated > > with best wishes > > Zheng Sun > > _ > Help STOP SPAM with the new MSN 8 and get 2 months FREE* > http://join.msn.com/?page=features/junkmail > > > > --- > 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/psa0013ave/direct;at.aspnet > _072303_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/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Start JBoss in Linux daemon
There is a JBoss_init.sh file in JBoss_HOME/bin that you can use in /etc/init.d/ > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of sun zheng > Sent: vendredi, 1. août 2003 11:10 > To: [EMAIL PROTECTED] > Subject: [JBoss-user] Start JBoss in Linux daemon > > > Dear all, > > what i did before is to use a bash file to restart MySQL, > TomCat and JBoss > so that my application got restarted. In order to let it > running after I log > off, I used "nohup". it works fine. However, as "nohup" > exports its own log > file -- nohup.out, it could not export as other log file names like > JBoss_restart_01082003.log which I want to get. I aware I > could restart > MySQL and TomCat as daemons, therefore, im trying to find > something like > jbossdaemonstart.sh in JBoss in order that I need not start > MySQL/JBoss/Tomcat by "nohup" but common bash file, after > that, the log file > I expected would be very easy to get or at least I know the > way.. pity as > you know, it is not there.. > > any comment is appreciated > > with best wishes > > Zheng Sun > > _ > Help STOP SPAM with the new MSN 8 and get 2 months FREE* > http://join.msn.com/?page=features/junkmail > > > > --- > 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/psa0013ave/direct;at.aspnet > _072303_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/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Apache / JBoss Communication via mod_jk2 - Can Unix Sockets be used?
Yes, let us know your experience! Cheers, sacha > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Feighery Raymond > Sent: vendredi, 1. août 2003 11:07 > To: '[EMAIL PROTECTED]' > Cc: 'Jules Gosnell' > Subject: RE: [JBoss-user] Apache / JBoss Communication via > mod_jk2 - Can Unix Sockets be used? > > > Not sure what the cross-pollination between the lists is so I > will post the > follow-up I received. > > > From: Greg Wilkins [mailto:[EMAIL PROTECTED] > > Jetty does not support unix sockets for mod_jk2. > > It has been developed against mod_jk and has not been updated yet to > > use mod_jk2. > > It is on the short-term todo list and theoritically should be > > mostly trivial. > > I have Apache talking to Jboss with both Jetty and Tomcat > communicating over > mod_jk2 using TCP sockets, though Unix sockets would have > been nice. Faster > and one less port to open/secure. > > This link was helpful > http://www.jboss.org/thread.jsp?forum=50&thread=35354 > > I'm slightly surprised there are not more people fronting > Jboss with Apache > and thus encountering this same situation. Or is everyone > using mod_proxy? > There are some posts suggesting that mod_proxy is faster than > mod_jk2 in > Apache2, so maybe I'll use that. I thought the opposite would > be the case. > I'll test next week. > > Cheers > > Ray > > -Original Message- > From: Jules Gosnell [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 31, 2003 12:41 AM > To: [EMAIL PROTECTED] > Subject: Re: [JBoss-user] Apache / JBoss Communication via > mod_jk2 - Can > Unix Sockets be us ed? > > > try this on [EMAIL PROTECTED] > > Pier Fumagalli, who reads this list, was working on a JNI > Apache/Jetty > integration. This may have what you are looking for :-) I'm > not sure how > he is doing it... > > If it does, let me know and I will mention it in the FAQ. > > http://www.coredevelopers.net/technology/jetty/jetty-jboss-faq.jsp > > > Jules > > > Feighery Raymond wrote: > > Apache 2.0.47 > > > > JBoss 3.2.1 (with Jetty) > > > > > > > > I can get Apache and JBoss/Jetty to communicate via mod_jk2 > using TCP > > sockets. > > > > Is it possible to use Unix sockets to communicate to > JBoss/Jetty as can > > be done with JBoss/Tomcat. > > > > e.g.: from workers2.properties > > > > ... > > > > [channel.un:/opt/wherever/jk2.socket] > > > > tomcatId=localhost:8008 > > > > ... > > > > > > > > If so what is the relevant configuration file within JBoss/Jetty to > > amend (i.e. the equivalent of jk2.properties). > > > > I have googled on this, but there does not seem to be a > huge amount of > > documentation online. > > > > > > > > Thanks > > > > > > > > Ray > > > > > > -- > /* > * Jules Gosnell > * Partner > * Core Developers Network (Europe) > * http://www.coredevelopers.net > */ > > > > --- > 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/psa0013ave/direct;at.aspnet > _072303_01/01 > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > > __ > _ > > > This email and any attached to it are confidential and > intended only for the > individual or entity to which it is addressed. If you are > not the intended > recipient, please let us know by telephoning or emailing the > sender. You > should also delete the email and any attachment from your > systems and should > not copy the email or any attachment or disclose their > content to any other > person or entity. The views expressed here are not > necessarily those of > Churchill Insurance Group plc or its affiliates or > subsidiaries. Thank you. > > Churchill Insurance Group plc. Company Registration Number - 2280426. > England. > > Registered Office: Churchill Court, Westmoreland Road, > Bromley, Kent BR1 > 1DP. > > > > > --- > 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/psa0013ave/direct;at.aspnet > _072303_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, Porta
[JBoss-user] Start JBoss in Linux daemon
Dear all, what i did before is to use a bash file to restart MySQL, TomCat and JBoss so that my application got restarted. In order to let it running after I log off, I used "nohup". it works fine. However, as "nohup" exports its own log file -- nohup.out, it could not export as other log file names like JBoss_restart_01082003.log which I want to get. I aware I could restart MySQL and TomCat as daemons, therefore, im trying to find something like jbossdaemonstart.sh in JBoss in order that I need not start MySQL/JBoss/Tomcat by "nohup" but common bash file, after that, the log file I expected would be very easy to get or at least I know the way.. pity as you know, it is not there.. any comment is appreciated with best wishes Zheng Sun _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail --- 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/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Apache / JBoss Communication via mod_jk2 - Can Unix Sockets be used?
Not sure what the cross-pollination between the lists is so I will post the follow-up I received. > From: Greg Wilkins [mailto:[EMAIL PROTECTED] > Jetty does not support unix sockets for mod_jk2. > It has been developed against mod_jk and has not been updated yet to > use mod_jk2. > It is on the short-term todo list and theoritically should be > mostly trivial. I have Apache talking to Jboss with both Jetty and Tomcat communicating over mod_jk2 using TCP sockets, though Unix sockets would have been nice. Faster and one less port to open/secure. This link was helpful http://www.jboss.org/thread.jsp?forum=50&thread=35354 I'm slightly surprised there are not more people fronting Jboss with Apache and thus encountering this same situation. Or is everyone using mod_proxy? There are some posts suggesting that mod_proxy is faster than mod_jk2 in Apache2, so maybe I'll use that. I thought the opposite would be the case. I'll test next week. Cheers Ray -Original Message- From: Jules Gosnell [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 12:41 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Apache / JBoss Communication via mod_jk2 - Can Unix Sockets be us ed? try this on [EMAIL PROTECTED] Pier Fumagalli, who reads this list, was working on a JNI Apache/Jetty integration. This may have what you are looking for :-) I'm not sure how he is doing it... If it does, let me know and I will mention it in the FAQ. http://www.coredevelopers.net/technology/jetty/jetty-jboss-faq.jsp Jules Feighery Raymond wrote: > Apache 2.0.47 > > JBoss 3.2.1 (with Jetty) > > > > I can get Apache and JBoss/Jetty to communicate via mod_jk2 using TCP > sockets. > > Is it possible to use Unix sockets to communicate to JBoss/Jetty as can > be done with JBoss/Tomcat. > > e.g.: from workers2.properties > > ... > > [channel.un:/opt/wherever/jk2.socket] > > tomcatId=localhost:8008 > > ... > > > > If so what is the relevant configuration file within JBoss/Jetty to > amend (i.e. the equivalent of jk2.properties). > > I have googled on this, but there does not seem to be a huge amount of > documentation online. > > > > Thanks > > > > Ray > > -- /* * Jules Gosnell * Partner * Core Developers Network (Europe) * http://www.coredevelopers.net */ --- 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/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ___ This email and any attached to it are confidential and intended only for the individual or entity to which it is addressed. If you are not the intended recipient, please let us know by telephoning or emailing the sender. You should also delete the email and any attachment from your systems and should not copy the email or any attachment or disclose their content to any other person or entity. The views expressed here are not necessarily those of Churchill Insurance Group plc or its affiliates or subsidiaries. Thank you. Churchill Insurance Group plc. Company Registration Number - 2280426. England. Registered Office: Churchill Court, Westmoreland Road, Bromley, Kent BR1 1DP. --- 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/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Re: jndi port change does not work under 3.2.1
Scott M Stark schrieb: > This stack trace shows that you have a jndi.properties file > available in the classpath that that a Context.PROVIDER_URL, > and this must be pointing to localhost:1099. Ah, indeed! Thanks Scott. I did have a jndi.properties files inside a compressed ear+war archive containing one of my EJB+Web Applications. ,-- the jndi.properties file in question -- | java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory | java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces | java.naming.provider.url=localhost:@jboss.jndi.port@ `-- This should have been processed by ant to replace the @jboss.jndi.port@ part with the actual value (1199 in this case). But it had been included in the war verbatim and thus caused the error. Thank you very much for your suggestion. regards, Marko BTW, how come the stacktrace showed you that such a file was the cause? I don't really see from which part you figured that out. -- www.bmx-chemnitz.de -==- 20 Zoll in Chemnitz [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/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] CachedConnectionManager and JMS (3.2.2RC2 v. 3.2.2RC1)
It would make sense if closing the connection closed all the sessions created from that connection. After all, I guess the sessions are useless once the connection has been closed? Rgds, Dan. -- Danny Yates -Original Message- From: Scott M Stark [mailto:[EMAIL PROTECTED] Sent: 01 August 2003 07:33 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] CachedConnectionManager and JMS (3.2.2RC2 v. 3.2.2RC1) What about the QueueSession which is what the message is indicating that it closed? It could be argued that this is a bug in that 1.0.2b jms spec says that closing a connection is sufficient, but it was not addressing a JCA resource provider. -- Scott Stark Chief Technology Officer JBoss Group, LLC paul morgan wrote: > I just moved from 3.2.2RC1 to RC2 and am now receiving the following message (I've included the stack trace at the end): > > 10:51:25,608 INFO [CachedConnectionManager] Successfully closed a connection for you. Please close them yourself: [EMAIL PROTECTED] > > Has far as I can tell, I'm closing the connection. Following is a code snippet: > > QueueConnection connection = null; > > try { > connection = (this.getQueueConnectionFactory()).createQueueConnection(); > QueueSession session = connection.createQueueSession(false,Session.AUTO_ACKNOWLEDGE); > MapMessage message = session.createMapMessage(); > > // The code to set the message. > > (session.createSender( this.getNotificationQueue() )).send( message ); > } > catch( JMSException exception ) { > throw new NotificationFailedException( "NotifierBean#forwardToNotifier -- " , exception ); > } > finally { > if (connection != (QueueConnection) null) { > try { > connection.close(); connection = (QueueConnection) null; > } > catch( JMSException exception ) { > System.err.println( "NotifierBean#forwardToSMSNotifier -- " + exception ); > } > } > } > > Anyone have any idea what I might be doing wrong (the normal case), or might this be a JBoss bug? > > Thanks, > > Paul > > 10:51:25,608 INFO [CachedConnectionManager] Successfully closed a connection for you. Please close them > yourself: [EMAIL PROTECTED] > java.lang.Exception: Stack Trace > at org.jboss.resource.connectionmanager.CachedConnectionManager.closeAll(Cached ConnectionManager.java:376) > at org.jboss.resource.connectionmanager.CachedConnectionManager.popMetaAwareObj ect(CachedConnectionManager.java:199) > at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(Cach edConnectionInterceptor.java:190) --- 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/psa0013ave/direct;at.aspnet_072303_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. _ --- 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/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user