Revision 0fcbf8bd src/gr/ebs/gss/mbeans/Solr.java
b/src/gr/ebs/gss/mbeans/Solr.java | ||
---|---|---|
19 | 19 |
package gr.ebs.gss.mbeans; |
20 | 20 |
|
21 | 21 |
import static gr.ebs.gss.server.configuration.GSSConfigurationFactory.getConfiguration; |
22 |
import gr.ebs.gss.server.ejb.ExternalAPI; |
|
22 | 23 |
import gr.ebs.gss.server.ejb.ExternalAPIRemote; |
23 | 24 |
|
24 | 25 |
import javax.management.JMRuntimeException; |
... | ... | |
40 | 41 |
try { |
41 | 42 |
InitialContext ctx = new InitialContext(); |
42 | 43 |
Object ref = ctx.lookup(getConfiguration().getString("externalApiPath")); |
43 |
ExternalAPIRemote service = (ExternalAPIRemote) PortableRemoteObject.narrow(ref, ExternalAPIRemote.class);
|
|
44 |
ExternalAPI service = (ExternalAPI) PortableRemoteObject.narrow(ref, ExternalAPI.class);
|
|
44 | 45 |
service.rebuildSolrIndex(); |
45 | 46 |
} catch (ClassCastException e) { |
46 | 47 |
throw new JMRuntimeException(e.getMessage()); |
Also available in: Unified diff