Configurez le nouveau fichier .jar pour l'adaptateur de recherche personnalisé avec le composant de recherche fédérée de CA pour créer les sources de recherche de CA SDM.
Procédez comme suit:
%NX_ROOT%\bopcfg\www\CATALINA_BASE_FS\webapps\cafedsearch\WEB-INF\lib
$NX_ROOT\sample\cafedsearch\
<?xml version="1.0" encoding="UTF-8"?>
<beans default-autowire="byName" xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://cxf.apache.org/core
http://cxf.apache.org/schemas/core.xsd
http://cxf.apache.org/jaxrs
http://cxf.apache.org/schemas/jaxrs.xsd" xmlns:cxf="http://cxf.apache.org/core"
xmlns:jaxrs="http://cxf.apache.org/jaxrs"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.springframework.org/schema/beans">
<bean autowire="autodetect"
class=" com.abc.xyz.XYZAdapter "
id="XYZAdapterConfiguration" scope="singleton">
<property name="username" value="$(xyz_username)"/>
<property name="password" value="$(xyz_password)"/>
</bean>
<bean autowire="autodetect" class="com.abc.xyz.XYZAdapter" id="XYZSearchAdapter" init-method="init" destroy-method="destroy" depends-on="XYZAdapterConfiguration">
<property name="config" ref="OpenSpaceAdapterConfiguration" />
</bean>
</beans>
Ajoutez xyz_username et xyz_password dans le fichier adapters.properties et indiquez des valeurs pour la propriété.
fs_adapters_cli -i -k XYZ -b XYZSearchAdapter -t "XYZ-tmpl.xml " -o "xyz.xml
$NX_ROOT\samples\cafedsearch\WEB-INF
pdm_tomcat_nxd -c STOP -t FS pdm_tomcat_nxd -c START -t FS
Pour plus d'informations sur les sources de recherche fédérée, reportez-vous à la section Création des sources de recherche fédérée dans CA SDM.
Le nouvel adaptateur de recherche personnalisé est configuré avec le composant de recherche fédérée de CA.
|
Copyright © 2013 CA.
Tous droits réservés.
|
|