title: Whether Replication Possible With Spring Data Couchbase?
body: <p>HI i just want to know whether the XDCR replication is possible with spring data Couchbase. If possible how can i achieve that .please help .
  My Code Sample</p>
  
  <pre><code>    //configuration class
      @Configuration
      public class ApplicationConfig {
  
      @Bean
      public CouchbaseClient couchbaseClient() throws IOException {
  
          return new CouchbaseClient(Arrays.asList(URI
                  .create("http://localhost:8091/pools")), "xxxw", "");
  
      }
  
      @Bean
      public CouchbaseTemplate couchbaseTemplate() throws IOException {
          return new CouchbaseTemplate(couchbaseClient());
      }
      } 
  
         @Document
         public class Person {
  
      @Field
      String name;
  
  
      @Id
      String id; 
  
      public Person(final String personId, final String personname,
              final int personIdAge, final JSONObject personData) {
  
          this.id = personId;
          this.name = personname;
          this.age = personIdAge;
          this.body = personData;
  
      }
  }
           //main Test class
  
          public class Test {
  
          public static void main(String s[]) {
  
          try {
  
              ApplicationContext context = new AnnotationConfigApplicationContext(
                      ApplicationConfig.class);
  
              CouchbaseTemplate template = context.getBean("couchbaseTemplate",
                      CouchbaseTemplate.class);
  
  
  
  
          } catch (Exception e) {
  
              e.printStackTrace();
          }
  
      }
  </code></pre>
  
  <p>How can i achieve repltcaion to elastic search index through spring data couchbase . with this sample classes ..??</p>