Skip to content

Instantly share code, notes, and snippets.

@krisskross
Created May 2, 2012 21:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krisskross/2580806 to your computer and use it in GitHub Desktop.
Save krisskross/2580806 to your computer and use it in GitHub Desktop.
AdminContext admin = Lookup.get().lookup(AdminContext.class);
Bean bean = Bean.create(BeanId.create("user", Database.class.getName()));
bean.addProperty("url", "/dev/null");
bean.addProperty("username", "admin");
bean.addProperty("password", "admin123");
bean.addProperty("poolSize", "nonsense");
admin.create(bean);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment