cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

how can I listen a JMS queue message in Windchill?

Selva
1-Newbie

how can I listen a JMS queue message in Windchill?

Hello all,

I need to listen a JMS queue and to read the data from the JMS queue to create objects in Windchill .I have no idea about this funtionality. Have anyone has done this kind of work in Windchill?

Can you share your experience?

Windchill queue will work out on this requirement?

Thanks in advance

Thanks,

Selvam

11 REPLIES 11

On 12/13/2010 9:40 AM, Selvam P wrote:
HI Selvam,
I have done this before with tasks and with tibco - you can use java
also if you want.  What is it that  you are trying to do and where would
you like to accomplish it - task, java ... ?


--Bob

> Hello all,
>
> I need to listen a JMS queue and to read the data from the JMS queue
> to create objects in Windchill .I have no idea about this
> funtionality. Have anyone has done this kind of work in Windchill?
>
> Can you share your experience?
>
> Windchill queue will work out on this requirement?
>
> Thanks in advance
>
> Thanks,
>
> Selvam
>
>
> ----------

Selva
1-Newbie
(To:Selva)

hi bob,

thanks for your reply.

I will get some message queue from Jave Messaging Server (JMS server), which willl have the details about the objects (attribute values, attachements, workflow names, lifecycle names ..etc). I will get that information in winchill and will create a new object or will update the existing object.

I will work in Java only, i prefer to do in Java only.

I want to know ,how canI link JMS server and Windchill to collect the information?

Can I use Service Listener in Windchill? or OOTB Queue service?

I tried service listener , but i do not know how can i listen the JMS queue.

Am i explained well, Bob?

--Selvam

jessh
5-Regular Member
(To:Selva)

Windchill service listeners listen to Windchill services -- not JMS queues.

Windchill queues are its own background execution queues so the OOTB
queue service addresses those -- not JMS queues.

Windchill generally does not use JMS queues so there are not utilities
APIs for doing so. Info*Engine /does/ have utilities to listen to JMS
queues, so you could use those. I'm not sure if this would end up
violating your desire to do this in Java only, though. You can, of
course, use plain old Java and normal JMS APIs to do so yourself.

--
Jess Holle

Selva
1-Newbie
(To:Selva)

thank you jesse.

1. I tried with listeners but not able to listen anything apart from windchill services.- so this is ruled out .

2.I dint try queues but had a discussion with people on this - not enough information i got. As you said I can conclude from my research / understanding this is not possible

3. I have no idea about Info *Engine . I have to explore that also.

4. Plain Java APIs - How can I push the messages from JMS to Windchill using plain java? - I have to explore this also.

Probably a Utility to listen JMS messages.

Anybody has any more idea?

--

Selvam

jessh
5-Regular Member
(To:Selva)

On 12/14/2010 12:36 PM, Selvam P wrote:
>
> thank you jesse.
>
> 1. I tried with listeners but not able to listen anything apart from
> windchill services.- so this is ruled out .
>
Listeners are a very generic concept in Java -- but each type of
listener is /*very* /particular about what it can listen for. In short,
Windchill service listeners have nothing to do with JMS.
>
> 2. I dint try queues but had a discussion with people on this - not
> enough information i got. As you said I can conclude from my research
> / understanding this is not possible
>
Similarly Windchill queues have nothing to do with JMS.
>
> 3. I have no idea about Info *Engine . I have to explore that also.
>
> 4. Plain Java APIs - How can I push the messages from JMS to Windchill
> using plain java? - I have to explore this also.
>
> Probably a Utility to listen JMS messages.
>
I am not an expert in Info*Engine or JMS, but clearly JMS is a Java
standard with standard Java APIs and specific client-side libraries are
provided with each JMS queue product. I also know there are some
utilities in Info*Engine to ease interaction between Info*Engine and
JMS. Beyond this, however, I can't say much as I've not used them.

--
Jess Holle

Selva
1-Newbie
(To:Selva)

thanks a lot Jesse,

I guess I can try Info *Engine because some of my friends also told about it. So I will try that option also

Now I get the JMSmessage and store it some txt files and then read that information in Windchill utility(run from Windchill shell) and then I create objects in windchill.

---

selvam

Selva
1-Newbie
(To:Selva)

hi all,
Thanks for your valuable ideas.

now I am trying with Info *Engine and also got some information about ESI module in Windchill
. So I am trying these two methods.

If anyone has any more idea about the Info *Engine connectivity , please share your ideas.

--
Selvam
Selva
1-Newbie
(To:Selva)

hi bob,

can you tell me the step by step connectivity methods in TIBCO and Windchill.

Will TIBCO push the JMS messages to the Windchill?

--

selvam

H Selvam,
Is your idea to use ESI or have Windchill interface with any JMS?

If you want to just subscribe to JMS queue, you have to go to Info*Engine
administrator and create a Info*engine connection (I believe it is called
adapter), with parameters to connect to target JMS. The parameters are
probably documented in one of the guides. If not, PTC might be able to help.

That is all you have to do as far as configuration is concerned.

After that, just call Subscribe-Queue Webject with adapter name.

Thanks
Sudeep


Selva
1-Newbie
(To:Selva)

hi sudeep,

yes you are correct. ESI needs separate license to use it. So I am going to use Info *Engine only.

Using Info engine we can subscribe to the JMs queues. But we need some adapters like TIBCO or WMB.

Thanks for your info.Windchill does have the Info Engine documentation.

--

selvam

Selva
1-Newbie
(To:Selva)

hi all

I started working on Info *Engine. It seems that there isa way to connect the WMB and Info *Engine through Ldap DS.

could anyone tell me how can link the Ldap with WMB? I put an entry in jmsconfig.config file in WMB but still it is not working.

I do not knowif I gave thecorrect Ldap details.

--

selvam

Top Tags