File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes Help please !!!   ---    SSL and listen port Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Help please !!!   ---    SSL and listen port" Watch "Help please !!!   ---    SSL and listen port" New topic
Author

Help please !!! --- SSL and listen port

deepa karkala
Ranch Hand

Joined: Jan 29, 2003
Posts: 62
I have a cluster setup done long back itself with 4 managed servers. I have serious question on this. There are some basic requirements to setup a cluster such as all the managed servers should listen to the same port and they also should have same SSL port.
I noticed from the admin console that the listen port for all the servers is 7001 and SSL port is 7002 . But when I looked at the local config files of the managed servers, only in config file of server1, 7001 and 7002 are mentioned. But in all other server cofig files , ports 7101 and 7102 are mentioned. Looks like the basic requirements for setting up cluster are not met over here. Even if one server is not having similar listen port and SSL port, the cluster will fail right ?
(However, from the admin console all the managed servers listen to 7001 and SSL port is 7002 for all of them. )
As of now, the application is running. But once in a while I am facing the problem that most of the users will be kicked out of the application. I don't know whether it is because of cluster problem ?
By the way, the web servers are Tomcat which are communicating to Weblogic application servers through jndi.properties in which for look up, all the managed server
address are mentioned which is nothing but cluster concept as per BEA manual. What I mean is the tomcat servers do jndi lookup through the cluster concept itself. (the contents of the jndi.properties file is :
java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory
java.naming.provider.url=t3://IPadd1,ipadd2,ipadd3,ipadd4:7001 )
I would highly appreciate if anyone can help me in solving my problem.
Thanks in advance.
Gayan Balasooriya
Ranch Hand

Joined: Jul 31, 2002
Posts: 51
Hi,
Weblogic 7.0 allows a cluster to share one listen address and different listen ports.But previous versions doesn't allow this.Are you using
Weblogic 7 or a previous release?
Gayan Balasooriya
Sun Certified Programmer for Java 2 SE
Sun Certified Web Component Developer for J2EE


SCJP, SCWCD
deepa karkala
Ranch Hand

Joined: Jan 29, 2003
Posts: 62
I am using weblogic 6.1 and as per 6.1, all the managed servers should have same listen port and same SSL port.
regards.
deepa karkala
Ranch Hand

Joined: Jan 29, 2003
Posts: 62
Hi Gayan,
I would like to tell you one more thing. As per weblogic manual, the managed servers will refer the config of the admin server. So I am not still clear whether the local config files are used at any point of time by the managed servers or not. If at all the local config files are not refered to by the respective managed server then it does not matter what is there in the local config files regarding SSL port and listen port.
But if at all the local config file is not referred to by the managed server, then from where else the managed server gets the info. about SSL port and listen port ? As of now, my admin config file is not having any information about SSL and listen port. Nothing is mentioned in the admin config file about these 2 ports.
Still the application is running fine with all these confusion except once in a while kicking out the users from the front end.
thanks and regards.
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
Originally posted by jyothi:
So I am not still clear whether the local config files are used at any point of time by the managed servers or not.

They shouldn't be. The Managed Servers should be getting all there configuration information from the Administration Server. See this link: Domain Directory and config.xml.
Originally posted by jyothi:
But if at all the local config file is not referred to by the managed server, then from where else the managed server gets the info. about SSL port and listen port ? As of now, my admin config file is not having any information about SSL and listen port. Nothing is mentioned in the admin config file about these 2 ports.

If you don't specify the Listen and SSL ports in your configuration then they automatically default to 7001 and 7002. Therefore, your Managed Servers are getting the default port setting from the Administration Server even though it is not explicitly defined.
Vikalp Singh
Ranch Hand

Joined: Dec 29, 2002
Posts: 50
Yes ,
All servers refer to only one config file for that particiular domain.
and when you will create any managed server you have to give the port number for that domain.
deepa karkala
Ranch Hand

Joined: Jan 29, 2003
Posts: 62
I thank all of you for your valuable replies to my question.
So, whenever application .ear file is deployed to the individual managed server (each one is on different HP-UX), the local config file will not be updated about the entries
<Application Deployed="true" Name=" ...."
Path="./config/ABCDomain/applications/xxx.ear">
<EJBComponent Name="....."
Targets="....."
........
.........
</Application>
but admin config file will definitely be updated about this because managed servers refer only admin config file for all the information including the applications deployed.
Am I right about this conclusion?
I am really sorry if I have bugged you with my question and I really appreciate if any of you can just right "YES" or NO" for this question.
Thanks and regards.
Venkatraman Balasubramanian
Ranch Hand

Joined: Feb 14, 2002
Posts: 34
Yes, you are right.
If the config.xml used by the Admin server contains the ear file in it, all you need to do is deploy the runtime (ear and its dependencies) to the managed server instances.


Venkatraman Balasubramanian<br />SCJP2, SCWCD, SCEA Part I<br />BEA System Certified jCert Enterprise Developer (WLS 6.0).<br />MCSD, MCAD, OCA (Oracle 9i), OCP (JDeveloper R3)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help please !!! --- SSL and listen port
 
Similar Threads
config file of admin server
Help please !!!--- jndi.properties file in tomcat
Cluster configuration with managed servers on a single machine
javabind exception when starting a managed server
About port numbers