Solved

What is the websphere test environment server?

Posted on 2008-10-08
23
1,535 Views
Last Modified: 2013-12-11
How is the test environment server different from the regular development server with regards to Websphere inside Rad 6. Thanks.
0
Comment
Question by:Madhu_A
  • 13
  • 10
23 Comments
 
LVL 41

Expert Comment

by:HonorGod
ID: 22687949
Well, one of the biggest differences is that the directory structure in which
the WebSphere Application Server test environment is installed is:

<RAD_Install_Root>\runtimes\<WTE_version>

Other than that, there is very little that differs.

One thing that I tend to do though, is to have RAD work with an "external"
WebSphere Application Server.  By that, I mean, I install WSAS and then
configure RAD to use this "outside" Application Server.

Hopefully, that make sense, and helps to answer your question.
0
 

Author Comment

by:Madhu_A
ID: 22688493
I actually wanted to know if the test environment server is light weight? If it is in what respect against the regular server - because I noticed that it starts up pretty quickly.
0
 
LVL 41

Expert Comment

by:HonorGod
ID: 22689491
hm... interesting question...  I'll investigate, and get back to you.
0
 
LVL 41

Expert Comment

by:HonorGod
ID: 22702857
The 6.1 Application Server that is bundled with RAD is "identical" to the
stand alone application server.  There is, however, something that "might"
make a difference.  Let's check...

- Open a command prompt
- cd to the <RAD_Install_Home>\runtimes\base_v61
- Start "wsadmin" using the following:

  wsadmin -conntype none -lang jython

- Use the following wsadmin command to get the configuration ID for your server

  server = AdminConfig.list( 'Server' ).splitlines()[ 0 ]

- Use the following command to display the server attributes:

  print AdminConfig.show( server )

- Look for the following line:

[developmentMode false]

- If your value is "true" then, this may be the reason the WTE starts faster.

- Use the following command to exit the wsadmin interactive session

  exit
0
 
LVL 41

Expert Comment

by:HonorGod
ID: 22702879
If you are using a Test environment that has a version of WebSphere earlier than 6.1, let me know.  I'll get the Jacl code to do the same thing for you, if you need it.
0
 

Author Comment

by:Madhu_A
ID: 22703904
Hey, I am getting this error when I ran the second command:

wsadmin>print AdminConfig.show(server)
WASX7015E: Exception running command: "AdminConfig.show(server)"; exception information:
 com.ibm.ws.scripting.ScriptingException: WASX7077E: Incomplete config id: need closing parenthesis in "server"

- Also yes my test environment server is 5.1 but actual server is 6 (I am using rad 6.0)
0
 
LVL 41

Expert Comment

by:HonorGod
ID: 22703997
Ah, there is a problem with the Jython support in 6.0.
The assignment statement for "server" must have a
bad value in it.  Try:

server = AdminConfig.list( 'Server' ).split( '\n' )[ 0 ]

Then:

print server

The value output should be something like:

server1(cells/<CellName>/nodes/<NodeName>/servers/server1|server.xml#Server_1219933843508)

Where:
  <CellName> is the name of the Cell, and
  <NodeName> is the name of the Node
0
 

Author Comment

by:Madhu_A
ID: 22704796
umm, that worked but there isn't much information:

wsadmin>wsadmin>server = AdminConfig.list( 'Server' ).split( '\n' )[ 0 ]
wsadmin>print server
server1(cells/vmPTCAM1613727aNode01Cell/nodes/vmPTCAM1613727aNode01/servers/server1|server.xml#Server_1219096670512)
wsadmin>

What next? Is this to determine if 'developmentMode' is set to false which causes the test server to be faster? Thanks.
0
 
LVL 41

Accepted Solution

by:
HonorGod earned 500 total points
ID: 22705093
That's what you use on the next wsadmin command:

print AdminConfig.show( server )

the output of which should be a bunch of lines, each of which starts with
an open square bracket, and ends with a close square bracket (i.e., '[]').

Look for the one that is either:

[developmentMode false]

or

[developmentMode true]

If it is

[developmentMode true]

Then this could be the answer to your question.

It is my understanding that the WTE of RAD has

[developmentMode true]

by default.
0
 
LVL 41

Expert Comment

by:HonorGod
ID: 22705129
As documented here:

http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.base.doc/info/aes/ae/urun_rappsvr.html

"Run in development mode

Enabling this option may reduce the startup time of an application server..."
0
 

Author Comment

by:Madhu_A
ID: 22705288
Ok, the document confirms that and it may be why our test servers are faster to start up. I ran the command on websphere directory:
C:\Program Files\IBM\Rational\SDP\6.0\runtimes\base_v6\bin>
and got: [developmentMode false]

The above directory is WS6.0 server. I am not sure which directory corresponds to the 5.1 test server. I have these two directories: base_v5, base_v51_stub.

Does base_v51_stub correspond to the test server?
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 41

Expert Comment

by:HonorGod
ID: 22705446
Any "stub" directory under the runtimes will be empty.
It is a placeholder should you decided to add a WTE
for that version of the Application Server.

The ones that don't have a "_stub" suffix, have actual
WTE application servers installed.
0
 

Author Comment

by:Madhu_A
ID: 22705824
I tried the same command in C:\Program Files\IBM\Rational\SDP\6.0\runtimes\base_v51\bin> and did not see the developmentMode parameter.

I wonder if the directory base_v51 then corresponds to the test server I am using! ?
0
 
LVL 41

Expert Comment

by:HonorGod
ID: 22710225
When I search for "development mode" in the 5.1 documentation, no matches
occur.  So, it would seem that that attribute did not exist before 6.0
0
 

Author Comment

by:Madhu_A
ID: 22764493
Anymore replies? HonorGod?
0
 
LVL 41

Expert Comment

by:HonorGod
ID: 22765802
I'm sorry, I didn't realize that you had outstanding/unanswered questions.

If you don't see the developmentMode attribute, I strongly suspect that the
WTE you are using is a version of WebSphere less than 6.0.  So, version 5.1
is a real possability.
0
 

Author Comment

by:Madhu_A
ID: 22768999
HonorGod, yes it is the version 5.1 (sorry I knew it all along) and it does not have the development mode variable. So the question is what makes the Test server run faster. May be the the variable was named something else in those earlier versions.
I know the answer on abstract level that some attribute is turned off which causes the server to not boot up lot of things(classes)  that a real application server but was looking for something more concrete. Thanks.

0
 
LVL 41

Expert Comment

by:HonorGod
ID: 22769635
Ah.  Thanks for that clarification.

So, it sounds like you have a 5.1 WTE, and a 5.1 stand-alone (aka "Base")
Application Server environment, and the WTE starts faster.  Is that the
question?

I am unaware of any documented difference for the WTE that would explain
that different.  There may be something different, as you hypothesize.

Are the WTE and stand-alone application server on the same machine?

Is the only difference which application server is being started?
(i.e., how did you test the start up difference?)

How much time and effort are you interested in investing to figure out the
difference?  ;-)

Remember that 5.1 is out of support, especially now that version 7.0 is generally available.
0
 

Author Comment

by:Madhu_A
ID: 22769692
"So, it sounds like you have a 5.1 WTE, and a 5.1 stand-alone (aka "Base")
Application Server environment, and the WTE starts faster" - yep that is the question :)

Yeah I only see the difference in startup times, test server starting up withing 10 seconds while the app server takes about 90seconds. I am sure there are other differences that I am not aware of.

Umm I not ready to invest a lot more time, it was a question to satisfy my curiosity. Your answers do help :)
0
 

Author Comment

by:Madhu_A
ID: 22769699
Oh and yes both the servers are on the same machine.
0
 
LVL 41

Expert Comment

by:HonorGod
ID: 22770473
Are the same applications deployed, and in the same state (e.g., started) on
each server?

For example, if your stand-alone server has 10 application, all of which need
to be "started" before the application server is considered "up", but the WTE
doesn't do this same application initialization, then this could be a huge difference.

Another possibility is that the WTE doesn't have the same kind/number of database connections, or the connections are to a locate (small) database
that initializes much faster.

0
 

Author Comment

by:Madhu_A
ID: 22819138
Yes HonorGod, they are in the same state. Just one application running on both of them. I guess I will pick an answer now.
0
 
LVL 41

Expert Comment

by:HonorGod
ID: 22820762
Thanks for the grade & points.

Sorry you didn't think the answer worthy of an A.

Good luck & have a great day
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Verbose logging is used to diagnose garbage collector problems. By default, -verbose:gc output is written to either native_stderr.log or native_stdout.log.   It is also possible to redirect the logs to a user-specified file. This article will de…
Upgrading Tomcat – There are a couple of methods to upgrade Tomcat is to use The Apache Installer is to download and unzip and run the services.bat remove|install Tomcat6 Because of the App that we are working with, we can only use Tomcat 6.…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now