This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@WebService | |
public class FacadeJaxWs implements FacadeWebService { | |
@EJB(lookup = "FrontendEjb") | |
protected FrontendEjbHome frontendEjbHome; | |
public void updateCustomer() { | |
Context ctxBackend = null; | |
try { | |
Properties envBackend = new Properties(); | |
envBackend.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@WebService | |
public class FacadeJaxWs implements FacadeWebService { | |
@EJB(lookup = "FrontendEjb") | |
protected FrontendEjbHome frontendEjbHome; | |
public void updateCustomer() { | |
Properties envBackend = new Properties(); | |
envBackend.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory"); | |
envBackend.put(Context.PROVIDER_URL, "t3://backend:7001"); | |
envBackend.put(Context.SECURITY_PRINCIPAL, "backend_user"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@WebService | |
public class FacadeJaxWs implements FacadeWebService { | |
@EJB(lookup = "FrontendEjb") | |
protected FrontendEjbHome frontendEjbHome; | |
public void updateCustomer() { | |
Properties envBackend = new Properties(); | |
envBackend.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory"); | |
envBackend.put(Context.PROVIDER_URL, "t3://backend:7001"); | |
envBackend.put(Context.SECURITY_PRINCIPAL, "backend_user"); |