ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Interchange Server + Adapters » Email Adapter help

Post new topic  Reply to topic
 Email Adapter help « View previous topic :: View next topic » 
Author Message
rossired
PostPosted: Thu Oct 12, 2006 7:22 am    Post subject: Email Adapter help Reply with quote

Novice

Joined: 22 Feb 2006
Posts: 22

Hi all,

I am trying to do a simple experiment using the email adapter and message broker. But I think I have my adapter configured incorrectly. My main objective is polling an email server, and then having the adapter take the email message and drop it in a queue, which I will later process in MB.

So, per the infocenter, I have configured a business object ( MO_Email_Default) which has a child object (MO_PollLocation1) that contains the attributes ( mailserver, username, pollfolder etc ) which default to the actual mail server I want to use. Then in the adapter config file, set the PollConfigMO attribute to "MO_Email_Default". Starting the adapter, I don't get any errors, and it indicates that it is polling. In the trace, I see successful connect to the SMTP_Mailhost.

So in my email client, I drop a message in the folder I have configued in my BO as the pollfolder, but the adapter doesn't seem to pick it up when it polls. Also, I don't see anything in my queues. I set the pollfolder in my BO to one that doesnt exist to see it it will generate an error, but it didn't.

So it seems that I do not have the polling configured properly. No errors, but no processing either. I have tried a couple of different servers in my BO ( pop, and smtp for both gmail and charter.net ). But again, since I don't get errors for entering bad data, it seems that I dont have the configuration right.

Is it correct that the PollConfigMO attribute is supposed to contain the name of the BO ( xsd ) ? Is there another switch in the config I am missing ?

Any feedback is appreciated..

Thanks
Vale
Back to top
View user's profile Send private message
vennela
PostPosted: Thu Oct 12, 2006 11:14 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

What is your broker?
ICS or WMB?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
rossired
PostPosted: Thu Oct 12, 2006 11:46 am    Post subject: Reply with quote

Novice

Joined: 22 Feb 2006
Posts: 22

vennela wrote:
What is your broker?
ICS or WMB?


My broker is WMB ( if I can ever get the message on a queue )...

Thanks
Vale
Back to top
View user's profile Send private message
vennela
PostPosted: Thu Oct 12, 2006 12:14 pm    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

Have you created the necessary message sets and message flows?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
rossired
PostPosted: Thu Oct 12, 2006 12:22 pm    Post subject: Reply with quote

Novice

Joined: 22 Feb 2006
Posts: 22

vennela wrote:
Have you created the necessary message sets and message flows?



No not yet.

To explain, I am not going in the direction of sending data out from MB to the email adapter to an email server.

I am trying to get the email adapter to poll a mail server, grab the message from the poll folder, put it on a queue, at which point I will create a flow to read the queue etc...

I am stuck on getting the adapter to grab messages from the mail server. Once I get the message onto a queue, I will proceed with trying to strip attachments from the message ( which I am sure will be a seperate poste when I get that far )..

Thanks
Vale
Back to top
View user's profile Send private message
rossired
PostPosted: Fri Oct 13, 2006 11:47 am    Post subject: Getting Further Reply with quote

Novice

Joined: 22 Feb 2006
Posts: 22

Ok, definitely getting further. I have the adapter polling the email server properly now, and actually attempting to process messages. But it is failing trying to convert to objects. I am using the MO_DataHandler_Default BO and it's with its default types ( text_plain, text_xml, etc )... And here is the error I am getting:

[Type: Error] [MsgID: 33003] [Mesg: Cannot process attachment# 1 file name: Description: Mime type: text/plain. Encountered an exception: java.lang.Exception: Already reached end of BO while expecting more token ]
[Type: Error] [MsgID: 33003] [Mesg: Cannot process attachment# 2 file name: Description: Mime type: text/html. Encountered an exception: CxCommon.Exceptions.BusObjSpecNameNotFoundException: Unable to find version "*.*.*" of business object definition "<html xmlns:o="urn:schemas-microsoft-com:office:of".]

Any clues as to whats going on and how I can correct this. The email message is a simple one with a single word in the subject and a single word in the body of the message.

Thanks
Vale
Back to top
View user's profile Send private message
RocknRambo
PostPosted: Sat Oct 14, 2006 7:04 am    Post subject: Reply with quote

Partisan

Joined: 24 Sep 2003
Posts: 355

based on the datahandler configured with the MO's, the adapter expects the same data in the Email content as ur child object.

take a look at the sample BO's provided with the installer, its been a while I configured it, I can lookup for sample BO's

and btw, what version of email adapter?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Interchange Server + Adapters » Email Adapter help
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.