Sending Mail with Attachment over Secure Socket Layer (SSL) through SMTP using JavaMail

The article is written for J2SE 6, JavaMail 1.4.2, JAF 1.1.1 and Eclipse IDE for Java EE Developers. Table Of Content Introduction Mail Protocols System Requirements Setup JavaMail and JavaBeans Activation Framework Sending Messages Using the JavaMail API Resources Feedback Introduction The JavaMail API is an optional package (standard extension) for reading, composing, and sending electronic messages. The JavaMail API is designed to provide protocol-independent access for sending and receiving messages by dividing the API into two parts: The first part speaks on how to send and receive...

read more

Introduction, Using, Developing Java Persistence API (JPA) 2.0 using EclipseLink, Derby, MySql and Eclipse

The article is written for/using J2SE 6, Java Persistence API (JPA) 2.0, EclipseLink 1.1.2, Derby 10.5.1.1, MySQL 5.1.37 GA, and Eclipse IDE for Java EE Developers [Ganymede]. Table of Content Introduction System Requirements Article Prerequisites JPA Specification New Features in JPA 2.0 Java Persistence API (JPA) Architecture ORM Frameworks JPA Annotations Persistence Units Setup JPA, EclipseLink and Database Creating JPA Entities, Persistence XML and Storing Data to DB Creating and Using Custom EntityManagerFactory Running JUnit TestCase for JPA Summary Resources Feedback Introduction...

read more

Database Development Using the Eclipse IDE, MySQL with Eclipse Data Tools Platform in Java

The article is written for/using J2SE 6, MySQL 5.1.37 GA, MySQL Connector/J 5.1.8 and Eclipse IDE for Java EE Developers [Ganymede]. Table of Content Introduction System Requirements Article Prerequisites Installing/Setting up MySQL JDBC Driver and Connection Profile Open Database Development Perspective Connecting to MySQL Database Create, Insert, Edit and Execute SQL Files Summary Resources Feedback Introduction The Eclipse Data Tools Platform (DTP) is a new top-level project at eclipse.org. Originally proposed by Sybase in February 2005, DTP has attracted strong community support and is...

read more

Database Development Using the Eclipse IDE, Derby with Eclipse Data Tools Platform in Java

The article is written for/using J2SE 6, Derby 10.5.1.1, Eclipse plugins for Derby and Eclipse IDE for Java EE Developers [Ganymede]. Table of Content Introduction System Requirements Article Prerequisites Installing/Setting up Derby JDBC Driver and Connection Profile Open Database Development Perspective Connecting to Derby Database Create, Insert, Edit and Execute SQL Files Summary Resources Feedback Introduction This post covers connecting to Derby and basic DTP features. Apache Derby, an Apache DB subproject, is an open source relational database implemented entirely in Java and...

read more

Understanding Java Stack Traces and Generating or Producing or Capturing Full Java Thread Dump

The article is written for J2SE 6, and Eclipse IDE for Java EE Developers. Table Of Content Introduction and Generating Java Stack Traces System Requirements Generating or Producing or Capturing Full Java Thread Dump Manipulating Java Stack Traces Java Thread Dump Process Feedback Introduction and Generating Java Stack Traces A Java stack trace is a user-friendly snapshot of the threads and monitors in a Java1 Virtual Machine (JVM). Full Java Thread Dump is a complete list of active threads. A java thread dump is a way of finding out what each thread in the JVM is doing at a particular point...

read more