[jboss-user] [EJB/JBoss] - Re: Accessing Applet behind NAT firewall [EJB application]
robert.geisler
do-not-reply at jboss.com
Tue Jun 24 10:43:44 EDT 2008
hi, sandeep,
did you find a solution for your problem?
if i do understand you correctly, you are using JMXInvokerServlet and EJBInvokerServlet and everything breaks, because you have to static declare the InvokerURLs for the servlets?
maybe this could be a hint for you: you are allowed to declare a String as a key of a system property for the InvokerURL, "jboss.ejb2.invoker.http" for example (see above). then you can set the value of the system property "jboss.ejb2.invoker.http" within your application/ applet, "to form the URLs from the client [...] at the runtime"...?
service-binding.xml:
| <service-bindings>
|
| <server name="JBOSS">
|
| ...
|
| <!-- **************** http-invoker.sar & httpha-invoker.sar*************** -->
| <!-- EJBInvoker -->
| <service-config name="jboss:service=invoker,type=http"
| delegateClass="org.jboss.services.binding.AttributeMappingDelegate">
| <delegate-config> <attribute name="InvokerURL">jboss.ejb2.invoker.http</attribute> </delegate-config>
| <binding port="8230"/>
| </service-config>
|
| ...
|
| </server>
|
| </service-bindings>
client.java:
| ...
| String url = "http://" + this.ip + ":" + this.port + "/" + "invoker/EJBInvokerServlet"; System.setProperty("jboss.ejb2.invoker.http", url); ...
|
let me know if this works for you
robert
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4160256#4160256
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4160256
More information about the jboss-user
mailing list