[ https://issues.apache.org/activemq/browse/SM-528?page=all ]
Guillaume Nodet resolved SM-528.
--------------------------------
Fix Version/s: 3.0-M3
Resolution: Fixed
Assignee: Guillaume Nodet
Author: gnodet
Date: Thu Aug 10 10:09:32 2006
New Revision: 430441
URL: http://svn.apache.org/viewvc?rev=430441&view=rev
Log:
SM-528: use the ClientFactory inside the jsr181 proxy to ease configuration
To handle that, a BeanFactory with some existing beans is set as the parent
of the SU bean factory. It allow using a "#context" to retrieve a
ComponentContext
inside the SU.
Added:
incubator/servicemix/trunk/servicemix-jsr181/src/test/java/org/apache/servicemix/jsr181/Jsr181ProxySUTest.java
incubator/servicemix/trunk/servicemix-jsr181/src/test/java/test/EchoProxy.java
incubator/servicemix/trunk/servicemix-jsr181/src/test/resources/proxy/
incubator/servicemix/trunk/servicemix-jsr181/src/test/resources/proxy/xbean.xml
incubator/servicemix/trunk/servicemix-jsr181/src/test/resources/target/
incubator/servicemix/trunk/servicemix-jsr181/src/test/resources/target/xbean.xml
Modified:
incubator/servicemix/trunk/servicemix-jsr181/src/main/java/org/apache/servicemix/jsr181/EndpointComponentContext.java
incubator/servicemix/trunk/servicemix-jsr181/src/main/java/org/apache/servicemix/jsr181/EndpointDeliveryChannel.java
incubator/servicemix/trunk/servicemix-jsr181/src/main/java/org/apache/servicemix/jsr181/Jsr181Endpoint.java
incubator/servicemix/trunk/servicemix-jsr181/src/main/java/org/apache/servicemix/jsr181/Jsr181XBeanDeployer.java
incubator/servicemix/trunk/servicemix-jsr181/src/main/java/org/apache/servicemix/jsr181/xfire/JbiProxyFactoryBean.java
incubator/servicemix/trunk/servicemix-jsr181/src/test/java/org/apache/servicemix/jsr181/xfire/JbiProxyTest.java
incubator/servicemix/trunk/servicemix-jsr181/src/test/resources/good1/xbean.xml
> using the new ClientFactory for the JSR181 proxy inside jsr181 service unit
> ---------------------------------------------------------------------------
>
> Key: SM-528
> URL: https://issues.apache.org/activemq/browse/SM-528
> Project: ServiceMix
> Issue Type: Improvement
> Components: servicemix-jsr181
> Affects Versions: 3.0-M2
> Reporter: James Bradt
> Assigned To: Guillaume Nodet
> Priority: Minor
> Fix For: 3.0-M3
>
>
> Unfortunately, you currently need a reference to the JBI container (or a
> ComponentContext).
> But neither the JBIContainer nor the ComponentContext are available at the
> time the
> xbean file is loaded.
> This could now be solved by using the new ClientFactory which is available
> in JNDI, but has
> been coded yet. Could you please raise a JIRA for that ?
> For now, you need to create the JbiProxy programmaticaly from your POJO.
> On 8/8/06, James Bradt <[EMAIL PROTECTED]> wrote:
> >
> > I've taken a look at the unit test for jsr181 proxy (and the small amount
> > of
> > info in the wiki area), but I can't seem to answer this question.
> >
> > Can a jsr181:proxy tag be defined within the xbean.xml for a jsr181
> > service
> > unit, or can it only be used within a lwcontainer service unit?
> >
> > If I can use it within a jsr181 service unit, what is the container name
> > that I should I reference within the jsr181:proxy element?
> >
> > Thanks,
> > James
> >
> >
> >
> >
> --
> Cheers,
> Guillaume Nodet
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira