Dear All,
I would like to send email using java application. So I found this article http://www.javabeat.net/tips/33-sending-mail-from-java.html. The problem now my environment is linux with jdk1.6 I do know how to setup the Java Mail Api. Any guide please? Thank you.
newbie14
0
Posting Pro
Recommended Answers
Jump to PostMy listener will keep listening and will never stop. So when must I send databaseQueue.add(null); or eMailQueue.add(null);?
See demo code line 61
Should I move all my main function codes in the commServer to the GPSDemo?
Just look at the demo code - it explains what to put where.
Do …
Jump to PostIts easier to add the whole message String to the queue, then process it in the database processor. If you split it up into long/lat etc before queueing then you will have multiple values to put into the queue, which is harder than queuing a single String.
It may …
Jump to PostHi there
1. Yes, the idea is to create just one database connection when the program starts, and use that for all transactions, then close it when the program is shutting down. Opening a database connection is a pretty heavy process, so you don't want to do it more times …
Jump to PostSorry - no time to go thru your code tonight. I;ll look again tomorrow.
But yes, one connection handing transactions one at at time is a good start. Certainly opening lots of database connections all the time will only make things worse.
But... with the scalable queue architecture we are …
Jump to PostHi - just a quick correction and apology.
In the latest versions I suggested adding a null to the queue to signal a shutdown. I should have tested that first - it doesn't work with a LinkedBlockingQueue. Sorry.
Please refer to the earlier example of queue code that I posted …
All 80 Replies
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
newbie14
0
Posting Pro
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
newbie14
0
Posting Pro
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
newbie14
0
Posting Pro
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
newbie14
0
Posting Pro
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
newbie14
0
Posting Pro
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
newbie14
0
Posting Pro
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
newbie14
0
Posting Pro
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
newbie14
0
Posting Pro
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
newbie14
0
Posting Pro
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
newbie14
0
Posting Pro
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
newbie14
0
Posting Pro
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
newbie14
0
Posting Pro
newbie14
0
Posting Pro
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
ravi063
0
Newbie Poster
newbie14
0
Posting Pro
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.