[ 
https://issues.apache.org/jira/browse/DIRMINA-510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12557985#action_12557985
 ] 

Maarten Bosteels commented on DIRMINA-510:
------------------------------------------

> Question is will Spring create a nice URL for you in your example and use the 
> current ResourceLoader to resolve the URL?

Spring was able to resolve the "classpath:/serverContext.xml" so I guess it's 
using the current ResourceLoader 
(and converting the string value to a URL using an implicitly available 
ResourceEditor)

It took me a while to find out all the changes I had to make to 
serverContext.xml and I wondered:  is it really that important to get rid of 
the Spring dependency ?

IMO the KeyStoreFactoryBean with an org.springframework.core.io.Resource 
property was more convenient than what we have now.
At least for Spring users.

http://mina.apache.org/report/1.1/apidocs/org/apache/mina/integration/spring/ssl/KeyStoreFactoryBean.html


> Spring version of chat example breaks
> -------------------------------------
>
>                 Key: DIRMINA-510
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-510
>             Project: MINA
>          Issue Type: Bug
>          Components: Example
>    Affects Versions: 2.0.0-M1
>            Reporter: Maarten Bosteels
>            Assignee: Maarten Bosteels
>            Priority: Trivial
>             Fix For: 2.0.0-M1
>
>
> org.apache.mina.example.chat.SpringMain because of ClassNotFoundException
> Exception in thread "main" 
> org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find 
> class [org.apache.mina.integration.spring.ssl.KeyStoreFactoryBean] for bean 
> with name 'keyStore' defined in class path resource 
> [org/apache/mina/example/chat/serverContext.xml]; nested exception is 
> java.lang.ClassNotFoundException
> ...
> see 
> http://www.nabble.com/Spring-related-mina-example-code-breaks-to14735748s16868.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to