JBoss Community

how to build email of the service task,better give me a sample

new comment by stone crasy View all comments on this document

Connection not initialized for Email,Maybe connection is null ,

CustomWorkItemHandlers.conf could not work?(

i have run

ant clean.demo

ant install.demo

ant start.demo

)

Then,i modify like this:

EmailWorkItemHandler email =new EmailWorkItemHandler();

email.setConnection(("MySMTPHost","MySMTPPort","MyUsername","MyPassword");

ksession.getWorkItemManager().registerWorkItemHandler("Email",email);

 

there is not error,but it still not work,who could help me?

 

ksession.getGlobals() is null.