I presented an introduction to JMeter at our local Java User’s Group here in Indianapolis, known as IndyJUG. For those who attended the meeting, I promised to make the presentation slides and JMeter example test plan from the demo available here on my blog. Here are the presentation slides in (OpenOffice) Open Document Presentation format. Here are the slides in PowerPoint format. If none of those work for you, then here they are in PDF format. Also, here is the… [continue]
JavaMail and Gmail Simplified Part 5: Epilogue
I know that this is way too long as it is, but in going through my folders I found a folder where I was keeping example code found out in cyberland and I wanted to share part of the code that seems to make it into a lot of example Gmail code out there. This shows where people are populating configuration properties for which there are no reasons. If the protocol is specified properly, all of the things listed here… [continue]
JavaMail and Gmail Simplified Part 4: The Code, Sending and Receiving
OK, back to the task at hand. If we are successful at connecting, we can do some real work with our Gmail account. Sending and receiving messages with attachments, multipart messages, HTML messages, etc. is beyond the scope of these posts since this is just a basic intro that will cover only the basic concepts of JavaMail and connecting to a hosted email account. We will just focus on plain text. First, let’s look at sending email. As stated, the… [continue]
JavaMail and Gmail Simplified Part 3: The Code, Logging In
Finally!! Let’s look at some code. Here is a simple Gmail client object in its entirety Fist let’s dissect each piece. This is the setup and connection code: Notice the creation of the empty Propeties object to hand to the factory method. This is where you could potentially read in a properties file with the load() methods that will take a Reader or InputStream. As stated (many, many times), we will hand in our info as we go, instead. In… [continue]
JavaMail and Gmail Simplified Part 2: The Objects
First let’s explore the main objects that we are concerned with for simple interfacing of a Java application with a Gmail account using the Javamail API. The Session object is the main object holds the connection configuration information and factory methods for itself and the other two main objects, Transport and Store. Almost all configuration information needed for connecting to, authenticating with, and sending and receiving email can be handed to the Session object’s Session.getInstance(Properties props) factory method via the… [continue]
JavaMail and Gmail Simplified Part 1: Introduction
This post in its entirety turned out to be quite a bit longer than I originally thought it would be, so I am going to break it into parts. Caution: This is going to be very basic and is written for beginners. I felt that there was a need out there for this type of introductory tutorial based on a hosted email account, especially Gmail. So, if you’re looking for an in-depth guide, the JavaMail documentation is a better place… [continue]
The Black Hole of Technology
When I was first studying up for job interviews I experienced a phenomenon I am calling “The Black Hole of Technology.” I would look up one acronym, framework title, or protocol abbreviation only to find more that I didn’t know about in the explanation. I would then dutifully click one of those links only to have the same thing happen. I would continue on and get about five subjects deep until I couldn’t remember what I was trying to look… [continue]