com.bea.p13n.mail
Class MailManager
java.lang.Object
|
+--com.bea.p13n.mail.MailManager
- public class MailManager
- extends java.lang.Object
Command-line interface to manager mail batches, through the
MailService session bean.
Command line arguments include:
- -action <action>: Can be "list", "send", or "delete";
defaults to "list". Without any other args, an action of "list" will list
all batches; combined with a batch name, it will list the messages in that
batch.
An action of "send" will send all the messages in the batch; if the
"delete" flag is also present, it will delete the batch after sending.
An action of "delete" will delete the batch and all messages in the batch.
- -batch <name>: The name of the batch to list, send, or
delete, depending on the provided action.
- -delete: A flag to delete the batch after sending
- -providerURL <url>: The URL to use for JNDI lookups;
defaults to the local system
- -contextFactory <class>: JNDI Context Factory class;
defaults to
weblogic.jndi.WLInitialContextFactory
.
- -jndiName <name>: the JNDI name of the MailService to use
- -appName <name>: the name of application on the server to
work in. This will be used if -jndiName is not specified. One of either
jndiName of appName is required.
- -username <name>: username to connect as. Optional,
defaults to "guest".
- -password <password>: password to use, if a username is
provided.
Method Summary
|
static void |
main(java.lang.String[] args)
Execute this program
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
DEFAULT_PROVIDER_URL
protected static final java.lang.String DEFAULT_PROVIDER_URL
DEFAULT_INITIAL_CONTEXT_FACTORY
protected static final java.lang.String DEFAULT_INITIAL_CONTEXT_FACTORY
MAIL_SERVICE_BASE
protected static final java.lang.String MAIL_SERVICE_BASE
LIST_ACTION
public static final java.lang.String LIST_ACTION
SEND_ACTION
public static final java.lang.String SEND_ACTION
DELETE_ACTION
public static final java.lang.String DELETE_ACTION
MailManager
public MailManager()
main
public static void main(java.lang.String[] args)
- Execute this program
See the class notes for details about the command-line
arguments.
- Parameters:
args
- the command-line arguments.
Copyright © 2002 BEA Systems, Inc. All Rights Reserved