-
1. Re: MissingServiceException occured when Service Invoked using deliverySync
nishbmishra Jul 10, 2013 5:31 AM (in response to nishbmishra)FInd Below the ESB XML -->
<?xml version="1.0"?>
<jbossesb parameterReloadSecs="5"
xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.0.1.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.0.1.xsd http://anonsvn.jboss.org/repos/labs/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.0.1.xsd">
<services>
<service category="ServiceOne"
description="This is for Local Testing only" invmScope="GLOBAL" name="ServiceOne">
<property name="maxThreads" value="5"/>
<actions mep="RequestResponse">
<action class="com.hp.action.MyCustomAction" name="MyCustomAction">
<property name="okMethod" value="processSuccess"/>
</action>
</actions>
</service>
</services>
</jbossesb>
-
2. Re: MissingServiceException occured when Service Invoked using deliverySync
tcunning Jul 10, 2013 11:17 AM (in response to nishbmishra)I'm wondering if you have a configuration problem - have you tried using a ServiceInvoker against a different service (like a quickstart or something like that) with the same setup/classpath that you are using here?
-
3. Re: MissingServiceException occured when Service Invoked using deliverySync
nishbmishra Jul 11, 2013 2:23 AM (in response to tcunning)Hi Tom
THanks for Reply but i am not sure what config Problems are you talking about
I however encountered your reply on a discussion which i think makes sense in my case and that is why the Missing Service Exception
Below is the link for the same:
https://community.jboss.org/thread/175548
Can you help me understand why the Async Call is getting successful?
Thanks,
-
4. Re: MissingServiceException occured when Service Invoked using deliverySync
tcunning Jul 11, 2013 9:46 AM (in response to nishbmishra)Nish,
Could you try what I suggested (deploy the helloworld quickstart, and then just change the ServiceOne:ServiceOne category:servicename in your main(String args[]) to match the category and servicename in helloworld)? If you see the same error, t'd give us proof that this is a configuration issue.
Basically there's a bunch of underlying dependencies to run ServiceInvoker from a standalone app (META-INF/uddi.xml, a long list of JARs, etc) that are needed for ServiceInvoker to interact with the registry. If you can try the above, and also reply with the version of JBoss ESB you are using, I think we can get you sorted out with the correct list of dependencies for ServiceInvoker.
-
5. Re: MissingServiceException occured when Service Invoked using deliverySync
nishbmishra Jul 12, 2013 3:00 AM (in response to tcunning)Hi Tom,
I was able to Invoke the Service following ur advice Using DeliverSync method. after deploying the the hellowworld quickstart.
I had an Exception but that is because I believe I do not have a reply Queue so message was not delivered back, and/or mep is in oneWay
Server Console:
[STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
[STDOUT] Body: Chapter 3 says Hello via ServiceInvoker!
[STDOUT] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
[STDOUT] Message structure:
[STDOUT] [Chapter 3 says Hello via ServiceInvoker!].
[ExceptionUtil] SessionEndpoint[rd-5lkzz0jh-1-bq9iz0jh-icqtqr-92xv4g] createQueue [1e-jzozz0jh-1-bq9iz0jh-icqtqr-92xv4g]javax.jms.JMSException: There is no administratively defined queue with name:queue/quickstart_helloworld_Request_esb_reply
Java Application Console:
Calling Service
Exception in thread "main" org.jboss.soa.esb.listeners.message.MessageDeliverException: Failed to deliver message [header: [ ]] to Service [FirstServiceESB:SimpleListener]. Check for errors.
DeliveryAsync call was without any errors.
My JBoss ESB is 4.10 /Jboss AS 5.1.0.
made an Observations with Questions :
1. I am using InVM in my ESB service, can that be an Issue? If yes what is the correct way of using it..
2. Do i need a reply Queue/path and /or Gateway listener always while Invoking through?
3. how do I use InVM without any other Listner/queue to make a Sync call ?
4. I have a case where a WS Listner that will trigger the ESB Pipline Synchronously but I am not using any other Listner Except InVM for ESB. Can this be done? Under light of what I am facing
-
6. Re: MissingServiceException occured when Service Invoked using deliverySync
tcunning Jul 12, 2013 10:59 AM (in response to nishbmishra)I didn't notice that you were using InVM - yes, you need to add a listener. InVM means that the service can be contacted within the *same VM*. You're trying to invoke the service from a different VM as far as I can see (public static void main etc).