Guest User

Untitled

a guest
Sep 19th, 2015
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. @PostConstruct
  2. private void jndiLookupWholesaleEJB() {
  3. if (wholesaleEJB==null){
  4. try {
  5. wholesaleEJB=(WholesaleEJB) (new InitialContext()).lookup("WholesaleEJB");
  6. } catch (NamingException e) {
  7. throw new IllegalStateException("Failed to lookup WholesaleEJB", e);
  8. }
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment