I have MS Exchange Server 2007 running. I have access to Outlook Web Access. I need to write a servlet, which will:
get global list of contacts
get personal calendar for each contact
WHat should I start with? What else do I need for that?
Can anyone suggest some tutorials / guides how can I do it?
I'm a newbie to MS Exchange Server
I don't think it will work with Outlook Web Access. It is a client that connects to Exchange server and it does not offer an API. You should be connecting to the exchange server directly.
Please see the following for more info on possible technologies that can be used:
http://weblogs.asp.net/whaggard/archive/2007/01/30/how-do-i-access-my-outlook-contacts-from-my-web-application.aspx
The first part has a brief explanation and good info.
The example are in .NET
Since you will be working in Java, the following post might help in giving you tools in java that address connecting to Exchange Server and getting data from it.
Open source java library to read outlook emails, calendar etc
And two other commercial products from the same company:
http://www.moyosoft.com/jbex/
http://www.moyosoft.com/joc/
Depending on the Exchange Server configuration you might want to try this Exchange Web Service (EWS).
Also some examples can be found #SO: How to connect Exchange Web Services via java web service client?
Please be aware that even version 1.2 does not provide all the features Outlook itself has and has some bugs around calendar items - but for mails it works usually quite well.
Related
What is Exchange Web Services? How to use Exchange Web Services to access Outlook calendar data using Java?
You can view EWS as a library available from Microsoft to access Exchange Web Services. It's fairly easy and there are some nice tutorials on the Microsoft website.
https://msdn.microsoft.com/en-us/library/office/jj220499%28v=exchg.80%29.aspx
This should help you get started. Also this is for c# and vb. I don't know how you would use this in java, or even if you can. Good luck!
I am new to spring.I had a doubt regarding sending mails.How can i send a bulk of mails from spring based web application in which i have a requirement in my project.
I have no idea on this please suggest me something which is helpful
Thanks in advance
you can send bulkemails using spring and it also offers scheduling a mails to multiple reciepts refer this example
refererence
You can also go through some of the real sites which are already exists and using for marketing with bulkmails check this
so that you can get an idea to work on your requirements
I usually offer some code but in this case I would just copy-paste from this tutorial.
Spring has very little in terms of mailing support (which is found in the context-support module), which itself is just a wrapper over the javax.mail package.
I would use a service like Amazon SES, which helps keep your email messages out of spam boxes.
Install an MTA (like Postfix) in Satellite Mode on your local machine. This will relay emails to Amazon SES.
Use JavaMail to send email messages to localhost, and they will go to your MTA queue, and get sent to Amazon.
Make sure you are complying with anti-spam legislation: http://www.business.ftc.gov/documents/bus61-can-spam-act-compliance-guide-business
I want to be able to send/receive mail from my Java Server application. Is there a standard tool chain to use? [The main thing is that I am writing an enterprise web app in Java, and I need a way to (1) send emails that contain authorization codes and (2) receive complaints.]
Thanks!
EDIT: I apologize. This is entirely my fault. I was not clear in the spec.
When I say send/receive emails, I meant: I need my application to be able to run it's own mail server. I don't have an external imap/pop3 account I'm using. My application need to provide the mail server.
The Apache James project might be a good starting point. It is a full-featured SMTP server written in Java. I am certain it is possible to interface other Java applications with James and/or write James extensions.
what you're looking for it's java mail and it's compatible with EE here's the link
Sending and receiving EMails you can do with the help of Java EE standard JavaMail API. If your application is spring enabled, you can use org.springframework.mail package which has some good abstraction utilities. Apart from this you need to have MTA(Mail Trasport Agent) like James as mentioned above.
Definitely a good alternative is Java E-mail Server (JES) at http://javaemailserver.sourceforge.net/. It's a full blown server for sending and receiving mail. "JES is a multi-featured hybrid MTA/MDA server written in the java programming language."
I need to access exchange 2010 calendaring services from a thunderbird plugin. The web services are missing their "services", apparently they are all kept in ExchangeServiceBinding class. Any ideas on how to connect to these services using anything other than .Net? We have skills in python, php, java and can learn a few more.
DavMail (<http://DavMail.SourceForge.net>) would be another option.
Personally I have only used Active Directory and Email Service.
The following link might help to read calender service using Java:
http://code.google.com/p/exchange-calendar/source/browse/trunk/src/main/java/ws/ExchangeCalendarRetriever.java?r=2
I am trying to integrate Java web application with Microsoft Exchange server for bi-directional calendar (i.e. Task) synchronization. Are there any Java Open-Source / Commercial API for this integration?
Thanks,
Venkat
Take a look at j-Exchange and SyncEx.
This issue was once discussed on Java Forums
Found this commercial API, offers quick solution to integrate with Exchange Server.
http://www.independentsoft.de/jwebservices/index.html
Microsoft made a new version of the Java APIs for Exchange 2007 and 2010.
It also has examples in the wiki.
https://github.com/OfficeDev/ews-java-api
http://blogs.msdn.com/b/exchangedev/archive/2010/12/14/exchange-web-services-java-api-1-1-is-now-available-yes-that-s-right-java.aspx
Updated link:
Exchange Web Services (EWS) Java API 1.2
http://code.msdn.microsoft.com/Exchange-EWS-Java-API-12-1a5a1143
JEC is another Commercial API, It supports all Exchange versions, and as a bonus you can also run power shell, and Exchange Management Shell commands (via PSB)
You can use the CNS Media GateWay to synchronize your Exchange server with Java.
You can connect from any custom application like java to MS Exchange (2000 – 2013), MS SharePoint, Dynamics CRM, Dynamics NAV and many more via the CNS ODBC and JDBC driver, thus accessing, for example, the entire Exchange mailbox from your custom application.
Please let me know if you need some more information.
for more info visit:
http://www.connecting-software.com