use of com.basho.riak.client.IRiakClient in project javaee7-samples by javaee-samples.
the class PersonSessionBean method initDB.
@PostConstruct
private void initDB() {
try {
IRiakClient client = RiakFactory.pbcClient("localhost", 8087);
myBucket = client.fetchBucket("test").execute();
} catch (RiakException ex) {
Logger.getLogger(PersonSessionBean.class.getName()).log(Level.SEVERE, null, ex);
}
}
Aggregations