[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 &lt;<a \
href="mailto:srandrediaz@gmail.com">srandrediaz@gmail.com</a>&gt; \
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,&quot;Helvetica \
Neue&quot;,Helvetica,sans-serif;font-size:15px;background-color:rgb(251,242,212)">@source(type=&#39;jms&#39;,@map(type=&#39;json&#39;),</span><br \
style="box-sizing:inherit;color:rgb(36,39,41);font-family:Arial,&quot;Helvetica \
Neue&quot;,Helvetica,sans-serif;font-size:15px;background-color:rgb(251,242,212)"><span \
style="color:rgb(36,39,41);font-family:Arial,&quot;Helvetica \
Neue&quot;,Helvetica,sans-serif;font-size:15px;background-color:rgb(251,242,212)">factory.initial=&#39;com.tibco.tibjms.naming.TibjmsInitialContextFactory&#39;, \
provider.url=&#39;tcp://localhost:7072&#39;,</span><br \
style="box-sizing:inherit;color:rgb(36,39,41);font-family:Arial,&quot;Helvetica \
Neue&quot;,Helvetica,sans-serif;font-size:15px;background-color:rgb(251,242,212)"><span \
style="color:rgb(36,39,41);font-family:Arial,&quot;Helvetica \
Neue&quot;,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>=&#39;QueueConnectionFactory&#39;,</span><br \
style="box-sizing:inherit;color:rgb(36,39,41);font-family:Arial,&quot;Helvetica \
Neue&quot;,Helvetica,sans-serif;font-size:15px;background-color:rgb(251,242,212)"><span \
style="color:rgb(36,39,41);font-family:Arial,&quot;Helvetica \
Neue&quot;,Helvetica,sans-serif;font-size:15px;background-color:rgb(251,242,212)">connection.factory.type=&#39;queue&#39;,</span><br \
style="box-sizing:inherit;color:rgb(36,39,41);font-family:Arial,&quot;Helvetica \
Neue&quot;,Helvetica,sans-serif;font-size:15px;background-color:rgb(251,242,212)"><span \
style="color:rgb(36,39,41);font-family:Arial,&quot;Helvetica \
Neue&quot;,Helvetica,sans-serif;font-size:15px;background-color:rgb(251,242,212)">connection.username=&#39;JNDI_username&#39;,</span><br \
style="box-sizing:inherit;color:rgb(36,39,41);font-family:Arial,&quot;Helvetica \
Neue&quot;,Helvetica,sans-serif;font-size:15px;background-color:rgb(251,242,212)"><span \
style="color:rgb(36,39,41);font-family:Arial,&quot;Helvetica \
Neue&quot;,Helvetica,sans-serif;font-size:15px;background-color:rgb(251,242,212)">connection.password=&#39;JNDI_password&#39;, \
destination =&#39;queue_name&#39;)</span><br \
style="box-sizing:inherit;margin-bottom:0px;color:rgb(36,39,41);font-family:Arial,&quot;Helvetica \
Neue&quot;,Helvetica,sans-serif;font-size:15px;background-color:rgb(251,242,212)"><span \
style="color:rgb(36,39,41);font-family:Arial,&quot;Helvetica \
Neue&quot;,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 \
&quot;

Initial Context Factory&quot;, &quot;JNDIContextURL&quot;, &quot;JNDIUsername&quot; \
and &quot;JNDIPassword&quot;?</div><div><br></div><div>Next, which properties should \
be used to pass the &quot;EMSUsername&quot; and \
&quot;EMSPassword&quot;?</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&#39;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>&lt;CATALOG&gt;</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>&lt;PLANT&gt;</span></div><div \
style="margin-left:1em"><span></span><div><span>&lt;COMMON&gt;</span><span>Bloodroot</ \
span><span>&lt;/COMMON&gt;</span></div><span></span><div><span>&lt;BOTANICAL&gt;</span><span>Sanguinaria \
canadensis</span><span>&lt;/BOTANICAL&gt;</span></div><span></span><div><span>&lt;ZONE \
&gt;</span><span>4</span><span>&lt;/ZONE&gt;</span></div><span></span><div><span>&lt;LIGHT&gt;</span><span>Mostly \
Shady</span><span>&lt;/LIGHT&gt;</span></div><span></span><div><span>&lt;PRICE&gt;</sp \
an><span>$2.44</span><span>&lt;/PRICE&gt;</span></div><span></span><div><span>&lt;AVAI \
LABILITY&gt;</span><span>031599</span><span>&lt;/AVAILABILITY&gt;</span></div><span></span></div><div><span>&lt;/PLANT&gt;</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>&lt;PLANT&gt;</span></div><div \
style="margin-left:1em"><span></span><div><span>&lt;COMMON&gt;</span><span>Columbine</ \
span><span>&lt;/COMMON&gt;</span></div><span></span><div><span>&lt;BOTANICAL&gt;</span><span>Aquilegia \
canadensis</span><span>&lt;/BOTANICAL&gt;</span></div><span></span><div><span>&lt;ZONE \
&gt;</span><span>3</span><span>&lt;/ZONE&gt;</span></div><span></span><div><span>&lt;LIGHT&gt;</span><span>Mostly \
Shady</span><span>&lt;/LIGHT&gt;</span></div><span></span><div><span>&lt;PRICE&gt;</sp \
an><span>$9.37</span><span>&lt;/PRICE&gt;</span></div><span></span><div><span>&lt;AVAI \
LABILITY&gt;</span><span>030699</span><span>&lt;/AVAILABILITY&gt;</span></div><span></span></div><div><span>&lt;/PLANT&gt;</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>&lt;PLANT&gt;</span></div><div><span \
style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:small">&lt;/CATALOG&gt; \
</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&#39;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