Problem with MailSession on 5.2

"Hans J. Prueller" <[email protected]> Thu, 10 Feb 2011 10:36:45 +0100
Newsgroups gmane.comp.java.objectweb.jonas
Organization LBS logics GmbH
Message-ID <1297330605.3323.5.camel@smithers>
Hi all,

unfortunately a thing that was expected to be very easy to migrate is
one of our last problems : sending mails with JOnAS 5.2 Mailservice.

Even the mailservice is contained in the java-ee-5-earsample, we did not
succeed in getting mail to work.

Configured mail service in jonas.properties:

-- added "mail" to the services list
-- included MailSessionLBSIMS name in the mailsession config list (and
there is a MailSessionLBSIMS.properties file in JONAS_BASE conf)

---> this is similar/identical to JOnAS 4


in our mail sending SLSB i tried to lookup the mailsession via JNDI name
but we get the following error:

com.lbslogics.ims.exceptions.IMSApplicationException: You have not
configured the mail factory with the name specified in the
jonas-ejb-jar.xml file for mailSession_lbsims . By default, the
factory's name is mailSession_1 :Cannot perform lookup
at
com.lbslogics.ims.mobility.ejb.MessagingServiceBean.lookupMailsession(MessagingServiceBean.java:1556)


but I guess a jonas-ejb-jar.xml should not be needed for that any
more????


hans