Exemple #1
0
 @PostConstruct
 public void initialize() {
   logger = Logger.getLogger(KmsSession.class);
   dao = new KmsUserDao();
   if (null == dao.findByNameAndPassword(kmsUserName, kmsPassword)) {
     String userId = KmsPrimaryKey.USER + System.currentTimeMillis();
     try {
       dao.create(new KmsUser(userId, kmsUserName, kmsPassword));
     } catch (Exception e) {
       logger.error("create rvcndev failed");
     }
   }
 }