我正在尝试调用部署在远程服务器上的无状态EJB.我可以从我的本地JBoss环境调用bean,但是当我将其更改remote.connection.default.host为远程机器的主机时,我的客户端代码不起作用.
这是我的jboss-ejb-client.properties:
endpoint.name=client-endpoint
remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED=false
remote.connections=default
remote.connection.default.host=SERVERIP/HOSTNAME
remote.connection.default.port=8080
remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS=false
remote.connection.default.username=username
remote.connection.default.password=Password
Run Code Online (Sandbox Code Playgroud)
我的客户端代码如下所示:
Properties properties = new Properties();
properties.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");
String jndi = "jndi_name";
Context context = new InitialContext(properties);
obj = context.lookup(jndi);
Run Code Online (Sandbox Code Playgroud)
请帮忙.
谢谢大家.插口.
我试图将参数传递给wordpress页面.我不想将它作为查询字符串传递.我想以基于斜线的网址传递.
例:
http://localhost/mysite/pagename?user=myname
Run Code Online (Sandbox Code Playgroud)
成
http://localhost/mysite/pagename/myname
Run Code Online (Sandbox Code Playgroud)
如何functions.php在wordpress自定义主题中使用我的文件来实现这一目的?