Btw, I'm refering to EJB 2.1 and JCA 1.5. I'm using JBoss 4.0.0RC1
What I'm wondering about is the cast to of endpoint to JavaMailMessageListener because JMMListener isn't in the type hierarchy. I took this example from the SUN Appserver.
class samples.connectors.inbound.ra.EndpointConsumerImpl, lline 125:
if ( (endpoint = endpointFactory.createEndpoint(null)) != null)
//If this was an XA able RA then invoke: endpoint.beforeDelivery();