You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "willem Jiang (JIRA)" <ji...@apache.org> on 2007/07/25 07:50:31 UTC
[jira] Resolved: (CXF-510) SpringBusFactory only use DEFAULT_BUS_ID
to create bus from context
[ https://issues.apache.org/jira/browse/CXF-510?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
willem Jiang resolved CXF-510.
------------------------------
Resolution: Fixed
Current solution for the CXFBusImpl's id is not set is that bus.getID will return DEFAULT_BUS_ID + Integer.toString(this.hashCode()) as it's id.
If we need to set the bus id for the bus which created by spring , we could use
<bean id="bus1" class="org.apache.cxf.bus.CXFBusImpl" init-method="initialize">
<property name="id" value= "bus1" />
</bean>
to set the bus id.
So I closed it issue.
> SpringBusFactory only use DEFAULT_BUS_ID to create bus from context
> -------------------------------------------------------------------
>
> Key: CXF-510
> URL: https://issues.apache.org/jira/browse/CXF-510
> Project: CXF
> Issue Type: Bug
> Components: Bus
> Affects Versions: 2.0-RC
> Reporter: willem Jiang
> Assignee: willem Jiang
> Fix For: 2.0.1
>
>
> Current SpringBusFactory use the DEFAULT_BUS_ID (cxf) to getBean from spring application context.
> It dose not support these two usecase:
> User want to create bus with the name other than cxf
>
> User wants to configure two different bus in the same spring configuration file with different busID.
> We need to add the busID arguement in createBus for these two usecase.
> BTW,
> SprintBusFactory does not set the busId.
> When the user calls bus.getID() , it will return null if the bus is created by the SpringBusFactory.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.