Invoking the Email Listener JPO

The email listener connects to the ENOVIA Live Collaboration Server using an anonymous context.

The processing JPO:


  • Is executed using a JPO invoke call
  • Has a super user assigned to it
  • Can reset context to any user without a password

The JPO method has this signature:

public int mxMain(Context context, String []args) throws 
MatrixException

The first element of the arguments array is the XML preprocessed message as described above.

If the invocation of the JPO:


  • Is successful (no thrown exception), the message is deleted form the inbox.
  • Throws an exception, the message remains in the inbox and will be processed again.

To support this JPO, the list person MQL command includes an email selectable. This command returns a list of persons with email addresses that match the provided pattern:

list person email EMAIL_ADDRESS_PATTERN

The processing JPO uses the result to identify a person in the database based on the email address in the from field.