Configurez le fichier jar du nouvel adaptateur de recherche personnalisée avec le composant CAFedSearch pour créer les sources de recherche CA SDM.
%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="nom_utilisateur" value="$(xyz_username)"/>
<property name="mot_passe" 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 transmettez les valeurs à 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 de plus amples renseignements sur les sources de recherche fédérée, reportez-vous à la section Création de sources de recherche fédérée dans CA SDM.
Le nouvel adaptateur de recherche personnalisée est correctement configuré avec le composant CAFedSearch.
|
Copyright © 2013 CA.
Tous droits réservés.
|
|