JAVA-24962 - Modifications to make client work with EJB deployed in Wildfly. (#15753)
This commit is contained in:
parent
bac8dd0536
commit
a407c2f015
|
@ -50,6 +50,18 @@
|
||||||
<groupId>io.undertow</groupId>
|
<groupId>io.undertow</groupId>
|
||||||
<artifactId>undertow-servlet</artifactId>
|
<artifactId>undertow-servlet</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.wildfly</groupId>
|
||||||
|
<artifactId>wildfly-naming-client</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.jboss</groupId>
|
||||||
|
<artifactId>jboss-ejb-client</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.wildfly.common</groupId>
|
||||||
|
<artifactId>wildfly-common</artifactId>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
|
|
@ -21,7 +21,7 @@ public class SpringEjbClientApplication {
|
||||||
Properties jndiProps = new Properties();
|
Properties jndiProps = new Properties();
|
||||||
jndiProps.put("java.naming.factory.initial", "org.jboss.naming.remote.client.InitialContextFactory");
|
jndiProps.put("java.naming.factory.initial", "org.jboss.naming.remote.client.InitialContextFactory");
|
||||||
jndiProps.put("jboss.naming.client.ejb.context", true);
|
jndiProps.put("jboss.naming.client.ejb.context", true);
|
||||||
jndiProps.put("java.naming.provider.url", "http-remoting://localhost:8080");
|
jndiProps.put("java.naming.provider.url", "remote+http://localhost:8080");
|
||||||
return new InitialContext(jndiProps);
|
return new InitialContext(jndiProps);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ public class SpringEjbClientApplication {
|
||||||
|
|
||||||
@SuppressWarnings("rawtypes")
|
@SuppressWarnings("rawtypes")
|
||||||
private String getFullName(Class classType) {
|
private String getFullName(Class classType) {
|
||||||
String moduleName = "spring-ejb-remote/";
|
String moduleName = "ejb:/spring-ejb-remote/";
|
||||||
String beanName = classType.getSimpleName();
|
String beanName = classType.getSimpleName();
|
||||||
String viewClassName = classType.getName();
|
String viewClassName = classType.getName();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue