}
private void notifyCustomer( OrderLocal order )
throws Exception
{
CustomerLocal customer = order.getCustomer( );
if ( customer == null)
{
Debug.print( "No customer to notify" );
return;
}
String to = customer.getCustomerValue( ).getEmail( );
String subject = "[Petstore] Order Confirmation";
String body = toHtml( order );
JMSUtil.sendToJMSQueue( JNDINames.QUEUE_MAIL, new Email( to, subject, body ), false );
}