users@glassfish.java.net

Re: can some one please give me a sample of JMS on glassfish ?

From: Sivakumar Thyagarajan <Sivakumar.Thyagarajan_at_Sun.COM>
Date: Tue, 02 May 2006 14:42:48 +0530

Hi

For a simple JMS Java SE sample [with/without JNDI just to test
producing and consuming a message from a Queue], you could refer to the
sample available in your installation GlassFish under
${install-root}/imq/demo/helloworld/helloworldmessage
The README file available there should help with the instructions
required to get the sample running.

This, BTW, is only a JMS sample. For a sample that uses the broker and a
component residing the application server, you might want to try out the
sample Sreeni pointed to.

Thanks
--Siva.


Legolas Woodland wrote:
> Thank you for your reply , but that client is running inside the
> container , I want the application to run outside of the container.
> I just needs those , provider_url and |INITIAL_CONTEXT_FACTORY|for
> example provider url maybe like : *rmi://localhost:1099/ .... *
>
> why it is always pain to find such easy information about applications
> servers?
> i remember last time that i tried to access websphere JNDI from outside
> of the application server , i dead until i find this two parameters .
>
> I think any one may need this informations , to initiate a context
> object for j2ee application server , MQ system or any other thing that
> is related to j2ee stuff .
>
> please add this (in case you find those two parameters for iMQ and
> application server itself to some FAQ , WIKI ,....)
>
> Thank you very much.
>
> Sreenivas Munnangi wrote:
>
>>Hi,
>>
>>We have a jms sample similar to wht you need in our j2ee14 samples
>>bundle. You may download this from
>>http://java.sun.com/j2ee/1.4/download.html#sdk. This should work on
>>GlassFish as well.
>>
>>Refer to the sample ejb/mdb/apps/simple/simple-client which shows how to
>>retrieve messages using java client.
>>
>>First you may want to experiment this using J2EE 1.4 SDK/SJSAS PE 8.2
>>which can be downloaded form the above URL.
>>
>>Pl. let me know if you need any additional info on this.
>>
>>thanks
>>sreeni
>>
>>
>>
>>Legolas Woodland wrote On 05/01/06 05:20 AM,:
>>
>>
>>
>>>Hi
>>>Thank you for reading my post
>>>where i can find an easy to deploy and test sample for Glassfish and JMS
>>>I want to send some messages to jms server from an standalone java
>>>application AND send messages to jms server from my web application and
>>>use these message from both applications
>>>I will do it using a Queue , i know that i should made a factory and a
>>>destination. even i tried to build my MDB , but i can not fetch those
>>>messages from standalone java application.
>>>
>>>
>>>Any help is very welcome.
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>>>For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>>
>