I don't understand what the getline is doing here, I would normally use that to 'capture' the output of a system command executed by awk
So, I'm going to ignore it here
Code:
awk -F\" '/org.apache.coyote.tomcat4.CoyoteConnector/{print $2}' ${JBOSS_APP_CFG} 2>/dev/null
-F\" # use " as field separator
/string/ # only consider lines that contain 'string'
{print $2} # print field 2
${JBOSS_APP_CFG} # the file you want to process
2>/dev/null # don't display errors ,, pointless if you ask me
further reading
https://startpage.com/do/search?q=awk+manual
note , to confuse matters there are various versions of awk
gawk,nawk,mawk
gawk is arguably the 'most powerful' having a much richer feature set