stone crasy [
http://community.jboss.org/people/free] commented on the document
" how to build email of the service task,better give me a sample "
To view all comments on this document, visit:
http://community.jboss.org/docs/DOC-17188#comment-7604
--------------------------------------------------
Connection not initialized for Email,Maybe connection is null ,
CustomWorkItemHandlers.conf could not work?(
i have run
ant clean.demoant 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.
--------------------------------------------------