Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @PostConstruct
- private void jndiLookupWholesaleEJB() {
- if (wholesaleEJB==null){
- try {
- wholesaleEJB=(WholesaleEJB) (new InitialContext()).lookup("WholesaleEJB");
- } catch (NamingException e) {
- throw new IllegalStateException("Failed to lookup WholesaleEJB", e);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment