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 Message Broker (ACE) Support » SendMailPlugIn dynamically setting the host and port

Post new topic  Reply to topic
 SendMailPlugIn dynamically setting the host and port « View previous topic :: View next topic » 
Author Message
jdevassy
PostPosted: Mon Sep 26, 2011 10:30 pm    Post subject: SendMailPlugIn dynamically setting the host and port Reply with quote

Apprentice

Joined: 16 Oct 2005
Posts: 37
Location: Melbourne, Australia

Hi,

I am using the SendMail plugin fomr IA07. Can I dynamically set the host and port from the incoming message to the node rather than setting it on the SMTP property of the node?

Thanks in advance for your help
jdevassy
Back to top
View user's profile Send private message Yahoo Messenger
smdavies99
PostPosted: Tue Sep 27, 2011 2:53 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

Why are you using a SupportPack that has been replaced by a builtin node?

Are you using an old version of Broker?
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
mqsiuser
PostPosted: Tue Sep 27, 2011 10:28 am    Post subject: Re: SendMailPlugIn dynamically setting the host and port Reply with quote

Yatiri

Joined: 15 Apr 2008
Posts: 637
Location: Germany

jdevassy wrote:
I am using the SendMail plugin fomr IA07. Can I dynamically set the host and port from the incoming message to the node rather than setting it on the SMTP property of the node?


Look at the pdf of the support pack. But I guess you cannot. Write the author of the support-pack (I did once and he replied). Does the build in node provide that ? (I guess it does not, because SMTP-Servers are usually only a few and don't change that often)

So you will also likely not have too many SMTP-Servers and they are not changing that often... just lets say you have 5 different SMTP-Servers. Then put in the node 5 times (with the 5 smtp servers configured) and put in a dynamic routing in front (in your case routing will be based on information from the message).

If your SMTP-Servers change more frequently create a separate flow for each smtp-server and route to their input-queues. Add or remove a new SMTP-flow each time a SMTP-Server gets added/removed and also adjust the routing (in that case probably in a db(-table)). Be aware that (MIME-)Attachments do not work (get lost) when you use a separate flow (with that I mean that at least I didn't make it work).
Back to top
View user's profile Send private message
jdevassy
PostPosted: Mon Oct 03, 2011 1:38 am    Post subject: Reply with quote

Apprentice

Joined: 16 Oct 2005
Posts: 37
Location: Melbourne, Australia

Thanks for the replies...

@smdavies99, Yes, we are on an older version of the Broker (6.0.0.2). This is an interim solution.

@mqsiuser, different nodes for each environment may be the option in this case and read the server info from a config file. I will try this out and let you know.

Thanks again

jdevassy
Back to top
View user's profile Send private message Yahoo Messenger
mqsiuser
PostPosted: Wed Oct 05, 2011 12:45 am    Post subject: Reply with quote

Yatiri

Joined: 15 Apr 2008
Posts: 637
Location: Germany

In this post: http://www.mqseries.net/phpBB2/viewtopic.php?p=308586&highlight=#308586 there is an interesting proposal.

Translated to your requirements it suggests to create a User-Defined-Property, e.g. "smtpServerIP" (and "smtpServerPort") to be accessed in your ESQL via the EXTERNAL KeyWord. Then promote your userdefined property along with the "smtpServerIP" property of the eMail-node to a single property on flow level (yes this is possible).

Probably this can help to access the property from within you ESQL-Code. Can you try out this an keep us informed. I am curious.
_________________
Just use REFERENCEs
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 Message Broker (ACE) Support » SendMailPlugIn dynamically setting the host and port
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.