[prev in list] [next in list] [prev in thread] [next in thread]
List: wsf-javascript-dev
Subject: Re: [Dev] Doubt: How to use a queue from TIBCO EMS Server as a source in WSO2 Stream Processor
From: Nelson Dias <srandrediaz () gmail ! com>
Date: 2020-02-18 8:30:10
Message-ID: CACCsEj53Z5MgMuHdoKFeWgjEmoE5S_6G5B-SxwivE=qpawOnuQ () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hey guys,
Can you help me out with some tips about this doubt?
Btw, if you want you can reply directly the stackoverflow question:
https://stackoverflow.com/questions/60211468/using-a-queue-from-tibco-ems-server-as-a-source-in-wso2-stream-processor
Tks in advance for your help :)
Nelson
On Thu, 13 Feb 2020 at 16:56, Nelson Dias <srandrediaz@gmail.com> wrote:
> Hey guys,
>
> In spite I have already created a new topic in Stack Overflow
> <https://stackoverflow.com/questions/60211468/using-a-queue-from-tibco-ems-server-as-a-source-in-wso2-stream-processor>
> with the same question, I am completely lost about how to use a queue from
> TIBCO EMS as a source in WSO2 Stream Processor.
>
> According to Siddhi documentation, I guess the first step should be
> create a @source definition like thist:
>
> @source(type='jms',@map(type='json'),
> factory.initial='com.tibco.tibjms.naming.TibjmsInitialContextFactory',
> provider.url='tcp://localhost:7072',
> connection.factory.jndi.name='QueueConnectionFactory',
> connection.factory.type='queue',
> connection.username='JNDI_username',
> connection.password='JNDI_password', destination ='queue_name')
> define stream jmsInputStream (name string, amount double)
>
> So, in the case of wanting to create an JNDI initial context, which are
> the properties that I may use to use it in order to pass the " Initial
> Context Factory", "JNDIContextURL", "JNDIUsername" and "JNDIPassword"?
>
> Next, which properties should be used to pass the "EMSUsername" and
> "EMSPassword"?
>
> Moreover, should I copy any EMS jars to a particular WSO2 Stream Processor
> folder?
>
> Btw, regarding to the jmsInputStream schema, let's suppose I have a
> jmsBody with the following xml:
>
> <CATALOG>
> <PLANT>
> <COMMON>Bloodroot</COMMON>
> <BOTANICAL>Sanguinaria canadensis</BOTANICAL>
> <ZONE>4</ZONE>
> <LIGHT>Mostly Shady</LIGHT>
> <PRICE>$2.44</PRICE>
> <AVAILABILITY>031599</AVAILABILITY>
> </PLANT>
> <PLANT>
> <COMMON>Columbine</COMMON>
> <BOTANICAL>Aquilegia canadensis</BOTANICAL>
> <ZONE>3</ZONE>
> <LIGHT>Mostly Shady</LIGHT>
> <PRICE>$9.37</PRICE>
> <AVAILABILITY>030699</AVAILABILITY>
> </PLANT>
> <PLANT>
> </CATALOG>
> Do I have to declare all the xml structure in the stream schema?
>
> I may guess that some of these are very dumb questions but the reality is
> that I'm completely lost at the moment.
>
> Tks in advance for your feedback,
>
> Best regards,
> Nelson
>
>
[Attachment #5 (text/html)]
<div dir="ltr">Hey guys,<br><div><br></div><div>Can you help me out with some tips \
about this doubt?</div><div><br></div><div>Btw, if you want you can reply directly \
the stackoverflow question:</div><div><br></div><div><a \
href="https://stackoverflow.com/questions/60211468/using-a-queue-from-tibco-ems-server \
-as-a-source-in-wso2-stream-processor">https://stackoverflow.com/questions/60211468/using-a-queue-from-tibco-ems-server-as-a-source-in-wso2-stream-processor</a> \
</div><div><br></div><div>Tks in advance for your help \
:)</div><div><br></div><div>Nelson <br></div></div><br><div class="gmail_quote"><div \
dir="ltr" class="gmail_attr">On Thu, 13 Feb 2020 at 16:56, Nelson Dias <<a \
href="mailto:srandrediaz@gmail.com">srandrediaz@gmail.com</a>> \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hey \
guys,<div><br></div><div>In spite I have already created a new topic in <a \
href="https://stackoverflow.com/questions/60211468/using-a-queue-from-tibco-ems-server-as-a-source-in-wso2-stream-processor" \
target="_blank">Stack Overflow</a> with the same question, I am completely lost about \
how to use a queue from TIBCO EMS as a source in WSO2 Stream \
Processor.</div><div><br></div><div>According to Siddhi documentation, I guess the \
first step should be create a @source definition like \
thist:</div><div><br></div><div><span \
style="color:rgb(36,39,41);font-family:Arial,"Helvetica \
Neue",Helvetica,sans-serif;font-size:15px;background-color:rgb(251,242,212)">@source(type='jms',@map(type='json'),</span><br \
style="box-sizing:inherit;color:rgb(36,39,41);font-family:Arial,"Helvetica \
Neue",Helvetica,sans-serif;font-size:15px;background-color:rgb(251,242,212)"><span \
style="color:rgb(36,39,41);font-family:Arial,"Helvetica \
Neue",Helvetica,sans-serif;font-size:15px;background-color:rgb(251,242,212)">factory.initial='com.tibco.tibjms.naming.TibjmsInitialContextFactory', \
provider.url='tcp://localhost:7072',</span><br \
style="box-sizing:inherit;color:rgb(36,39,41);font-family:Arial,"Helvetica \
Neue",Helvetica,sans-serif;font-size:15px;background-color:rgb(251,242,212)"><span \
style="color:rgb(36,39,41);font-family:Arial,"Helvetica \
Neue",Helvetica,sans-serif;font-size:15px;background-color:rgb(251,242,212)"><a \
href="http://connection.factory.jndi.name" \
target="_blank">connection.factory.jndi.name</a>='QueueConnectionFactory',</span><br \
style="box-sizing:inherit;color:rgb(36,39,41);font-family:Arial,"Helvetica \
Neue",Helvetica,sans-serif;font-size:15px;background-color:rgb(251,242,212)"><span \
style="color:rgb(36,39,41);font-family:Arial,"Helvetica \
Neue",Helvetica,sans-serif;font-size:15px;background-color:rgb(251,242,212)">connection.factory.type='queue',</span><br \
style="box-sizing:inherit;color:rgb(36,39,41);font-family:Arial,"Helvetica \
Neue",Helvetica,sans-serif;font-size:15px;background-color:rgb(251,242,212)"><span \
style="color:rgb(36,39,41);font-family:Arial,"Helvetica \
Neue",Helvetica,sans-serif;font-size:15px;background-color:rgb(251,242,212)">connection.username='JNDI_username',</span><br \
style="box-sizing:inherit;color:rgb(36,39,41);font-family:Arial,"Helvetica \
Neue",Helvetica,sans-serif;font-size:15px;background-color:rgb(251,242,212)"><span \
style="color:rgb(36,39,41);font-family:Arial,"Helvetica \
Neue",Helvetica,sans-serif;font-size:15px;background-color:rgb(251,242,212)">connection.password='JNDI_password', \
destination ='queue_name')</span><br \
style="box-sizing:inherit;margin-bottom:0px;color:rgb(36,39,41);font-family:Arial,"Helvetica \
Neue",Helvetica,sans-serif;font-size:15px;background-color:rgb(251,242,212)"><span \
style="color:rgb(36,39,41);font-family:Arial,"Helvetica \
Neue",Helvetica,sans-serif;font-size:15px;background-color:rgb(251,242,212)">define \
stream jmsInputStream (name string, amount double)</span> \
<br></div><div><br></div><div>So, in the case of wanting to create an JNDI initial \
context, which are the properties that I may use to use it in order to pass the \
"
Initial Context Factory", "JNDIContextURL", "JNDIUsername" \
and "JNDIPassword"?</div><div><br></div><div>Next, which properties should \
be used to pass the "EMSUsername" and \
"EMSPassword"?</div><div><br></div><div>Moreover, should I copy any EMS \
jars to a particular WSO2 Stream Processor folder?</div><div><br></div><div>Btw, \
regarding to the jmsInputStream schema, let's suppose I have a jmsBody with the \
following xml:</div><div><br></div><div><div \
style="color:rgb(0,0,0);font-family:monospace;font-size:13px"><span><CATALOG></span></div><div \
style="margin-left:1em;color:rgb(0,0,0);font-family:monospace;font-size:13px"><span></span><div \
id="gmail-m_706697875588906835gmail-collapsible1"><div><div><span \
style="display:inline-block;width:10px;background-position:initial;background-size:ini \
tial;background-repeat:initial;background-origin:initial;background-clip:initial;backg \
round-color:initial;vertical-align:bottom;height:10px"></span><span><PLANT></span></div><div \
style="margin-left:1em"><span></span><div><span><COMMON></span><span>Bloodroot</ \
span><span></COMMON></span></div><span></span><div><span><BOTANICAL></span><span>Sanguinaria \
canadensis</span><span></BOTANICAL></span></div><span></span><div><span><ZONE \
></span><span>4</span><span></ZONE></span></div><span></span><div><span><LIGHT></span><span>Mostly \
Shady</span><span></LIGHT></span></div><span></span><div><span><PRICE></sp \
an><span>$2.44</span><span></PRICE></span></div><span></span><div><span><AVAI \
LABILITY></span><span>031599</span><span></AVAILABILITY></span></div><span></span></div><div><span></PLANT></span></div></div></div><span></span><div \
id="gmail-m_706697875588906835gmail-collapsible2"><div><div><span \
style="display:inline-block;width:10px;background-position:initial;background-size:ini \
tial;background-repeat:initial;background-origin:initial;background-clip:initial;backg \
round-color:initial;vertical-align:bottom;height:10px"></span><span><PLANT></span></div><div \
style="margin-left:1em"><span></span><div><span><COMMON></span><span>Columbine</ \
span><span></COMMON></span></div><span></span><div><span><BOTANICAL></span><span>Aquilegia \
canadensis</span><span></BOTANICAL></span></div><span></span><div><span><ZONE \
></span><span>3</span><span></ZONE></span></div><span></span><div><span><LIGHT></span><span>Mostly \
Shady</span><span></LIGHT></span></div><span></span><div><span><PRICE></sp \
an><span>$9.37</span><span></PRICE></span></div><span></span><div><span><AVAI \
LABILITY></span><span>030699</span><span></AVAILABILITY></span></div><span></span></div><div><span></PLANT></span></div></div></div><span></span><div \
id="gmail-m_706697875588906835gmail-collapsible3"><div><div><span \
style="display:inline-block;width:10px;background-position:initial;background-size:ini \
tial;background-repeat:initial;background-origin:initial;background-clip:initial;backg \
round-color:initial;vertical-align:bottom;height:10px"></span><span><PLANT></span></div><div><span \
style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:small"></CATALOG> \
</span></div></div></div></div></div><div> Do I have to declare all the xml \
structure in the stream schema?</div><div><br></div><div>I may guess that some of \
these are very dumb questions but the reality is that I'm completely lost at the \
moment.</div><div><br></div><div>Tks in advance for your \
feedback,</div><div><br></div><div>Best \
regards,</div><div>Nelson</div><div><br></div></div> </blockquote></div>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic