Java816 at

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Tomcat. However, the console indicates that statistics collection can be enabled without regard for the hosting web conainer. In the case of Tomcat that means that the user can select the "enable statistics collection" but the action will have no effect and statistics will never be enabled.. Connection pool resizing does not calculate what to do correctly Resizing a connection pool under load uses bad calculations to figure out what to do. Problem with sending mail using G's JavaMail SMTP transport The following was reported by Chris Cardona on 26-Aug-2005 on the dev list : I am trying to use the JavaMail in sandbox and I used the ff. steps: 1. Checked out geronimo, applied the javamail portlet patch, built geronimo 2. Compiled the files from sandbox/mail and created a jar then I copied it to the geronimo snapshot repository folder 3. I included the jar as a dependency in the \console-ear\src\plan\geronimo-application.xml 4. Built and redeployed geronimo console 5. Started Geronimo and James 6. Opened the JavaMail portlet then sent out a test email by clicking the 'test' link Here's the code that sends the email: ... String mailGBean = actionRequest.getParameter("mailGBean"); String toAddress = actionRequest.getParameter("toAddress"); String fromAddress = actionRequest.getParameter("fromAddress"); ObjectName mailInfo = new ObjectName(mailGBean); Session session = (Session) kernel.invoke(mailInfo, "$getResource"); Transport trans = session.getTransport(MAIL_TRANSPORT); MimeMessage message = new MimeMessage(session); message.setFrom(new InternetAddress(fromAddress)); message.addRecipients(Message.RecipientType.TO, toAddress); message.setSubject(MAIL_SUBJECT); message.setText(MAIL_BODY + mailInfo.getKeyProperty("name")); trans.connect(); trans.sendMessage(message, new Address {new InternetAddress(toAddress)}); ... I got the ff. exception: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Booting Geronimo Kernel (in Java 1.4.2_08...
View Full Document

Ask a homework question - tutors are online