You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by mr...@wipro.com on 2007/06/19 08:37:02 UTC

How to test the drools component?


Hi,

New to ServiceMix and exploring the drools component. 
I have created a HTTP Consumer SU, a JSR 181 SU (and a SA to deploy the
two.) After the Webservice is processed, I expect the drools endpoint to
be activated. (Pls see the xbean.xml configuration below) since I have
given the targetService attribute. But nothing happens.

Please tell me what is wrong with this approach.

Also - is there any way to test the drools component independently?

Regards,
Mrudula





xbean.xml of the HTTP Consumer SU is given below



<beans xmlns:http="http://servicemix.apache.org/http/1.0"
xmlns:drools="http://servicemix.apache.org/drools/1.0"
xmlns:person="http://servicemix.apache.org/samples/wsdl-first">

  <http:endpoint service="person:MulNumService"
                 endpoint="soap"
                 role="consumer" 
                 locationURI="http://localhost:8195/MulNumService/"
                 defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
                 soap="true" targetService="DroolFinalService"/>   
    <drools:endpoint service="testMe:DroolFinalService"
                  endpoint="endpoint"
                  ruleBaseResource="classpath:test1.drl" />
</beans>


The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
 
www.wipro.com

RE: How to test the drools component?

Posted by mr...@wipro.com.

Gert - I have given the same endpoint names as well. Doesn't seem to
work.

Rgds,
Mrudula

-----Original Message-----
From: Gert Vanthienen [mailto:gert.vanthienen@skynet.be] 
Sent: Wednesday, June 20, 2007 11:38 AM
To: servicemix-users@geronimo.apache.org
Subject: Re: How to test the drools component?

Mrudula,

I usually use the same endpoint names as well, I think. Can you try 
that?  Are there any errors/warnings when you deploy the SA?

Gert

mrudula.madiraju@wipro.com wrote:
> I double checked the servicenames. I do not have the targetservice
> specified. Please find the xbean.xmls below.
>
>
> HTTP-SU's xbean.xml
>
> 	<beans xmlns:http="http://servicemix.apache.org/http/1.0"
> 	
> xmlns:testMe="http://servicemix.apache.org/samples/wsdl-first">
> 	    <http:endpoint service="testMe:DroolFinalService"
>                    endpoint="httpEndPoint"
>                    role="consumer"
>
locationURI="http://localhost:8195/TestDroolService/"
>                    defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
>                    soap="true"/>
> 	 </beans>
>
>
> Drool-SU's xbean.xml
>
> 	<beans xmlns:http="http://servicemix.apache.org/http/1.0"
> xmlns:drools="http://servicemix.apache.org/drools/1.0"
> xmlns:testMe="http://servicemix.apache.org/samples/wsdl-first">
>  		 <drools:endpoint service="testMe:DroolFinalService"
>       	             endpoint="DroolEndpoint"
> 	                    ruleBaseResource="classpath:test1.drl" /> 
> 	</beans>
>
>
> -----Original Message-----
> From: Gert Vanthienen [mailto:gert.vanthienen@skynet.be] 
> Sent: Wednesday, June 20, 2007 11:07 AM
> To: servicemix-users@geronimo.apache.org
> Subject: RE: How to test the drools component?
>
>
> Mrudula,
>
>
> First of all, verify that the namespaces and service names really
match,
> because even the smallest typo will cause this behavior.  Do you still
> have
> the targetService attribute specified in your HTTP SU xbean.xml?  If
so,
> have you added the namespace there?
>
> Repost the xbean.xml files you have right now if you don't succeed in
> solving it with the above questions/remarks...
>
>
> Gert
>
>
> mrudulam wrote:
>   
>> Hi Gert,
>>
>> As advised - I have created a SA which contains
>> a) HTTP SU (containing xbean.xml)
>> b) Drools SU (containing xbean.xml and test1.drl)
>>
>> However, when I invoke it in the browser using the location URI, I
get
>> the error - HTTP ERROR: 404, Unable to find requested resource
>> (main.wsdl)
>>
>> There are no errors in the console and my test1.drl doesn't see to
get
>> executed. ( I have created the two endpoints with the same name and
>> xmlns so that the drools endpoint can be directly exposed over http)
>>
>> Please advise where I could be going wrong.
>>
>> Regards,
>> Mrudula
>>
>>
>>
>>
>>
>>
>> -----Original Message-----
>> From: Gert Vanthienen [mailto:gert.vanthienen@skynet.be] 
>> Sent: Tuesday, June 19, 2007 7:59 PM
>> To: servicemix-users@geronimo.apache.org
>> Subject: RE: How to test the drools component?
>>
>>
>> Mrudula,
>>
>> I don't think you need the targetService in this case.  The Drools
>> endpoint
>> is an internal endpoint, the HTTP endpoint would only expose it to
the
>> outside world.
>>
>> Anyway, if you do specify it however, it should include the correct
>> namespace as well, so it should say
>> targetService="testMe:DroolFinalService".
>>
>> Gert
>>
>>
>> mrudulam wrote:
>>     
>>> Hi Gert,
>>>  
>>> Thanks for the reply. Please verify my understanding. I have listed
>>>       
>> the
>>     
>>> xbean.xml for the HTTP SU and the Drool SU below. Please confirm if
>>>       
>> this
>>     
>>> is what you meant. Also -if I have specified the targetService
>>>       
>> correctly.
>>     
>>>  
>>> By this, when I access the url
>>>       
> http://localhost:8195/TestDroolService,
>   
>> I
>>     
>>> should be able to invoke the test1.drl. Is that correct?
>>>  
>>> Regards,
>>> Mrudula
>>>  
>>>  
>>>  
>>>  
>>>  <beans xmlns:http="http://servicemix.apache.org/http/1.0"
>>>  xmlns:drools="http://servicemix.apache.org/drools/1.0"
>>>  xmlns:testMe="http://servicemix.apache.org/samples/wsdl-first">
>>>    <http:endpoint service="testMe:DroolFinalService"
>>>                   endpoint="httpEndPoint"
>>>                   role="consumer"
>>>
>>>       
>> locationURI="http://localhost:8195/TestDroolService/"
>>     
>>>                   defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
>>>                   soap="true" targetService="DroolFinalService"/>  
>>> </beans>
>>>  
>>>  <beans xmlns:http="http://servicemix.apache.org/http/1.0"
>>>  xmlns:drools="http://servicemix.apache.org/drools/1.0"
>>>  xmlns:testMe="http://servicemix.apache.org/samples/wsdl-first">
>>>
>>> <drools:endpoint service="testMe:DroolFinalService"
>>>                    endpoint="DroolEndpoint"
>>>                    ruleBaseResource="classpath:test1.drl" />
>>> </beans>
>>>
>>> ________________________________
>>>
>>> From: Gert Vanthienen [mailto:gert.vanthienen@skynet.be]
>>> Sent: Tue 6/19/2007 12:26 PM
>>> To: servicemix-users@geronimo.apache.org
>>> Subject: Re: How to test the drools component?
>>>
>>>
>>>
>>>
>>> L.S.,
>>>
>>>
>>> In your case, your SA needs a
>>> * HTTP SU, with an xbean.xml to define the consumer endpoint
>>> * Drools SU, with an xbean.xml to define the drools endpoint
>>>
>>> I would recommend you to specify the same service name (including
>>> namespace)
>>> on both endpoints: that way you expose your drools endpoint to the
>>>       
>> outside
>>     
>>> world using SOAP/HTTP directly.
>>>
>>>
>>> Gert
>>>
>>>
>>> mrudulam wrote:
>>>       
>>>>
>>>> Hi,
>>>>
>>>> New to ServiceMix and exploring the drools component.
>>>> I have created a HTTP Consumer SU, a JSR 181 SU (and a SA to deploy
>>>>         
>> the
>>     
>>>> two.) After the Webservice is processed, I expect the drools
>>>>         
> endpoint
>   
>> to
>>     
>>>> be activated. (Pls see the xbean.xml configuration below) since I
>>>>         
>> have
>>     
>>>> given the targetService attribute. But nothing happens.
>>>>
>>>> Please tell me what is wrong with this approach.
>>>>
>>>> Also - is there any way to test the drools component independently?
>>>>
>>>> Regards,
>>>> Mrudula
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> xbean.xml of the HTTP Consumer SU is given below
>>>>
>>>>
>>>>
>>>> <beans xmlns:http="http://servicemix.apache.org/http/1.0"
>>>> xmlns:drools="http://servicemix.apache.org/drools/1.0"
>>>> xmlns:person="http://servicemix.apache.org/samples/wsdl-first">
>>>>
>>>>   <http:endpoint service="person:MulNumService"
>>>>                  endpoint="soap"
>>>>                  role="consumer"
>>>>                  locationURI="http://localhost:8195/MulNumService/"
>>>>                  defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
>>>>                  soap="true" targetService="DroolFinalService"/>  
>>>>     <drools:endpoint service="testMe:DroolFinalService"
>>>>                   endpoint="endpoint"
>>>>                   ruleBaseResource="classpath:test1.drl" />
>>>> </beans>
>>>>
>>>>
>>>> The information contained in this electronic message and any
>>>>         
>> attachments
>>     
>>>> to this message are intended for the exclusive use of the
>>>>         
>> addressee(s)
>>     
>>>> and
>>>> may contain proprietary, confidential or privileged information. If
>>>>         
>> you
>>     
>>>> are not the intended recipient, you should not disseminate,
>>>>         
>> distribute or
>>     
>>>> copy this e-mail. Please notify the sender immediately and destroy
>>>>         
>> all
>>     
>>>> copies of this message and any attachments.
>>>>
>>>> WARNING: Computer viruses can be transmitted via email. The
>>>>         
> recipient
>   
>>>> should check this email and any attachments for the presence of
>>>>         
>> viruses.
>>     
>>>> The company accepts no liability for any damage caused by any virus
>>>> transmitted by this email.
>>>>
>>>> www.wipro.com
>>>>
>>>>
>>>>         
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Status-12029-tf3940060s12049.html#a11189497
>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>
>>>
>>>
>>>
>>>  
>>>
>>> The information contained in this electronic message and any
>>>       
>> attachments
>>     
>>> to this message are intended for the exclusive use of the
>>>       
> addressee(s)
>   
>> and
>>     
>>> may contain proprietary, confidential or privileged information. If
>>>       
>> you
>>     
>>> are not the intended recipient, you should not disseminate,
>>>       
> distribute
>   
>> or
>>     
>>> copy this e-mail. Please notify the sender immediately and destroy
>>>       
> all
>   
>>> copies of this message and any attachments. 
>>>
>>> WARNING: Computer viruses can be transmitted via email. The
recipient
>>> should check this email and any attachments for the presence of
>>>       
>> viruses.
>>     
>>> The company accepts no liability for any damage caused by any virus
>>> transmitted by this email.
>>>  
>>> www.wipro.com
>>>
>>>       
>> -- 
>> View this message in context:
>> http://www.nabble.com/Status-12029-tf3940060s12049.html#a11195951
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>>
>>
>> The information contained in this electronic message and any
>>     
> attachments
>   
>> to this message are intended for the exclusive use of the
addressee(s)
>>     
> and
>   
>> may contain proprietary, confidential or privileged information. If
>>     
> you
>   
>> are not the intended recipient, you should not disseminate,
distribute
>>     
> or
>   
>> copy this e-mail. Please notify the sender immediately and destroy
all
>> copies of this message and any attachments. 
>>
>> WARNING: Computer viruses can be transmitted via email. The recipient
>> should check this email and any attachments for the presence of
>>     
> viruses.
>   
>> The company accepts no liability for any damage caused by any virus
>> transmitted by this email.
>>  
>> www.wipro.com
>>
>>
>>     
>
>   



The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
 
www.wipro.com

Re: How to test the drools component?

Posted by Gert Vanthienen <ge...@skynet.be>.
Mrudula,

I usually use the same endpoint names as well, I think. Can you try 
that?  Are there any errors/warnings when you deploy the SA?

Gert

mrudula.madiraju@wipro.com wrote:
> I double checked the servicenames. I do not have the targetservice
> specified. Please find the xbean.xmls below.
>
>
> HTTP-SU's xbean.xml
>
> 	<beans xmlns:http="http://servicemix.apache.org/http/1.0"
> 	
> xmlns:testMe="http://servicemix.apache.org/samples/wsdl-first">
> 	    <http:endpoint service="testMe:DroolFinalService"
>                    endpoint="httpEndPoint"
>                    role="consumer"
>                    locationURI="http://localhost:8195/TestDroolService/"
>                    defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
>                    soap="true"/>
> 	 </beans>
>
>
> Drool-SU's xbean.xml
>
> 	<beans xmlns:http="http://servicemix.apache.org/http/1.0"
> xmlns:drools="http://servicemix.apache.org/drools/1.0"
> xmlns:testMe="http://servicemix.apache.org/samples/wsdl-first">
>  		 <drools:endpoint service="testMe:DroolFinalService"
>       	             endpoint="DroolEndpoint"
> 	                    ruleBaseResource="classpath:test1.drl" /> 
> 	</beans>
>
>
> -----Original Message-----
> From: Gert Vanthienen [mailto:gert.vanthienen@skynet.be] 
> Sent: Wednesday, June 20, 2007 11:07 AM
> To: servicemix-users@geronimo.apache.org
> Subject: RE: How to test the drools component?
>
>
> Mrudula,
>
>
> First of all, verify that the namespaces and service names really match,
> because even the smallest typo will cause this behavior.  Do you still
> have
> the targetService attribute specified in your HTTP SU xbean.xml?  If so,
> have you added the namespace there?
>
> Repost the xbean.xml files you have right now if you don't succeed in
> solving it with the above questions/remarks...
>
>
> Gert
>
>
> mrudulam wrote:
>   
>> Hi Gert,
>>
>> As advised - I have created a SA which contains
>> a) HTTP SU (containing xbean.xml)
>> b) Drools SU (containing xbean.xml and test1.drl)
>>
>> However, when I invoke it in the browser using the location URI, I get
>> the error - HTTP ERROR: 404, Unable to find requested resource
>> (main.wsdl)
>>
>> There are no errors in the console and my test1.drl doesn't see to get
>> executed. ( I have created the two endpoints with the same name and
>> xmlns so that the drools endpoint can be directly exposed over http)
>>
>> Please advise where I could be going wrong.
>>
>> Regards,
>> Mrudula
>>
>>
>>
>>
>>
>>
>> -----Original Message-----
>> From: Gert Vanthienen [mailto:gert.vanthienen@skynet.be] 
>> Sent: Tuesday, June 19, 2007 7:59 PM
>> To: servicemix-users@geronimo.apache.org
>> Subject: RE: How to test the drools component?
>>
>>
>> Mrudula,
>>
>> I don't think you need the targetService in this case.  The Drools
>> endpoint
>> is an internal endpoint, the HTTP endpoint would only expose it to the
>> outside world.
>>
>> Anyway, if you do specify it however, it should include the correct
>> namespace as well, so it should say
>> targetService="testMe:DroolFinalService".
>>
>> Gert
>>
>>
>> mrudulam wrote:
>>     
>>> Hi Gert,
>>>  
>>> Thanks for the reply. Please verify my understanding. I have listed
>>>       
>> the
>>     
>>> xbean.xml for the HTTP SU and the Drool SU below. Please confirm if
>>>       
>> this
>>     
>>> is what you meant. Also -if I have specified the targetService
>>>       
>> correctly.
>>     
>>>  
>>> By this, when I access the url
>>>       
> http://localhost:8195/TestDroolService,
>   
>> I
>>     
>>> should be able to invoke the test1.drl. Is that correct?
>>>  
>>> Regards,
>>> Mrudula
>>>  
>>>  
>>>  
>>>  
>>>  <beans xmlns:http="http://servicemix.apache.org/http/1.0"
>>>  xmlns:drools="http://servicemix.apache.org/drools/1.0"
>>>  xmlns:testMe="http://servicemix.apache.org/samples/wsdl-first">
>>>    <http:endpoint service="testMe:DroolFinalService"
>>>                   endpoint="httpEndPoint"
>>>                   role="consumer"
>>>
>>>       
>> locationURI="http://localhost:8195/TestDroolService/"
>>     
>>>                   defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
>>>                   soap="true" targetService="DroolFinalService"/>  
>>> </beans>
>>>  
>>>  <beans xmlns:http="http://servicemix.apache.org/http/1.0"
>>>  xmlns:drools="http://servicemix.apache.org/drools/1.0"
>>>  xmlns:testMe="http://servicemix.apache.org/samples/wsdl-first">
>>>
>>> <drools:endpoint service="testMe:DroolFinalService"
>>>                    endpoint="DroolEndpoint"
>>>                    ruleBaseResource="classpath:test1.drl" />
>>> </beans>
>>>
>>> ________________________________
>>>
>>> From: Gert Vanthienen [mailto:gert.vanthienen@skynet.be]
>>> Sent: Tue 6/19/2007 12:26 PM
>>> To: servicemix-users@geronimo.apache.org
>>> Subject: Re: How to test the drools component?
>>>
>>>
>>>
>>>
>>> L.S.,
>>>
>>>
>>> In your case, your SA needs a
>>> * HTTP SU, with an xbean.xml to define the consumer endpoint
>>> * Drools SU, with an xbean.xml to define the drools endpoint
>>>
>>> I would recommend you to specify the same service name (including
>>> namespace)
>>> on both endpoints: that way you expose your drools endpoint to the
>>>       
>> outside
>>     
>>> world using SOAP/HTTP directly.
>>>
>>>
>>> Gert
>>>
>>>
>>> mrudulam wrote:
>>>       
>>>>
>>>> Hi,
>>>>
>>>> New to ServiceMix and exploring the drools component.
>>>> I have created a HTTP Consumer SU, a JSR 181 SU (and a SA to deploy
>>>>         
>> the
>>     
>>>> two.) After the Webservice is processed, I expect the drools
>>>>         
> endpoint
>   
>> to
>>     
>>>> be activated. (Pls see the xbean.xml configuration below) since I
>>>>         
>> have
>>     
>>>> given the targetService attribute. But nothing happens.
>>>>
>>>> Please tell me what is wrong with this approach.
>>>>
>>>> Also - is there any way to test the drools component independently?
>>>>
>>>> Regards,
>>>> Mrudula
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> xbean.xml of the HTTP Consumer SU is given below
>>>>
>>>>
>>>>
>>>> <beans xmlns:http="http://servicemix.apache.org/http/1.0"
>>>> xmlns:drools="http://servicemix.apache.org/drools/1.0"
>>>> xmlns:person="http://servicemix.apache.org/samples/wsdl-first">
>>>>
>>>>   <http:endpoint service="person:MulNumService"
>>>>                  endpoint="soap"
>>>>                  role="consumer"
>>>>                  locationURI="http://localhost:8195/MulNumService/"
>>>>                  defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
>>>>                  soap="true" targetService="DroolFinalService"/>  
>>>>     <drools:endpoint service="testMe:DroolFinalService"
>>>>                   endpoint="endpoint"
>>>>                   ruleBaseResource="classpath:test1.drl" />
>>>> </beans>
>>>>
>>>>
>>>> The information contained in this electronic message and any
>>>>         
>> attachments
>>     
>>>> to this message are intended for the exclusive use of the
>>>>         
>> addressee(s)
>>     
>>>> and
>>>> may contain proprietary, confidential or privileged information. If
>>>>         
>> you
>>     
>>>> are not the intended recipient, you should not disseminate,
>>>>         
>> distribute or
>>     
>>>> copy this e-mail. Please notify the sender immediately and destroy
>>>>         
>> all
>>     
>>>> copies of this message and any attachments.
>>>>
>>>> WARNING: Computer viruses can be transmitted via email. The
>>>>         
> recipient
>   
>>>> should check this email and any attachments for the presence of
>>>>         
>> viruses.
>>     
>>>> The company accepts no liability for any damage caused by any virus
>>>> transmitted by this email.
>>>>
>>>> www.wipro.com
>>>>
>>>>
>>>>         
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Status-12029-tf3940060s12049.html#a11189497
>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>
>>>
>>>
>>>
>>>  
>>>
>>> The information contained in this electronic message and any
>>>       
>> attachments
>>     
>>> to this message are intended for the exclusive use of the
>>>       
> addressee(s)
>   
>> and
>>     
>>> may contain proprietary, confidential or privileged information. If
>>>       
>> you
>>     
>>> are not the intended recipient, you should not disseminate,
>>>       
> distribute
>   
>> or
>>     
>>> copy this e-mail. Please notify the sender immediately and destroy
>>>       
> all
>   
>>> copies of this message and any attachments. 
>>>
>>> WARNING: Computer viruses can be transmitted via email. The recipient
>>> should check this email and any attachments for the presence of
>>>       
>> viruses.
>>     
>>> The company accepts no liability for any damage caused by any virus
>>> transmitted by this email.
>>>  
>>> www.wipro.com
>>>
>>>       
>> -- 
>> View this message in context:
>> http://www.nabble.com/Status-12029-tf3940060s12049.html#a11195951
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>>
>>
>> The information contained in this electronic message and any
>>     
> attachments
>   
>> to this message are intended for the exclusive use of the addressee(s)
>>     
> and
>   
>> may contain proprietary, confidential or privileged information. If
>>     
> you
>   
>> are not the intended recipient, you should not disseminate, distribute
>>     
> or
>   
>> copy this e-mail. Please notify the sender immediately and destroy all
>> copies of this message and any attachments. 
>>
>> WARNING: Computer viruses can be transmitted via email. The recipient
>> should check this email and any attachments for the presence of
>>     
> viruses.
>   
>> The company accepts no liability for any damage caused by any virus
>> transmitted by this email.
>>  
>> www.wipro.com
>>
>>
>>     
>
>   


RE: How to test the drools component?

Posted by mr...@wipro.com.
I double checked the servicenames. I do not have the targetservice
specified. Please find the xbean.xmls below.


HTTP-SU's xbean.xml

	<beans xmlns:http="http://servicemix.apache.org/http/1.0"
	
xmlns:testMe="http://servicemix.apache.org/samples/wsdl-first">
	    <http:endpoint service="testMe:DroolFinalService"
                   endpoint="httpEndPoint"
                   role="consumer"
                   locationURI="http://localhost:8195/TestDroolService/"
                   defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
                   soap="true"/>
	 </beans>


Drool-SU's xbean.xml

	<beans xmlns:http="http://servicemix.apache.org/http/1.0"
xmlns:drools="http://servicemix.apache.org/drools/1.0"
xmlns:testMe="http://servicemix.apache.org/samples/wsdl-first">
 		 <drools:endpoint service="testMe:DroolFinalService"
      	             endpoint="DroolEndpoint"
	                    ruleBaseResource="classpath:test1.drl" /> 
	</beans>


-----Original Message-----
From: Gert Vanthienen [mailto:gert.vanthienen@skynet.be] 
Sent: Wednesday, June 20, 2007 11:07 AM
To: servicemix-users@geronimo.apache.org
Subject: RE: How to test the drools component?


Mrudula,


First of all, verify that the namespaces and service names really match,
because even the smallest typo will cause this behavior.  Do you still
have
the targetService attribute specified in your HTTP SU xbean.xml?  If so,
have you added the namespace there?

Repost the xbean.xml files you have right now if you don't succeed in
solving it with the above questions/remarks...


Gert


mrudulam wrote:
> 
> 
> Hi Gert,
> 
> As advised - I have created a SA which contains
> a) HTTP SU (containing xbean.xml)
> b) Drools SU (containing xbean.xml and test1.drl)
> 
> However, when I invoke it in the browser using the location URI, I get
> the error - HTTP ERROR: 404, Unable to find requested resource
> (main.wsdl)
> 
> There are no errors in the console and my test1.drl doesn't see to get
> executed. ( I have created the two endpoints with the same name and
> xmlns so that the drools endpoint can be directly exposed over http)
> 
> Please advise where I could be going wrong.
> 
> Regards,
> Mrudula
> 
> 
> 
> 
> 
> 
> -----Original Message-----
> From: Gert Vanthienen [mailto:gert.vanthienen@skynet.be] 
> Sent: Tuesday, June 19, 2007 7:59 PM
> To: servicemix-users@geronimo.apache.org
> Subject: RE: How to test the drools component?
> 
> 
> Mrudula,
> 
> I don't think you need the targetService in this case.  The Drools
> endpoint
> is an internal endpoint, the HTTP endpoint would only expose it to the
> outside world.
> 
> Anyway, if you do specify it however, it should include the correct
> namespace as well, so it should say
> targetService="testMe:DroolFinalService".
> 
> Gert
> 
> 
> mrudulam wrote:
>> 
>> Hi Gert,
>>  
>> Thanks for the reply. Please verify my understanding. I have listed
> the
>> xbean.xml for the HTTP SU and the Drool SU below. Please confirm if
> this
>> is what you meant. Also -if I have specified the targetService
> correctly.
>>  
>> By this, when I access the url
http://localhost:8195/TestDroolService,
> I
>> should be able to invoke the test1.drl. Is that correct?
>>  
>> Regards,
>> Mrudula
>>  
>>  
>>  
>>  
>>  <beans xmlns:http="http://servicemix.apache.org/http/1.0"
>>  xmlns:drools="http://servicemix.apache.org/drools/1.0"
>>  xmlns:testMe="http://servicemix.apache.org/samples/wsdl-first">
>>    <http:endpoint service="testMe:DroolFinalService"
>>                   endpoint="httpEndPoint"
>>                   role="consumer"
>>
> locationURI="http://localhost:8195/TestDroolService/"
>>                   defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
>>                   soap="true" targetService="DroolFinalService"/>  
>> </beans>
>>  
>>  <beans xmlns:http="http://servicemix.apache.org/http/1.0"
>>  xmlns:drools="http://servicemix.apache.org/drools/1.0"
>>  xmlns:testMe="http://servicemix.apache.org/samples/wsdl-first">
>> 
>> <drools:endpoint service="testMe:DroolFinalService"
>>                    endpoint="DroolEndpoint"
>>                    ruleBaseResource="classpath:test1.drl" />
>> </beans>
>> 
>> ________________________________
>> 
>> From: Gert Vanthienen [mailto:gert.vanthienen@skynet.be]
>> Sent: Tue 6/19/2007 12:26 PM
>> To: servicemix-users@geronimo.apache.org
>> Subject: Re: How to test the drools component?
>> 
>> 
>> 
>> 
>> L.S.,
>> 
>> 
>> In your case, your SA needs a
>> * HTTP SU, with an xbean.xml to define the consumer endpoint
>> * Drools SU, with an xbean.xml to define the drools endpoint
>> 
>> I would recommend you to specify the same service name (including
>> namespace)
>> on both endpoints: that way you expose your drools endpoint to the
> outside
>> world using SOAP/HTTP directly.
>> 
>> 
>> Gert
>> 
>> 
>> mrudulam wrote:
>>>
>>>
>>>
>>> Hi,
>>>
>>> New to ServiceMix and exploring the drools component.
>>> I have created a HTTP Consumer SU, a JSR 181 SU (and a SA to deploy
> the
>>> two.) After the Webservice is processed, I expect the drools
endpoint
> to
>>> be activated. (Pls see the xbean.xml configuration below) since I
> have
>>> given the targetService attribute. But nothing happens.
>>>
>>> Please tell me what is wrong with this approach.
>>>
>>> Also - is there any way to test the drools component independently?
>>>
>>> Regards,
>>> Mrudula
>>>
>>>
>>>
>>>
>>>
>>> xbean.xml of the HTTP Consumer SU is given below
>>>
>>>
>>>
>>> <beans xmlns:http="http://servicemix.apache.org/http/1.0"
>>> xmlns:drools="http://servicemix.apache.org/drools/1.0"
>>> xmlns:person="http://servicemix.apache.org/samples/wsdl-first">
>>>
>>>   <http:endpoint service="person:MulNumService"
>>>                  endpoint="soap"
>>>                  role="consumer"
>>>                  locationURI="http://localhost:8195/MulNumService/"
>>>                  defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
>>>                  soap="true" targetService="DroolFinalService"/>  
>>>     <drools:endpoint service="testMe:DroolFinalService"
>>>                   endpoint="endpoint"
>>>                   ruleBaseResource="classpath:test1.drl" />
>>> </beans>
>>>
>>>
>>> The information contained in this electronic message and any
> attachments
>>> to this message are intended for the exclusive use of the
> addressee(s)
>>> and
>>> may contain proprietary, confidential or privileged information. If
> you
>>> are not the intended recipient, you should not disseminate,
> distribute or
>>> copy this e-mail. Please notify the sender immediately and destroy
> all
>>> copies of this message and any attachments.
>>>
>>> WARNING: Computer viruses can be transmitted via email. The
recipient
>>> should check this email and any attachments for the presence of
> viruses.
>>> The company accepts no liability for any damage caused by any virus
>>> transmitted by this email.
>>> 
>>> www.wipro.com
>>>
>>>
>> 
>> --
>> View this message in context:
>> http://www.nabble.com/Status-12029-tf3940060s12049.html#a11189497
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>> 
>> 
>> 
>> 
>>  
>> 
>> The information contained in this electronic message and any
> attachments
>> to this message are intended for the exclusive use of the
addressee(s)
> and
>> may contain proprietary, confidential or privileged information. If
> you
>> are not the intended recipient, you should not disseminate,
distribute
> or
>> copy this e-mail. Please notify the sender immediately and destroy
all
>> copies of this message and any attachments. 
>> 
>> WARNING: Computer viruses can be transmitted via email. The recipient
>> should check this email and any attachments for the presence of
> viruses.
>> The company accepts no liability for any damage caused by any virus
>> transmitted by this email.
>>  
>> www.wipro.com
>> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/Status-12029-tf3940060s12049.html#a11195951
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
> 
> 
> 
> The information contained in this electronic message and any
attachments
> to this message are intended for the exclusive use of the addressee(s)
and
> may contain proprietary, confidential or privileged information. If
you
> are not the intended recipient, you should not disseminate, distribute
or
> copy this e-mail. Please notify the sender immediately and destroy all
> copies of this message and any attachments. 
> 
> WARNING: Computer viruses can be transmitted via email. The recipient
> should check this email and any attachments for the presence of
viruses.
> The company accepts no liability for any damage caused by any virus
> transmitted by this email.
>  
> www.wipro.com
> 
> 

-- 
View this message in context:
http://www.nabble.com/Status-12029-tf3940060s12049.html#a11207420
Sent from the ServiceMix - User mailing list archive at Nabble.com.



The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
 
www.wipro.com

RE: How to test the drools component?

Posted by Gert Vanthienen <ge...@skynet.be>.
Mrudula,


First of all, verify that the namespaces and service names really match,
because even the smallest typo will cause this behavior.  Do you still have
the targetService attribute specified in your HTTP SU xbean.xml?  If so,
have you added the namespace there?

Repost the xbean.xml files you have right now if you don't succeed in
solving it with the above questions/remarks...


Gert


mrudulam wrote:
> 
> 
> Hi Gert,
> 
> As advised - I have created a SA which contains
> a) HTTP SU (containing xbean.xml)
> b) Drools SU (containing xbean.xml and test1.drl)
> 
> However, when I invoke it in the browser using the location URI, I get
> the error - HTTP ERROR: 404, Unable to find requested resource
> (main.wsdl)
> 
> There are no errors in the console and my test1.drl doesn't see to get
> executed. ( I have created the two endpoints with the same name and
> xmlns so that the drools endpoint can be directly exposed over http)
> 
> Please advise where I could be going wrong.
> 
> Regards,
> Mrudula
> 
> 
> 
> 
> 
> 
> -----Original Message-----
> From: Gert Vanthienen [mailto:gert.vanthienen@skynet.be] 
> Sent: Tuesday, June 19, 2007 7:59 PM
> To: servicemix-users@geronimo.apache.org
> Subject: RE: How to test the drools component?
> 
> 
> Mrudula,
> 
> I don't think you need the targetService in this case.  The Drools
> endpoint
> is an internal endpoint, the HTTP endpoint would only expose it to the
> outside world.
> 
> Anyway, if you do specify it however, it should include the correct
> namespace as well, so it should say
> targetService="testMe:DroolFinalService".
> 
> Gert
> 
> 
> mrudulam wrote:
>> 
>> Hi Gert,
>>  
>> Thanks for the reply. Please verify my understanding. I have listed
> the
>> xbean.xml for the HTTP SU and the Drool SU below. Please confirm if
> this
>> is what you meant. Also -if I have specified the targetService
> correctly.
>>  
>> By this, when I access the url http://localhost:8195/TestDroolService,
> I
>> should be able to invoke the test1.drl. Is that correct?
>>  
>> Regards,
>> Mrudula
>>  
>>  
>>  
>>  
>>  <beans xmlns:http="http://servicemix.apache.org/http/1.0"
>>  xmlns:drools="http://servicemix.apache.org/drools/1.0"
>>  xmlns:testMe="http://servicemix.apache.org/samples/wsdl-first">
>>    <http:endpoint service="testMe:DroolFinalService"
>>                   endpoint="httpEndPoint"
>>                   role="consumer"
>>
> locationURI="http://localhost:8195/TestDroolService/"
>>                   defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
>>                   soap="true" targetService="DroolFinalService"/>  
>> </beans>
>>  
>>  <beans xmlns:http="http://servicemix.apache.org/http/1.0"
>>  xmlns:drools="http://servicemix.apache.org/drools/1.0"
>>  xmlns:testMe="http://servicemix.apache.org/samples/wsdl-first">
>> 
>> <drools:endpoint service="testMe:DroolFinalService"
>>                    endpoint="DroolEndpoint"
>>                    ruleBaseResource="classpath:test1.drl" />
>> </beans>
>> 
>> ________________________________
>> 
>> From: Gert Vanthienen [mailto:gert.vanthienen@skynet.be]
>> Sent: Tue 6/19/2007 12:26 PM
>> To: servicemix-users@geronimo.apache.org
>> Subject: Re: How to test the drools component?
>> 
>> 
>> 
>> 
>> L.S.,
>> 
>> 
>> In your case, your SA needs a
>> * HTTP SU, with an xbean.xml to define the consumer endpoint
>> * Drools SU, with an xbean.xml to define the drools endpoint
>> 
>> I would recommend you to specify the same service name (including
>> namespace)
>> on both endpoints: that way you expose your drools endpoint to the
> outside
>> world using SOAP/HTTP directly.
>> 
>> 
>> Gert
>> 
>> 
>> mrudulam wrote:
>>>
>>>
>>>
>>> Hi,
>>>
>>> New to ServiceMix and exploring the drools component.
>>> I have created a HTTP Consumer SU, a JSR 181 SU (and a SA to deploy
> the
>>> two.) After the Webservice is processed, I expect the drools endpoint
> to
>>> be activated. (Pls see the xbean.xml configuration below) since I
> have
>>> given the targetService attribute. But nothing happens.
>>>
>>> Please tell me what is wrong with this approach.
>>>
>>> Also - is there any way to test the drools component independently?
>>>
>>> Regards,
>>> Mrudula
>>>
>>>
>>>
>>>
>>>
>>> xbean.xml of the HTTP Consumer SU is given below
>>>
>>>
>>>
>>> <beans xmlns:http="http://servicemix.apache.org/http/1.0"
>>> xmlns:drools="http://servicemix.apache.org/drools/1.0"
>>> xmlns:person="http://servicemix.apache.org/samples/wsdl-first">
>>>
>>>   <http:endpoint service="person:MulNumService"
>>>                  endpoint="soap"
>>>                  role="consumer"
>>>                  locationURI="http://localhost:8195/MulNumService/"
>>>                  defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
>>>                  soap="true" targetService="DroolFinalService"/>  
>>>     <drools:endpoint service="testMe:DroolFinalService"
>>>                   endpoint="endpoint"
>>>                   ruleBaseResource="classpath:test1.drl" />
>>> </beans>
>>>
>>>
>>> The information contained in this electronic message and any
> attachments
>>> to this message are intended for the exclusive use of the
> addressee(s)
>>> and
>>> may contain proprietary, confidential or privileged information. If
> you
>>> are not the intended recipient, you should not disseminate,
> distribute or
>>> copy this e-mail. Please notify the sender immediately and destroy
> all
>>> copies of this message and any attachments.
>>>
>>> WARNING: Computer viruses can be transmitted via email. The recipient
>>> should check this email and any attachments for the presence of
> viruses.
>>> The company accepts no liability for any damage caused by any virus
>>> transmitted by this email.
>>> 
>>> www.wipro.com
>>>
>>>
>> 
>> --
>> View this message in context:
>> http://www.nabble.com/Status-12029-tf3940060s12049.html#a11189497
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>> 
>> 
>> 
>> 
>>  
>> 
>> The information contained in this electronic message and any
> attachments
>> to this message are intended for the exclusive use of the addressee(s)
> and
>> may contain proprietary, confidential or privileged information. If
> you
>> are not the intended recipient, you should not disseminate, distribute
> or
>> copy this e-mail. Please notify the sender immediately and destroy all
>> copies of this message and any attachments. 
>> 
>> WARNING: Computer viruses can be transmitted via email. The recipient
>> should check this email and any attachments for the presence of
> viruses.
>> The company accepts no liability for any damage caused by any virus
>> transmitted by this email.
>>  
>> www.wipro.com
>> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/Status-12029-tf3940060s12049.html#a11195951
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
> 
> 
> 
> The information contained in this electronic message and any attachments
> to this message are intended for the exclusive use of the addressee(s) and
> may contain proprietary, confidential or privileged information. If you
> are not the intended recipient, you should not disseminate, distribute or
> copy this e-mail. Please notify the sender immediately and destroy all
> copies of this message and any attachments. 
> 
> WARNING: Computer viruses can be transmitted via email. The recipient
> should check this email and any attachments for the presence of viruses.
> The company accepts no liability for any damage caused by any virus
> transmitted by this email.
>  
> www.wipro.com
> 
> 

-- 
View this message in context: http://www.nabble.com/Status-12029-tf3940060s12049.html#a11207420
Sent from the ServiceMix - User mailing list archive at Nabble.com.


RE: How to test the drools component?

Posted by mr...@wipro.com.
Hi Gert,

As advised - I have created a SA which contains
a) HTTP SU (containing xbean.xml)
b) Drools SU (containing xbean.xml and test1.drl)

However, when I invoke it in the browser using the location URI, I get
the error - HTTP ERROR: 404, Unable to find requested resource
(main.wsdl)

There are no errors in the console and my test1.drl doesn't see to get
executed. ( I have created the two endpoints with the same name and
xmlns so that the drools endpoint can be directly exposed over http)

Please advise where I could be going wrong.

Regards,
Mrudula






-----Original Message-----
From: Gert Vanthienen [mailto:gert.vanthienen@skynet.be] 
Sent: Tuesday, June 19, 2007 7:59 PM
To: servicemix-users@geronimo.apache.org
Subject: RE: How to test the drools component?


Mrudula,

I don't think you need the targetService in this case.  The Drools
endpoint
is an internal endpoint, the HTTP endpoint would only expose it to the
outside world.

Anyway, if you do specify it however, it should include the correct
namespace as well, so it should say
targetService="testMe:DroolFinalService".

Gert


mrudulam wrote:
> 
> Hi Gert,
>  
> Thanks for the reply. Please verify my understanding. I have listed
the
> xbean.xml for the HTTP SU and the Drool SU below. Please confirm if
this
> is what you meant. Also -if I have specified the targetService
correctly.
>  
> By this, when I access the url http://localhost:8195/TestDroolService,
I
> should be able to invoke the test1.drl. Is that correct?
>  
> Regards,
> Mrudula
>  
>  
>  
>  
>  <beans xmlns:http="http://servicemix.apache.org/http/1.0"
>  xmlns:drools="http://servicemix.apache.org/drools/1.0"
>  xmlns:testMe="http://servicemix.apache.org/samples/wsdl-first">
>    <http:endpoint service="testMe:DroolFinalService"
>                   endpoint="httpEndPoint"
>                   role="consumer"
>
locationURI="http://localhost:8195/TestDroolService/"
>                   defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
>                   soap="true" targetService="DroolFinalService"/>  
> </beans>
>  
>  <beans xmlns:http="http://servicemix.apache.org/http/1.0"
>  xmlns:drools="http://servicemix.apache.org/drools/1.0"
>  xmlns:testMe="http://servicemix.apache.org/samples/wsdl-first">
> 
> <drools:endpoint service="testMe:DroolFinalService"
>                    endpoint="DroolEndpoint"
>                    ruleBaseResource="classpath:test1.drl" />
> </beans>
> 
> ________________________________
> 
> From: Gert Vanthienen [mailto:gert.vanthienen@skynet.be]
> Sent: Tue 6/19/2007 12:26 PM
> To: servicemix-users@geronimo.apache.org
> Subject: Re: How to test the drools component?
> 
> 
> 
> 
> L.S.,
> 
> 
> In your case, your SA needs a
> * HTTP SU, with an xbean.xml to define the consumer endpoint
> * Drools SU, with an xbean.xml to define the drools endpoint
> 
> I would recommend you to specify the same service name (including
> namespace)
> on both endpoints: that way you expose your drools endpoint to the
outside
> world using SOAP/HTTP directly.
> 
> 
> Gert
> 
> 
> mrudulam wrote:
>>
>>
>>
>> Hi,
>>
>> New to ServiceMix and exploring the drools component.
>> I have created a HTTP Consumer SU, a JSR 181 SU (and a SA to deploy
the
>> two.) After the Webservice is processed, I expect the drools endpoint
to
>> be activated. (Pls see the xbean.xml configuration below) since I
have
>> given the targetService attribute. But nothing happens.
>>
>> Please tell me what is wrong with this approach.
>>
>> Also - is there any way to test the drools component independently?
>>
>> Regards,
>> Mrudula
>>
>>
>>
>>
>>
>> xbean.xml of the HTTP Consumer SU is given below
>>
>>
>>
>> <beans xmlns:http="http://servicemix.apache.org/http/1.0"
>> xmlns:drools="http://servicemix.apache.org/drools/1.0"
>> xmlns:person="http://servicemix.apache.org/samples/wsdl-first">
>>
>>   <http:endpoint service="person:MulNumService"
>>                  endpoint="soap"
>>                  role="consumer"
>>                  locationURI="http://localhost:8195/MulNumService/"
>>                  defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
>>                  soap="true" targetService="DroolFinalService"/>  
>>     <drools:endpoint service="testMe:DroolFinalService"
>>                   endpoint="endpoint"
>>                   ruleBaseResource="classpath:test1.drl" />
>> </beans>
>>
>>
>> The information contained in this electronic message and any
attachments
>> to this message are intended for the exclusive use of the
addressee(s)
>> and
>> may contain proprietary, confidential or privileged information. If
you
>> are not the intended recipient, you should not disseminate,
distribute or
>> copy this e-mail. Please notify the sender immediately and destroy
all
>> copies of this message and any attachments.
>>
>> WARNING: Computer viruses can be transmitted via email. The recipient
>> should check this email and any attachments for the presence of
viruses.
>> The company accepts no liability for any damage caused by any virus
>> transmitted by this email.
>> 
>> www.wipro.com
>>
>>
> 
> --
> View this message in context:
> http://www.nabble.com/Status-12029-tf3940060s12049.html#a11189497
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
> 
> 
> 
> 
>  
> 
> The information contained in this electronic message and any
attachments
> to this message are intended for the exclusive use of the addressee(s)
and
> may contain proprietary, confidential or privileged information. If
you
> are not the intended recipient, you should not disseminate, distribute
or
> copy this e-mail. Please notify the sender immediately and destroy all
> copies of this message and any attachments. 
> 
> WARNING: Computer viruses can be transmitted via email. The recipient
> should check this email and any attachments for the presence of
viruses.
> The company accepts no liability for any damage caused by any virus
> transmitted by this email.
>  
> www.wipro.com
> 

-- 
View this message in context:
http://www.nabble.com/Status-12029-tf3940060s12049.html#a11195951
Sent from the ServiceMix - User mailing list archive at Nabble.com.



The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
 
www.wipro.com

RE: How to test the drools component? - Unrecognized xbean namespace mapping for drools

Posted by mr...@wipro.com.

Don't bother about this one - I got this fixed. The dependency in
pom.xml should be on the servicemix-drools and not servicemix-http.

Must have been a typo or implied in the original mail on how to create a
drools component
(http://www.nabble.com/Re%3A-servicemix-Drool-engine-Issue-tf3948556s120
49.html )

Regards,
Mrudula

-----Original Message-----
From: mrudula.madiraju@wipro.com [mailto:mrudula.madiraju@wipro.com] 
Sent: Wednesday, June 20, 2007 9:30 AM
To: servicemix-users@geronimo.apache.org
Subject: RE: How to test the drools component? - Unrecognized xbean
namespace mapping for drools


Gert,

I am facing problem while installing the drools SU.

First I created a simple JBI-SU and created the xbean.xml which contains
the drools endpoint.
Then I edited the pom.xml to include the dependency on servicemix-http
(as you had instructed in another mail thread on drools)

However, while executing the install command - I am getting the
following error- "Unrecognized xbean namespace mapping:
http://servicemix.apache.org/drools/1.0"


How should I correct this?

Regards,
Mrudula


-----Original Message-----
From: Gert Vanthienen [mailto:gert.vanthienen@skynet.be] 
Sent: Tuesday, June 19, 2007 7:59 PM
To: servicemix-users@geronimo.apache.org
Subject: RE: How to test the drools component?


Mrudula,

I don't think you need the targetService in this case.  The Drools
endpoint
is an internal endpoint, the HTTP endpoint would only expose it to the
outside world.

Anyway, if you do specify it however, it should include the correct
namespace as well, so it should say
targetService="testMe:DroolFinalService".

Gert


mrudulam wrote:
> 
> Hi Gert,
>  
> Thanks for the reply. Please verify my understanding. I have listed
the
> xbean.xml for the HTTP SU and the Drool SU below. Please confirm if
this
> is what you meant. Also -if I have specified the targetService
correctly.
>  
> By this, when I access the url http://localhost:8195/TestDroolService,
I
> should be able to invoke the test1.drl. Is that correct?
>  
> Regards,
> Mrudula
>  
>  
>  
>  
>  <beans xmlns:http="http://servicemix.apache.org/http/1.0"
>  xmlns:drools="http://servicemix.apache.org/drools/1.0"
>  xmlns:testMe="http://servicemix.apache.org/samples/wsdl-first">
>    <http:endpoint service="testMe:DroolFinalService"
>                   endpoint="httpEndPoint"
>                   role="consumer"
>
locationURI="http://localhost:8195/TestDroolService/"
>                   defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
>                   soap="true" targetService="DroolFinalService"/>  
> </beans>
>  
>  <beans xmlns:http="http://servicemix.apache.org/http/1.0"
>  xmlns:drools="http://servicemix.apache.org/drools/1.0"
>  xmlns:testMe="http://servicemix.apache.org/samples/wsdl-first">
> 
> <drools:endpoint service="testMe:DroolFinalService"
>                    endpoint="DroolEndpoint"
>                    ruleBaseResource="classpath:test1.drl" />
> </beans>
> 
> ________________________________
> 
> From: Gert Vanthienen [mailto:gert.vanthienen@skynet.be]
> Sent: Tue 6/19/2007 12:26 PM
> To: servicemix-users@geronimo.apache.org
> Subject: Re: How to test the drools component?
> 
> 
> 
> 
> L.S.,
> 
> 
> In your case, your SA needs a
> * HTTP SU, with an xbean.xml to define the consumer endpoint
> * Drools SU, with an xbean.xml to define the drools endpoint
> 
> I would recommend you to specify the same service name (including
> namespace)
> on both endpoints: that way you expose your drools endpoint to the
outside
> world using SOAP/HTTP directly.
> 
> 
> Gert
> 
> 
> mrudulam wrote:
>>
>>
>>
>> Hi,
>>
>> New to ServiceMix and exploring the drools component.
>> I have created a HTTP Consumer SU, a JSR 181 SU (and a SA to deploy
the
>> two.) After the Webservice is processed, I expect the drools endpoint
to
>> be activated. (Pls see the xbean.xml configuration below) since I
have
>> given the targetService attribute. But nothing happens.
>>
>> Please tell me what is wrong with this approach.
>>
>> Also - is there any way to test the drools component independently?
>>
>> Regards,
>> Mrudula
>>
>>
>>
>>
>>
>> xbean.xml of the HTTP Consumer SU is given below
>>
>>
>>
>> <beans xmlns:http="http://servicemix.apache.org/http/1.0"
>> xmlns:drools="http://servicemix.apache.org/drools/1.0"
>> xmlns:person="http://servicemix.apache.org/samples/wsdl-first">
>>
>>   <http:endpoint service="person:MulNumService"
>>                  endpoint="soap"
>>                  role="consumer"
>>                  locationURI="http://localhost:8195/MulNumService/"
>>                  defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
>>                  soap="true" targetService="DroolFinalService"/>  
>>     <drools:endpoint service="testMe:DroolFinalService"
>>                   endpoint="endpoint"
>>                   ruleBaseResource="classpath:test1.drl" />
>> </beans>
>>
>>
>> The information contained in this electronic message and any
attachments
>> to this message are intended for the exclusive use of the
addressee(s)
>> and
>> may contain proprietary, confidential or privileged information. If
you
>> are not the intended recipient, you should not disseminate,
distribute or
>> copy this e-mail. Please notify the sender immediately and destroy
all
>> copies of this message and any attachments.
>>
>> WARNING: Computer viruses can be transmitted via email. The recipient
>> should check this email and any attachments for the presence of
viruses.
>> The company accepts no liability for any damage caused by any virus
>> transmitted by this email.
>> 
>> www.wipro.com
>>
>>
> 
> --
> View this message in context:
> http://www.nabble.com/Status-12029-tf3940060s12049.html#a11189497
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
> 
> 
> 
> 
>  
> 
> The information contained in this electronic message and any
attachments
> to this message are intended for the exclusive use of the addressee(s)
and
> may contain proprietary, confidential or privileged information. If
you
> are not the intended recipient, you should not disseminate, distribute
or
> copy this e-mail. Please notify the sender immediately and destroy all
> copies of this message and any attachments. 
> 
> WARNING: Computer viruses can be transmitted via email. The recipient
> should check this email and any attachments for the presence of
viruses.
> The company accepts no liability for any damage caused by any virus
> transmitted by this email.
>  
> www.wipro.com
> 

-- 
View this message in context:
http://www.nabble.com/Status-12029-tf3940060s12049.html#a11195951
Sent from the ServiceMix - User mailing list archive at Nabble.com.



The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s)
and may contain proprietary, confidential or privileged information. If
you are not the intended recipient, you should not disseminate,
distribute or copy this e-mail. Please notify the sender immediately and
destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of viruses.
The company accepts no liability for any damage caused by any virus
transmitted by this email.
 
www.wipro.com


The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
 
www.wipro.com

RE: How to test the drools component? - Unrecognized xbean namespace mapping for drools

Posted by mr...@wipro.com.
Gert,

I am facing problem while installing the drools SU.

First I created a simple JBI-SU and created the xbean.xml which contains
the drools endpoint.
Then I edited the pom.xml to include the dependency on servicemix-http
(as you had instructed in another mail thread on drools)

However, while executing the install command - I am getting the
following error- "Unrecognized xbean namespace mapping:
http://servicemix.apache.org/drools/1.0"


How should I correct this?

Regards,
Mrudula


-----Original Message-----
From: Gert Vanthienen [mailto:gert.vanthienen@skynet.be] 
Sent: Tuesday, June 19, 2007 7:59 PM
To: servicemix-users@geronimo.apache.org
Subject: RE: How to test the drools component?


Mrudula,

I don't think you need the targetService in this case.  The Drools
endpoint
is an internal endpoint, the HTTP endpoint would only expose it to the
outside world.

Anyway, if you do specify it however, it should include the correct
namespace as well, so it should say
targetService="testMe:DroolFinalService".

Gert


mrudulam wrote:
> 
> Hi Gert,
>  
> Thanks for the reply. Please verify my understanding. I have listed
the
> xbean.xml for the HTTP SU and the Drool SU below. Please confirm if
this
> is what you meant. Also -if I have specified the targetService
correctly.
>  
> By this, when I access the url http://localhost:8195/TestDroolService,
I
> should be able to invoke the test1.drl. Is that correct?
>  
> Regards,
> Mrudula
>  
>  
>  
>  
>  <beans xmlns:http="http://servicemix.apache.org/http/1.0"
>  xmlns:drools="http://servicemix.apache.org/drools/1.0"
>  xmlns:testMe="http://servicemix.apache.org/samples/wsdl-first">
>    <http:endpoint service="testMe:DroolFinalService"
>                   endpoint="httpEndPoint"
>                   role="consumer"
>
locationURI="http://localhost:8195/TestDroolService/"
>                   defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
>                   soap="true" targetService="DroolFinalService"/>  
> </beans>
>  
>  <beans xmlns:http="http://servicemix.apache.org/http/1.0"
>  xmlns:drools="http://servicemix.apache.org/drools/1.0"
>  xmlns:testMe="http://servicemix.apache.org/samples/wsdl-first">
> 
> <drools:endpoint service="testMe:DroolFinalService"
>                    endpoint="DroolEndpoint"
>                    ruleBaseResource="classpath:test1.drl" />
> </beans>
> 
> ________________________________
> 
> From: Gert Vanthienen [mailto:gert.vanthienen@skynet.be]
> Sent: Tue 6/19/2007 12:26 PM
> To: servicemix-users@geronimo.apache.org
> Subject: Re: How to test the drools component?
> 
> 
> 
> 
> L.S.,
> 
> 
> In your case, your SA needs a
> * HTTP SU, with an xbean.xml to define the consumer endpoint
> * Drools SU, with an xbean.xml to define the drools endpoint
> 
> I would recommend you to specify the same service name (including
> namespace)
> on both endpoints: that way you expose your drools endpoint to the
outside
> world using SOAP/HTTP directly.
> 
> 
> Gert
> 
> 
> mrudulam wrote:
>>
>>
>>
>> Hi,
>>
>> New to ServiceMix and exploring the drools component.
>> I have created a HTTP Consumer SU, a JSR 181 SU (and a SA to deploy
the
>> two.) After the Webservice is processed, I expect the drools endpoint
to
>> be activated. (Pls see the xbean.xml configuration below) since I
have
>> given the targetService attribute. But nothing happens.
>>
>> Please tell me what is wrong with this approach.
>>
>> Also - is there any way to test the drools component independently?
>>
>> Regards,
>> Mrudula
>>
>>
>>
>>
>>
>> xbean.xml of the HTTP Consumer SU is given below
>>
>>
>>
>> <beans xmlns:http="http://servicemix.apache.org/http/1.0"
>> xmlns:drools="http://servicemix.apache.org/drools/1.0"
>> xmlns:person="http://servicemix.apache.org/samples/wsdl-first">
>>
>>   <http:endpoint service="person:MulNumService"
>>                  endpoint="soap"
>>                  role="consumer"
>>                  locationURI="http://localhost:8195/MulNumService/"
>>                  defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
>>                  soap="true" targetService="DroolFinalService"/>  
>>     <drools:endpoint service="testMe:DroolFinalService"
>>                   endpoint="endpoint"
>>                   ruleBaseResource="classpath:test1.drl" />
>> </beans>
>>
>>
>> The information contained in this electronic message and any
attachments
>> to this message are intended for the exclusive use of the
addressee(s)
>> and
>> may contain proprietary, confidential or privileged information. If
you
>> are not the intended recipient, you should not disseminate,
distribute or
>> copy this e-mail. Please notify the sender immediately and destroy
all
>> copies of this message and any attachments.
>>
>> WARNING: Computer viruses can be transmitted via email. The recipient
>> should check this email and any attachments for the presence of
viruses.
>> The company accepts no liability for any damage caused by any virus
>> transmitted by this email.
>> 
>> www.wipro.com
>>
>>
> 
> --
> View this message in context:
> http://www.nabble.com/Status-12029-tf3940060s12049.html#a11189497
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
> 
> 
> 
> 
>  
> 
> The information contained in this electronic message and any
attachments
> to this message are intended for the exclusive use of the addressee(s)
and
> may contain proprietary, confidential or privileged information. If
you
> are not the intended recipient, you should not disseminate, distribute
or
> copy this e-mail. Please notify the sender immediately and destroy all
> copies of this message and any attachments. 
> 
> WARNING: Computer viruses can be transmitted via email. The recipient
> should check this email and any attachments for the presence of
viruses.
> The company accepts no liability for any damage caused by any virus
> transmitted by this email.
>  
> www.wipro.com
> 

-- 
View this message in context:
http://www.nabble.com/Status-12029-tf3940060s12049.html#a11195951
Sent from the ServiceMix - User mailing list archive at Nabble.com.



The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
 
www.wipro.com

RE: How to test the drools component?

Posted by Gert Vanthienen <ge...@skynet.be>.
Mrudula,

I don't think you need the targetService in this case.  The Drools endpoint
is an internal endpoint, the HTTP endpoint would only expose it to the
outside world.

Anyway, if you do specify it however, it should include the correct
namespace as well, so it should say
targetService="testMe:DroolFinalService".

Gert


mrudulam wrote:
> 
> Hi Gert,
>  
> Thanks for the reply. Please verify my understanding. I have listed the
> xbean.xml for the HTTP SU and the Drool SU below. Please confirm if this
> is what you meant. Also -if I have specified the targetService correctly.
>  
> By this, when I access the url http://localhost:8195/TestDroolService, I
> should be able to invoke the test1.drl. Is that correct?
>  
> Regards,
> Mrudula
>  
>  
>  
>  
>  <beans xmlns:http="http://servicemix.apache.org/http/1.0"
>  xmlns:drools="http://servicemix.apache.org/drools/1.0"
>  xmlns:testMe="http://servicemix.apache.org/samples/wsdl-first">
>    <http:endpoint service="testMe:DroolFinalService"
>                   endpoint="httpEndPoint"
>                   role="consumer"
>                   locationURI="http://localhost:8195/TestDroolService/"
>                   defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
>                   soap="true" targetService="DroolFinalService"/>  
> </beans>
>  
>  <beans xmlns:http="http://servicemix.apache.org/http/1.0"
>  xmlns:drools="http://servicemix.apache.org/drools/1.0"
>  xmlns:testMe="http://servicemix.apache.org/samples/wsdl-first">
> 
> <drools:endpoint service="testMe:DroolFinalService"
>                    endpoint="DroolEndpoint"
>                    ruleBaseResource="classpath:test1.drl" />
> </beans>
> 
> ________________________________
> 
> From: Gert Vanthienen [mailto:gert.vanthienen@skynet.be]
> Sent: Tue 6/19/2007 12:26 PM
> To: servicemix-users@geronimo.apache.org
> Subject: Re: How to test the drools component?
> 
> 
> 
> 
> L.S.,
> 
> 
> In your case, your SA needs a
> * HTTP SU, with an xbean.xml to define the consumer endpoint
> * Drools SU, with an xbean.xml to define the drools endpoint
> 
> I would recommend you to specify the same service name (including
> namespace)
> on both endpoints: that way you expose your drools endpoint to the outside
> world using SOAP/HTTP directly.
> 
> 
> Gert
> 
> 
> mrudulam wrote:
>>
>>
>>
>> Hi,
>>
>> New to ServiceMix and exploring the drools component.
>> I have created a HTTP Consumer SU, a JSR 181 SU (and a SA to deploy the
>> two.) After the Webservice is processed, I expect the drools endpoint to
>> be activated. (Pls see the xbean.xml configuration below) since I have
>> given the targetService attribute. But nothing happens.
>>
>> Please tell me what is wrong with this approach.
>>
>> Also - is there any way to test the drools component independently?
>>
>> Regards,
>> Mrudula
>>
>>
>>
>>
>>
>> xbean.xml of the HTTP Consumer SU is given below
>>
>>
>>
>> <beans xmlns:http="http://servicemix.apache.org/http/1.0"
>> xmlns:drools="http://servicemix.apache.org/drools/1.0"
>> xmlns:person="http://servicemix.apache.org/samples/wsdl-first">
>>
>>   <http:endpoint service="person:MulNumService"
>>                  endpoint="soap"
>>                  role="consumer"
>>                  locationURI="http://localhost:8195/MulNumService/"
>>                  defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
>>                  soap="true" targetService="DroolFinalService"/>  
>>     <drools:endpoint service="testMe:DroolFinalService"
>>                   endpoint="endpoint"
>>                   ruleBaseResource="classpath:test1.drl" />
>> </beans>
>>
>>
>> The information contained in this electronic message and any attachments
>> to this message are intended for the exclusive use of the addressee(s)
>> and
>> may contain proprietary, confidential or privileged information. If you
>> are not the intended recipient, you should not disseminate, distribute or
>> copy this e-mail. Please notify the sender immediately and destroy all
>> copies of this message and any attachments.
>>
>> WARNING: Computer viruses can be transmitted via email. The recipient
>> should check this email and any attachments for the presence of viruses.
>> The company accepts no liability for any damage caused by any virus
>> transmitted by this email.
>> 
>> www.wipro.com
>>
>>
> 
> --
> View this message in context:
> http://www.nabble.com/Status-12029-tf3940060s12049.html#a11189497
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
> 
> 
> 
> 
>  
> 
> The information contained in this electronic message and any attachments
> to this message are intended for the exclusive use of the addressee(s) and
> may contain proprietary, confidential or privileged information. If you
> are not the intended recipient, you should not disseminate, distribute or
> copy this e-mail. Please notify the sender immediately and destroy all
> copies of this message and any attachments. 
> 
> WARNING: Computer viruses can be transmitted via email. The recipient
> should check this email and any attachments for the presence of viruses.
> The company accepts no liability for any damage caused by any virus
> transmitted by this email.
>  
> www.wipro.com
> 

-- 
View this message in context: http://www.nabble.com/Status-12029-tf3940060s12049.html#a11195951
Sent from the ServiceMix - User mailing list archive at Nabble.com.


RE: How to test the drools component?

Posted by mr...@wipro.com.
Hi Gert,
 
Thanks for the reply. Please verify my understanding. I have listed the xbean.xml for the HTTP SU and the Drool SU below. Please confirm if this is what you meant. Also -if I have specified the targetService correctly.
 
By this, when I access the url http://localhost:8195/TestDroolService, I should be able to invoke the test1.drl. Is that correct?
 
Regards,
Mrudula
 
 
 
 
 <beans xmlns:http="http://servicemix.apache.org/http/1.0"
 xmlns:drools="http://servicemix.apache.org/drools/1.0"
 xmlns:testMe="http://servicemix.apache.org/samples/wsdl-first">
   <http:endpoint service="testMe:DroolFinalService"
                  endpoint="httpEndPoint"
                  role="consumer"
                  locationURI="http://localhost:8195/TestDroolService/"
                  defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
                  soap="true" targetService="DroolFinalService"/>  
</beans>
 
 <beans xmlns:http="http://servicemix.apache.org/http/1.0"
 xmlns:drools="http://servicemix.apache.org/drools/1.0"
 xmlns:testMe="http://servicemix.apache.org/samples/wsdl-first">

<drools:endpoint service="testMe:DroolFinalService"
                   endpoint="DroolEndpoint"
                   ruleBaseResource="classpath:test1.drl" />
</beans>

________________________________

From: Gert Vanthienen [mailto:gert.vanthienen@skynet.be]
Sent: Tue 6/19/2007 12:26 PM
To: servicemix-users@geronimo.apache.org
Subject: Re: How to test the drools component?




L.S.,


In your case, your SA needs a
* HTTP SU, with an xbean.xml to define the consumer endpoint
* Drools SU, with an xbean.xml to define the drools endpoint

I would recommend you to specify the same service name (including namespace)
on both endpoints: that way you expose your drools endpoint to the outside
world using SOAP/HTTP directly.


Gert


mrudulam wrote:
>
>
>
> Hi,
>
> New to ServiceMix and exploring the drools component.
> I have created a HTTP Consumer SU, a JSR 181 SU (and a SA to deploy the
> two.) After the Webservice is processed, I expect the drools endpoint to
> be activated. (Pls see the xbean.xml configuration below) since I have
> given the targetService attribute. But nothing happens.
>
> Please tell me what is wrong with this approach.
>
> Also - is there any way to test the drools component independently?
>
> Regards,
> Mrudula
>
>
>
>
>
> xbean.xml of the HTTP Consumer SU is given below
>
>
>
> <beans xmlns:http="http://servicemix.apache.org/http/1.0"
> xmlns:drools="http://servicemix.apache.org/drools/1.0"
> xmlns:person="http://servicemix.apache.org/samples/wsdl-first">
>
>   <http:endpoint service="person:MulNumService"
>                  endpoint="soap"
>                  role="consumer"
>                  locationURI="http://localhost:8195/MulNumService/"
>                  defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
>                  soap="true" targetService="DroolFinalService"/>  
>     <drools:endpoint service="testMe:DroolFinalService"
>                   endpoint="endpoint"
>                   ruleBaseResource="classpath:test1.drl" />
> </beans>
>
>
> The information contained in this electronic message and any attachments
> to this message are intended for the exclusive use of the addressee(s) and
> may contain proprietary, confidential or privileged information. If you
> are not the intended recipient, you should not disseminate, distribute or
> copy this e-mail. Please notify the sender immediately and destroy all
> copies of this message and any attachments.
>
> WARNING: Computer viruses can be transmitted via email. The recipient
> should check this email and any attachments for the presence of viruses.
> The company accepts no liability for any damage caused by any virus
> transmitted by this email.
> 
> www.wipro.com
>
>

--
View this message in context: http://www.nabble.com/Status-12029-tf3940060s12049.html#a11189497
Sent from the ServiceMix - User mailing list archive at Nabble.com.




Re: How to test the drools component?

Posted by Gert Vanthienen <ge...@skynet.be>.
L.S.,


In your case, your SA needs a 
* HTTP SU, with an xbean.xml to define the consumer endpoint
* Drools SU, with an xbean.xml to define the drools endpoint

I would recommend you to specify the same service name (including namespace)
on both endpoints: that way you expose your drools endpoint to the outside
world using SOAP/HTTP directly.


Gert


mrudulam wrote:
> 
> 
> 
> Hi,
> 
> New to ServiceMix and exploring the drools component. 
> I have created a HTTP Consumer SU, a JSR 181 SU (and a SA to deploy the
> two.) After the Webservice is processed, I expect the drools endpoint to
> be activated. (Pls see the xbean.xml configuration below) since I have
> given the targetService attribute. But nothing happens.
> 
> Please tell me what is wrong with this approach.
> 
> Also - is there any way to test the drools component independently?
> 
> Regards,
> Mrudula
> 
> 
> 
> 
> 
> xbean.xml of the HTTP Consumer SU is given below
> 
> 
> 
> <beans xmlns:http="http://servicemix.apache.org/http/1.0"
> xmlns:drools="http://servicemix.apache.org/drools/1.0"
> xmlns:person="http://servicemix.apache.org/samples/wsdl-first">
> 
>   <http:endpoint service="person:MulNumService"
>                  endpoint="soap"
>                  role="consumer" 
>                  locationURI="http://localhost:8195/MulNumService/"
>                  defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
>                  soap="true" targetService="DroolFinalService"/>   
>     <drools:endpoint service="testMe:DroolFinalService"
>                   endpoint="endpoint"
>                   ruleBaseResource="classpath:test1.drl" />
> </beans>
> 
> 
> The information contained in this electronic message and any attachments
> to this message are intended for the exclusive use of the addressee(s) and
> may contain proprietary, confidential or privileged information. If you
> are not the intended recipient, you should not disseminate, distribute or
> copy this e-mail. Please notify the sender immediately and destroy all
> copies of this message and any attachments. 
> 
> WARNING: Computer viruses can be transmitted via email. The recipient
> should check this email and any attachments for the presence of viruses.
> The company accepts no liability for any damage caused by any virus
> transmitted by this email.
>  
> www.wipro.com
> 
> 

-- 
View this message in context: http://www.nabble.com/Status-12029-tf3940060s12049.html#a11189497
Sent from the ServiceMix - User mailing list archive at Nabble.com.