Java Section

Poderia criar um blog só sobre java e da experiencia que vou tendo com esta linguagem no entanto por uma questão de centralizar e ter maior controlo vou por enquanto manter aqui esta secção JAVA! Bem vindos

JAVA APIs

I will descrive here some APIs that I'm learning and problems related to get all working well!

JavaMail API

I have read this book - JavaMail API - to understand more details about this API but you can get a quick overview  using this link or this one.

To send a simple email over SMTPS I have some exceptions like:

com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first

The way to solve this is just setting mail.smtp.starttls.enable property to true.

Another exception was:

javax.mail.AuthenticationFailedException: 534-5.7.14 <https://accounts.google.com
 The way to solve was go to https://myaccount.google.com link and followed this steps:



And just trigger on:


Commons Email

The Commons Email is built on top of the Java Mail API, which it aims to simplify.
The Commons Email User Guide covers many typical cases and provides several useful examples so just read it's quick and easy to understand!

JavaMail API vs Commons Email

Well you can see by your eyes this example and you can see Commons Email have done a really good job!
Conclusion: using the JavaMail API directly in our application is a slightly tedious task as it
involves writing a lot of code.

Java Virtual Machine Overview

Zane Academy - Overview
Excelent article from Alexey Ragozin

JVM Questions Interviews

JAVA JVM Technical Interview Questions - CareersValley Fresher Tips


Java Design Patterns videos?

Whats it's the better way to learn Design Patterns? Videos or just reading?
Well I think both! I will put here some links that i have found with my friend GOOGLE!

The Strategy Design Pattern / The Decorator Design Pattern videos

How to install SVN plugin in Eclipse Helios (3.6)?

 See this post in this blog

Java 7!

Blog que fala sobre as novas "features" do Java 7
 
Identificar problemas de performance

Uma ferramenta interessante do Eclipse (um bom IDE para quem quer começar a desenvolver/programar por exemplo em Java) é sem duvida a Eclipse Test & Performance Tools Platform.

Mas afinal para que quero esta ferramenta?
Simples! Quando fazemos uma aplicação e achamos que já no seu estado final e pronto para entrega, isto porque por vezes apenas nos preocupamos com o aspecto do negocio da aplicação, da lógica, da inteligência a aplicar muitas vezes não nos preocupamos com todos os requisitos funcionais (até porque na altura poderiam não ter sido pensados), aí é que entra esta bela ferramenta. Não tenham medo da a usar ela é vossa amiga e de certeza que vos vai fazer alguns puxões de orelha!

Alternativas a esta ferramenta?
NetBeans Profiler (gratuito, nós gostamos mais das coisas grátis ou não é verdade!?) e o JProfiler (pago!, mas se a vossa empresa achar que vale a pena o preço porque não?). Acrescento o JVM Monitor!

Links de Blogs sobre JAVA!

Optei pelo ScribD para partilhar alguns estudos/pesquisas por penso que ficará o espaço do blog mais optimizado e organizado por temas podem acrescentar bastante conteúdo.
MyLDAP

Sem comentários:

Enviar um comentário