You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "james strachan (JIRA)" <ji...@apache.org> on 2006/07/14 17:00:23 UTC
[jira] Created: (AMQ-825) activemq fails to work with
spring-2.0-rc1
activemq fails to work with spring-2.0-rc1
------------------------------------------
Key: AMQ-825
URL: https://issues.apache.org/activemq/browse/AMQ-825
Project: ActiveMQ
Issue Type: Bug
Affects Versions: 4.0.1
Reporter: james strachan
Assigned To: james strachan
Fix For: 4.1
we get a failure trying to coerce a String into a File for the dataDirectory property on the DefaultPersistenceAdapterFactory
--
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
[jira] Commented: (AMQ-825) activemq fails to work with
spring-2.0-rc1
Posted by "james strachan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/AMQ-825?page=comments#action_36580 ]
james strachan commented on AMQ-825:
------------------------------------
BTW to workaround this issue I tried adding a FileEditor to xbean-spring but that didn't help at all.
It seems 2.0-rc1 or later requires URI syntax for files as strings. e.g. 'foo' -.> 'file:foo' etc.
So am thinking its better to just not use File types in the DefaultPersistenceAdapterFactory and use Strings by default. The downside is this would break folks using the Java API; but better that than break everyone who uses the activemq.xml configuration mechanism
> activemq fails to work with spring-2.0-rc1
> ------------------------------------------
>
> Key: AMQ-825
> URL: https://issues.apache.org/activemq/browse/AMQ-825
> Project: ActiveMQ
> Issue Type: Bug
> Affects Versions: 4.0.1
> Reporter: james strachan
> Assigned To: james strachan
> Fix For: 4.1
>
>
> we get a failure trying to coerce a String into a File for the dataDirectory property on the DefaultPersistenceAdapterFactory
--
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
[jira] Resolved: (AMQ-825) activemq fails to work with
spring-2.0-rc1
Posted by "james strachan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/AMQ-825?page=all ]
james strachan resolved AMQ-825.
--------------------------------
Resolution: Fixed
We avoid using File objects on the default persistence adapter and use Strings instead. Its unfortunate (I tried patching xbean-spring to get around this but I'm afraid it doesn't seem possible). So folks using Java to configure the dataDirectory will need to change foo.setDataDirectory(file) to foo.setDataDirectoryFile(file) or switch to using a String
> activemq fails to work with spring-2.0-rc1
> ------------------------------------------
>
> Key: AMQ-825
> URL: https://issues.apache.org/activemq/browse/AMQ-825
> Project: ActiveMQ
> Issue Type: Bug
> Affects Versions: 4.0.1
> Reporter: james strachan
> Assigned To: james strachan
> Fix For: 4.1
>
>
> we get a failure trying to coerce a String into a File for the dataDirectory property on the DefaultPersistenceAdapterFactory
--
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