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

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

Suppose you have this bean definition:

<bean id="keyStoreFactory" class="o.a.m.filter.ssl.KeyStoreFactory">
 <property name="data" value="classpath:/serverContext.xml"/>
</bean>

Problem is that KeyStoreFactory has several overloaded setData() methods and 
it's unpredictable which one Spring is gonna call.

I suggest to rename the overloaded setData methods to setDataUrl(), 
setDataFile(), and setDataInputStream()
Not sure if the last one needs to be public ?

Objections anyone ?

> 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