I am writing a Java Swing application, distributed through Web Start, that
is an EJB client to JRun 4. Client and server are running JDK 1.4.1_02 on
Win2k.
I need to get RMI over SSL working for EJB communication between the client
and server.
I have found some barely-documented sections of jrun.xml, and in that file
there are tags that are commented out by default that have to do with the
RMI socket factory:
<!-- ================================================================ -->
<!-- This Service creats a common RMI Broker for use by all JRun RMI. -->
<!-- It is a Clusterable Service. -->
<!-- ================================================================ -->
<service class="jrunx.rmi.RMIBroker" name="JRunRMIBroker">
<attribute name="bindToJNDI">true</attribute>
<attribute name="clusterAlgorithm"
type="jrunx.cluster.RoundRobinAlgorithm" />
<!--
<attribute name="port">0</attribute>
<attribute name="serverSocketFactoryClass"></attribute>
<attribute name="clientSocketFactoryClass"></attribute>
-->
<attribute name="port">0</attribute>
<attribute
name="serverSocketFactoryClass">javax.net.ssl.SSLServerSocketFactory</attrib
ute>
<attribute
name="clientSocketFactoryClass">javax.net.ssl.SSLSocketFactory</attribute>
</service>
I tried the values shown above, but since both of those factories are
abstract, they couldn't be instantiated.
Has anyone gotten this to work?
I am perplexed by the documentation on the port:
"Specifies the port for this service. You typically specify 0, which causes
JRun to pick a random port at runtime."
It seems like the client will not know which port to use since it's random,
unless that's returned by the JNDI lookup.
This is what I think I need to do:
- (Figure out how to) Implemenent concrete subclasses of
SSLServerSocketFactory and SSLSocketFactory
- Put those class names in the right place in jrun.xml
- Figure out how to get RMI to use SSLSocketFactory on the client
If anyone has any tips or links to docs on this, I'd appreciate it. I can't
find anything detailed in the JRun docs, or through Google.
Thanks,
John
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=8
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=8
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.
http://www.cfhosting.com