@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);
}
}