<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Re: EJB3 over SSL doesn't work for remote client
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/chengwen">Wen Cheng</a> in <i>EJB3</i> - <a href="http://community.jboss.org/message/624379#624379">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hello, Siddu:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>    I use jboss 6.0.0.0 final. So my configuration is based on jboss6. </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>     If you don't care to bind the IP address to the Jboss server, try to start jboss with:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>-c default <strong>-b 147.141.95.125</strong> -Djavax.net.ssl.keyStore=C:/jboss-5.1.0.GA/server/default/conf/archserver.keystore -Djavax.net.ssl.keyStorePassword=testing</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>    If this doesn't work, tryp to change your pc name(maybe you need to restart your computer after the change). Remove the character "-" from your computer name. It's an "invalid" character form jboss, I think.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>   The following is my conclusion during my "struggle" to run ejb3+ssl, please see if it helps.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>   There are 4  "<span style="font-size: 10pt;">"sslsocket://</span>" urls in the configuration.</p><p>   1) ejb3-connectors-jboss-beans.xml   </p><p>   2) jboss.xml in EJB jar META-INF fodler</p><p>   3) the ejb source code; <span style="font-size: 10pt;">@RemoteBinding(clientBindUrl="sslsocket://147.141.95.125:3843")</span></p><p><span style="font-size: 10pt;">   4) the url of the start up parameter "-b", I think it is also has some thing to do</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-size: 10pt;">   After my test, I found that , of all the four places, only 2 is the key: the address in  "</span>jboss.xml<span style="font-size: 10pt;">" and after "-b". This two should be match. If they are the same, then the ejb works. The other two are replaced by the "jboss.xml" url, I think.</span></p><p><span style="font-size: 10pt;">   Let's talk about "-b" then.</span></p><p><span style="font-size: 10pt;">   As you know ,"-b" means "jboss.bind.address", or the binding address of ALL the jboss service. Of all the services, I think the one connect to EJB is RMI. So what we should focus is only the binding address of RMI. The configuration file of rmi binding address is :</span></p><p><span style="font-size: 10pt;">   %JBOSS_HOME%/server/default/deploy/</span>naming-jboss-beans.xml</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>See the property "bindingAdress" and "rmiBindAddress" :</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><property name="bindAddress">${jboss.bind.address:localhost}</property></p><p><property name="rmiBindAddress">${jboss.bind.address:localhost}</property></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>In another word, I said "<span style="font-size: 10pt;">the adress in  "</span>jboss.xml<span style="font-size: 10pt;">" and after "-b". This two should match"</span>, it really means :</p><p><span style="font-size: 10pt;"> the address in  "</span>jboss.xml<span style="font-size: 10pt;">" and the address in "</span>naming-jboss-beans.xml<span style="font-size: 10pt;">". they two should be match.If they are the same, then the ejb "channel" is opened. What's more, I found that the address "0.0.0.0" is not the right value. You can use the real IP address, the real hostname. Or you can use the variables like "${jboss.host.name}", or "${java.rmi.server.hostname}". But remember, if you use some variable, you must tell jboss the real value of  it when you start jboss.</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>So, try to set your exact IP address "<strong>147.141.95.125</strong>" in jboss.xml and naming-jboss-beans.xml, and restart you jboss with:</p><p>-c default <strong>-b 0.0.0.0</strong> -Djavax.net.ssl.keyStore=C:/jboss-5.1.0.GA/server/default/conf/archserver.keystore -Djavax.net.ssl.keyStorePassword=testing</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-size: 10pt;"><br/></span></p><p><span style="font-size: 10pt;"><br/></span></p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/624379#624379">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in EJB3 at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>