As you have a bean only which implements the listener interface, there are no properties telling you what's the name of the endpoint / service of this bean. (at least I do not know any) Maybe the channel or the component context can tell you something, but I am wondering why do you need that information. Much more interesting values are the targetService and targetEndpoint properties. If you want such things, then create these properties inside your bean as private variables and put the corresponding getters and setters in the code as well. Then you should have access to these values from within your code.
Lars rgavlin schrieb: > Within my code, I want to know the service QName and the endpoint name that > was "configured" for my endpoint. In other words, I want to know the > information from the xbean.xml file that was used to configure my > ServiceEndpoint instance. Does that make sense? > > - Ron > > > lhe77 wrote: > >> I think you can't "calculate" it. The service or endpoint is a thing of >> your configuration. What you can do of course is routing a message to a >> specific service depending on the content of the message. >> Otherwise you have to set your targetService / targetEndpoint to suit your >> needs. >> >> Regards >> Lars >> >> >> >> >> rgavlin schrieb: >> >>> Greetings, >>> >>> I have a servicemix-bean similar to the example ListenerBean >>> (http://incubator.apache.org/servicemix/dist/servicemix-3.1-incubating/site/deployables/serviceengines/servicemix-bean/xref-test/org/apache/servicemix/bean/beans/ListenerBean.html). >>> Within onMessageExchange(), how can I calculate the relevant service & >>> endpoint values? >>> >>> Thanks in advance. >>> >>> - Ron >>> >>> >> > >
