You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Prasuna Lanka <pr...@gmail.com> on 2009/02/20 09:06:07 UTC

[Axis2] JMS in axis2

We want to post the webservice request to JMS Queue. I found samples only
exposing the service over JMS. How would we get access to connection
instance in skeleton or receiverInout if we configure JMS parameters in
axis2.xml?

Thanks in advance.

Re: [Axis2] JMS in axis2

Posted by Sagara Gunathunga <sa...@gmail.com>.
Hi Prasuna,
Once you have exposed your web service over JMS , you can use
WSDL2JAVA to generate client side Stub and it is possible to use this
Stub to post a request to a JMS Queue . Further you can find URL for
the  JMS endpoint on generated WSDL document.

             // JMS Endpoit
             String
ServiceEPR=".......................................................";

            ConfigurationContext cfgCtx =

ConfigurationContextFactory.createConfigurationContextFromFileSystem(
                    "/opt/java/sw/axis2-1.4.1/repository",
                    "/opt/java/sw/axis2-1.4.1/conf/axis2-client.xml");

           //generated stub
            JMSServiceStub stub=new JMSServiceStub(cfgCtx,ServiceEPR);

after this line you can use client's stub as usual , hope this will help you.

thanks,

On Fri, Feb 20, 2009 at 1:36 PM, Prasuna Lanka <pr...@gmail.com> wrote:
>
> We want to post the webservice request to JMS Queue. I found samples only exposing the service over JMS. How would we get access to connection instance in skeleton or receiverInout if we configure JMS parameters in axis2.xml?
>
> Thanks in advance.


--
Sagara Gunathunga

Blog - ssagara.blogspot.com
Web - http://sagaras.awardspace.com/

Re: [Axis2] JMS in axis2

Posted by Sagara Gunathunga <sa...@gmail.com>.
Hi Prasuna,
May be you can write a Axis2 Module for this , where in your in-phase
handler you can construct a JMS message from MessageContext and post
it to a JMS queue. in this case you  could use Module's init method to
initialize connection to a JMS broker , I'm not sure how  to optimize
JMS broker connectivity with this approach.please refer Axis2 modules
guide [1]

[1]- http://ws.apache.org/axis2/1_4_1/modules.html

Thanks ,

On Thu, Feb 26, 2009 at 2:10 PM, Prasuna Lanka <pr...@gmail.com> wrote:
> Thanks for the replies.
>
> I think i didnt put my query clear. I have exposed a webservice using axis2.
> The client will send the request. Up to this part, i dont require JMS. once
> i received the request, i want to post it to JMS before it reaches to
> ReceiverInout or Skeleton level. Is there any way to do this?
>
> Regards,
> Ps
>
> On 2/20/09, Prabath Siriwardena <pr...@wso2.com> wrote:
>>
>> Hi;
>>
>> This[1] may be helpful.
>>
>> Thanks & regards.
>> -Prabath
>>
>> [1]:http://blog.facilelogin.com/2008/12/enabling-jms-transport-for-axis2.html
>>
>> Prasuna Lanka wrote:
>>>
>>> We want to post the webservice request to JMS Queue. I found samples only
>>> exposing the service over JMS. How would we get access to connection
>>> instance in skeleton or receiverInout if we configure JMS parameters in
>>> axis2.xml?
>>>  Thanks in advance.
>>> ------------------------------------------------------------------------
>>>
>>>
>>> No virus found in this incoming message.
>>> Checked by AVG - www.avg.com Version: 8.0.237 / Virus Database:
>>> 270.11.1/1961 - Release Date: 02/19/09 18:45:00
>>>
>>>
>>
>
>



-- 
Sagara Gunathunga

Blog - http://ssagara.blogspot.com
Web - http://sagaras.awardspace.com/

Re: [Axis2] JMS in axis2

Posted by Prasuna Lanka <pr...@gmail.com>.
Thanks for the replies.

I think i didnt put my query clear. I have exposed a webservice using axis2.
The client will send the request. Up to this part, i dont require JMS. once
i received the request, i want to post it to JMS before it reaches to
ReceiverInout or Skeleton level. Is there any way to do this?

Regards,
Ps


On 2/20/09, Prabath Siriwardena <pr...@wso2.com> wrote:
>
> Hi;
>
> This[1] may be helpful.
>
> Thanks & regards.
> -Prabath
> [1]:
> http://blog.facilelogin.com/2008/12/enabling-jms-transport-for-axis2.html
>
> Prasuna Lanka wrote:
>
>> We want to post the webservice request to JMS Queue. I found samples only
>> exposing the service over JMS. How would we get access to connection
>> instance in skeleton or receiverInout if we configure JMS parameters in
>> axis2.xml?
>>  Thanks in advance.
>> ------------------------------------------------------------------------
>>
>>
>> No virus found in this incoming message.
>> Checked by AVG - www.avg.com Version: 8.0.237 / Virus Database:
>> 270.11.1/1961 - Release Date: 02/19/09 18:45:00
>>
>>
>>
>
>

Re: [Axis2] JMS in axis2

Posted by Prabath Siriwardena <pr...@wso2.com>.
Hi;

This[1] may be helpful.

Thanks & regards.
-Prabath
[1]:http://blog.facilelogin.com/2008/12/enabling-jms-transport-for-axis2.html

Prasuna Lanka wrote:
> We want to post the webservice request to JMS Queue. I found samples 
> only exposing the service over JMS. How would we get access to 
> connection instance in skeleton or receiverInout if we configure JMS 
> parameters in axis2.xml?
>  
> Thanks in advance.
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com 
> Version: 8.0.237 / Virus Database: 270.11.1/1961 - Release Date: 02/19/09 18:45:00
>
>