Hello,
I just got it working: Access EJBs and the JNDI via HTTP.
I'm, able to access the Enterprise Beans via ONE PORT.
My advices are of course without warranty! ;-)
I think Benoit is right, the scenario specified allows only JNDI via http(s).
Remember, in my requirements HTTP is all right!
You need to confige a container-configuration with a http-invoker.
There are two possibilities:
1. For all Enterprise Beans
2. Only for EBeans you selected, via the jboss-Deployment-Descriptor of your
application.
In my case, I used the first one.
Attention: We are using Hibernate, so I only configured SessionBeans for
http-calls. (Stateless + Statefull)
I changed the configuration in /server/default/conf/standardjboss.xml
| <invoker-proxy-binding>
| <name>stateless-http-invoker</name>
| <invoker-mbean>jboss:service=invoker,type=http</invoker-mbean>
| <proxy-factory>org.jboss.proxy.ejb.ProxyFactory</proxy-factory>
| <proxy-factory-config>
| ......
|
I modified the name from "stateless-rmi-invoker" to "stateless-http-invoker"
and the type in "type=http"
You have to do that for all type of Beans you want to access via http.
After that, you have to change the container configuration in the same file.
Example for the Stateless-SessionBeans:
| <container-configuration>
| <container-name>Standard Stateless SessionBean</container-name>
| <call-logging>false</call-logging>
|
<invoker-proxy-binding-name>stateless-http-invoker</invoker-proxy-binding-name>
| ........
|
I just changed the value of "invoker-proxy-binding-name" to
"stateless-http-invoker" (we just changed the name of this invoker proxy and
its type to "http")
And of course, you need to expose the naming-service via http.
I'm using this client-jndi-properties:
| System.setProperty("java.naming.factory.initial",
"org.jboss.naming.HttpNamingContextFactory");
| System.setProperty("java.naming.provider.url",
"http://IP_OF_MACHINE:PORT_OF_MACHINE/invoker/JNDIFactory");
| System.setProperty("java.naming.factory.url.pkgs",
"org.jboss.naming:org.jnp.interfaces");
|
Hope this helps!
Regards,
Oliver
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3891031#3891031
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3891031
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user