-
1. Re: Migrate connector configuration to JBos AS 7
valsaraj007 Nov 28, 2014 6:22 AM (in response to valsaraj007)1 of 1 people found this helpfulThe server thrown ParseException for following attributes when started JBoss AS 7:
port, address, redirectPort, SSLEnabled, clientAuth, keystoreFile, keystorePass, keystoreType, maxThreads and sslProtocol.
So I removed these to start JBoss without error.
redirectPort is replaced with redirect-port and set the port number directly as ${jboss.web.https.port} didn't work.
How can we replace these in JBoss AS 7?
-
2. Re: Re: Migrate connector configuration to JBos AS 7
jaysensharma Nov 28, 2014 4:43 AM (in response to valsaraj007)Following are the alternatives of AS6 attributes you mentioned for AS7
clientAuth (AS6)
(AS7) "verify-client" => "Enable client certificate verification."
keystoreType (AS6)
(AS7) "keystore-type" => "Type of the keystore, There are various types of keystores available, including PKCS12 and Sun's JKS."
(AS7) "ca-certificate-password" => "description" => "CA Certificate password."
keystorePass (AS6)
(AS7) "password" => "Keystore Password."
keystoreFile (AS6)
(AS7) "certificate-key-file" => "Key file for the certificate." If you have certificate file then you can use: (AS7) "certificate-file" => "Server certificate file."
sslProtocol (AS6)
(AS7) "protocol" => "The SSL protocols that are enabled."
port, address (AS6)
(AS7) "socket-binding" => "The web connector socket-binding reference, this connector should be bound to."
Example:
========
<connector name="https" protocol="HTTP/1.1" scheme="https" socket-binding="https" secure="true"> <ssl name="ssl" key-alias="chapter8" password="rmi+ssl" certificate-key-file="${jboss.server.config.dir}/chap8.keystore" protocol="TLSv1" verify-client="false" certificate-file="${jboss.server.config.dir}/chap8.keystore"/> </connector>
For maxThread setting you will need to configure the Thread Pool Executor inside the "threading" subsystem and then you can define it for your connector using the "executor" attribute. In order to know more about the Executors refer to [1]
<subsystemxmlns="urn:jboss:domain:threads:1.0"> <bounded-queue-thread-pool name="http-executor" blocking="true"> <core-threads count="10" per-cpu="20" /> <queue-length count="10" per-cpu="20" /> <max-threads count="10" per-cpu="20" /> <keepalive-time time="10" unit="seconds" /> </bounded-queue-thread-pool> </subsystem>
[1] http://www.mastertheboss.com/jboss-server/jboss-performance/jboss-as-7-performance-tuning?start=3
-
3. Re: Migrate connector configuration to JBos AS 7
valsaraj007 Nov 28, 2014 7:11 AM (in response to jaysensharma)1 of 1 people found this helpfulThanks much!
It worked
<connector name="https" protocol="HTTP/1.1" scheme="https" socket-binding="https" secure="true">
<ssl protocol="TLSv1" verify-client="false" keystore-type="PKCS12" password="**********" certificate-key-file="${jboss.server.config.dir}/app-webserver.p12"/>
</connector>