Server-Side Development Section Index | Page 2
Can my JavaMail client choose the authentication mechanism used on the server?
With the 1.4 JavaMail SMTP provider, you cannot. It will choose the first available mechanism, searching for either LOGIN, PLAIN, or DIGEST-MD5 in that
order.
Can I use JavaMail to backup my GMAIL account?
Short answer. Yes.
Longer answer:
In Gmail, access the SETTINGS link.
Select FORWARDING AND POP.
Select Enable POP for all mail (even mail that's already been downloaded). (POP Download step #1)...more
Does JavaMail support direct access to Microsoft Exchange contact lists and calendar appointments?
No. But, the Java Exchange Connector, available from http://jec.zapto.org/, is one commercial option that offers such access.
FileDataSource doesn't know about many mime types and seems to make most attachments application/octet-stream. How can I extend its mime type set?
You can add support for more extensions programmatically or by adding a META-INF/mime.types configuration file to your application.
For example, to map the .doc extension to the MIME type applic...more
How can I read a vCard attachment from my Java program?
The vCard4J SourceForge project (http://sourceforge.net/projects/vcard4j) offers just what you are looking for.
How do I manually set the mime type for an attached file?
You'll need to subclass FileDataSource and override its getContentType() method to return your desired type.
I seem to have conflicting versions of JavaMail libraries in my CLASSPATH, but there seems to be only one. What's up?
The JavaMail libraries are a standard part of J2EE and thus every application server. Be sure you DO NOT have a second copy in your CLASSPATH, as it will conflict with that of the server. Check wi...more
I seem to have conflicting versions of JavaMail libraries in my CLASSPATH, but there seems to be only one. What's up?
The JavaMail libraries are a standard part of J2EE and thus every application server. Be sure you DO NOT have a second copy in your CLASSPATH, as it will conflict with that of the server. Check wi...more
I'm using Google's configuration options to check my gmail account but it still isn't working. What could be wrong?
Not only do you have to use the right settings to get the mail but you must enable POP access in GMAIL.
Why does getting the list of BCC recipients in a message I receive always come up empty?
BCC stands for BLIND carbon copy. In other words, you aren't supposed to see who the sender sent the message to. This field works well when someone sends a message out to LOTS of people and doesn...more
How do I create a statefull session bean with EJB 3.0?
To create a statefull session bean you need to make use of the @Statefull annotation. You place the annotation on the line before the class declaration. You will also need to impleme...more
How do I use the @PostActivate annotation in EJB 3.0?
How do I use the @PostActivate annotation in EJB 3.0?
How do I use the @PostConstruct annotation in EJB 3.0?
How do I use the @PostConstruct annotation in EJB 3.0?
How do I use the @PreDestroy annotation in EJB 3.0?
How do I use the @PreDestroy annotation in EJB 3.0?
How do you implement ejbRemove in EJB 3.0?
How do you implement ejbRemove in EJB 3.0?