The answer is yes but it's nothing you'll find documented anywhere I've seen.
Typically the ports used by OC4J are defined in the various configuration files that reside in the j2ee/home/config directory.
RMI(S): rmi.xml
JMS: jms.xml
HTTP: default-web-site.xml
Any or all of these port values can be overridden when OC4J is started by supplying an additional startup string that looks like this:
>java -jar oc4j.jar -properties -ports default-web-site:http:80,rmi:1200,rmis:1201,jms:1202
Note: this mechanism is for the 10.1.3 release.
The string basically specifies the "protocol" and the "port" to use for the protocol. The slight variance is with default-web-site:http:
>java -jar oc4j.jar -properties -ports default-web-site:http:5550,rmi:5551,rmis:5552,jms:5553
>netstat -a | grep 555
TCP sbutton-au:5550 sbutton-au:0 LISTENING
TCP sbutton-au:5551 sbutton-au:0 LISTENING
TCP sbutton-au:5552 sbutton-au:0 LISTENING
TCP sbutton-au:5553 sbutton-au:0 LISTENING
No comments:
Post a Comment