opennms-mirror / README.java_mail

Adding support JavaMail API for Notifications

David Hustace
2004-09-10

Summary of changes:
	- Added JavaMail API to lib/ and build.xml
	- Added activation.jar to lib/
	- Used strategy pattern and created an Executor strategy interface now implemented by CommandExecutor.java
		and a new ClassExecutor.java.
	- Used strategy pattern and created a Notification strategy interface now implemented by
		JavaMailNotificationStrategy.java and a stub for my experiments with JavaJabberNotificationStrategy.java.
	- Made kludgy change to notificationCommands.xsd to support a command flag (true|false) identifying the
		the command as a binary.
		
		To add your own Java based notifier, create a class based on the
		NotificationStrategy.java interface and add an entry to the notificationCommands.xml file with
		the binary flag set to "false" and name of your notification class
		(i.e org.opennms.netmgt.notifd.JavaMailNotificationStrategy.java)
	

Very many more TODOs:
	- Refine xml schemas and properties to support some of the mailer's arguments currently
		not defined in the notification code: SMTP Host, From Address, mail protocol,
		mail authentication, etc.
	- Use JavaMail API for sending reports 
	- Java docs and functional documentation
	- Change to use javaMail for email address targets in path instead of /bin/mail
		not working
	
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.