[
https://issues.apache.org/jira/browse/IGNITE-6555?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16198627#comment-16198627
]
Denis Mekhanikov commented on IGNITE-6555:
------------------------------------------
This problem is reproduced not only for {{CacheStore}}-s, but for services as
well.
When starting {{IgniteSpringBean}} with configured {{SpringAwareService}} from
code snippet bellow, then initialization never finishes.
{code}
@Component("springComponent")
class SpringComponent {
private final Ignite ignite;
@Autowired
public SpringComponent(Ignite ignite) {
this.ignite = ignite;
}
}
class SpringAwareService implements Service {
@SpringResource(resourceName = "springComponent")
private transient SpringComponent springComponent;
...
}
{code}
A believe that there is the same bug behind these two problems.
> When a CacheStore with a @SpringResource annotated field is configured Ignite
> fails to start via igniteSpringBean
> -----------------------------------------------------------------------------------------------------------------
>
> Key: IGNITE-6555
> URL: https://issues.apache.org/jira/browse/IGNITE-6555
> Project: Ignite
> Issue Type: Bug
> Components: spring
> Affects Versions: 2.2
> Reporter: Alexandr Fedotov
> Assignee: Alexandr Fedotov
> Labels: 2.2, regresion
> Fix For: 2.4
>
>
> When a CacheStore with a @SpringResource annotated field is configured Ignite
> fails to start via igniteSpringBean.
> Example configuration leading to the failure is as follows
> {code:java}
> public class SpringIgniteCacheStore<K, V> extends CacheStoreAdapter<K, V>
> implements Serializable {
> @SpringResource(resourceClass = SomeDao.class)
> public transient SomeDao someDao;
> ...
> }
> @Configuration
> public class IgniteSpringConfig {
> @Bean
> public IgniteSpringBean igniteSpringBean() {
> IgniteSpringBean igniteSpringBean = new IgniteSpringBean();
> ...
> return igniteSpringBean;
> }
> ...
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)