I have seen people using WAS and WSAD. I think that they did some kind of configuration. If they modify the Java class code, they do not have to re-build or re-deploy the application. They are able to run and display the application the reflects the changes made.
I have no idea about how they did it.
I have WAS and RAD 6.0. How do I configure WAS and RAD to do the same thing? I would appreciate very much if anybody could help. Thank you.
I already have a WAS instance. It is already configured and working fine. But, each time I change some code in my Java classes, I have to re-build and re-deploy, which take time.
For the time being, I am working on some Java class that does not have any dependency on the involvement of EJB, messaging, etc. What I am trying to say is my current work concentrates on using the web server only.
Therefore, I wish to do some more configuration to AutoDeploy. I think what I need to do are:
1. setup right classpath in RAD to re-compile and re-build once I change my Java class code; 2. configure to deploy automatically.
Please provide instructions to do the above. I would really appreciate your help.
I am new to the WebSphere. I could not get help from my co-workers. Either they are too busy or they do not care about helping me. [ May 08, 2006: Message edited by: Daniel Gee ]
Looks like you need some help. If you want to use the approach described in the link you have posted, I would go with Automatic installation project section. But wait, there is an even easier approach depending on what development tool you are using.
If you are using RAD and have installed WebSphere Application Server Test Environment, you can create a server instance within RAD. To do this, all you need to do is right click your EAR file in J2EE perspective and choose "Run on Server." RAD will ask you whether you want to create a new server or use an existing one (create a new if you haven't done so already) and RAD will run the application on the server. If you make changes to the application, depending on the change, you may 1. simply run the application again and see your changes (e.g. JSP changes) 2. restart the project within the server and see your changes (e.g. properties file changes or some server side code changes) 3. restart the server to see your changes (e.g. data source configuration)
Remember, all this is happening in the test environment, which is sort of a server running within RAD. So, if your application needs special configuration (say data source configuration), you will have to setup that configuration within the test environment. Once your application is stable, you can deploy to the standalone WAS server.
1. I was able to follow the instructions. In the Parameter Configuration Settings dialog, I specify 9060 for the value of the serverJMXPort because I usually use localhost:9060 to bring up the Administrative console. (the serverName is server1 and the serverJMXHost is localhost)
2. Then I went to the Starting a rapid deployment session. From the command prompt, I typed wrd.bat at the place the WebSphere Application Server is installed.
From the DOS command prompt, I saw "Launching WebSphere Rapid Deployment. Please wait .... Starting Workbench .... Starting up the workbench. WebSphere Rapid Deployment ready for e-business ... Type 'q', 'quit', or 'exit' to shut down WebSphere Rapid Deployment processes.
Then nothing happened thereafter.
Q1. Is it normal? Q2. How to I verify that the server on which I want to deploy my application is running?
originally posted by Chintan: If you are using RAD and have installed WebSphere Application Server Test Environment, you can create a server instance within RAD. To do this, all you need to do is right click your EAR file in J2EE perspective and choose "Run on Server."
I use RAD.
Q3. What is the Test Environment. Q4. I have successfully built my application. But, I do not see EAR files in RAD J2EE perspective.
Thanks for your help in advance.
Joined: Nov 19, 2000
restart the project within the server and see your changes (e.g. properties file changes or some server side code changes)
Please help me with what "restart the project within the server" mean.
Does it mean
1. under the Server tab in RAD J2EE perspective, right click on the WebSphere Application Server v6.0, and select the Run the Administrative Console.
2. in the Administrative Console, mark the project check box and click on Stop. After it is stopped, click on Start?
JiaPei, I don't know Chintan meant for sure, but I think it means right click the server in the server view and select restart project/application.
You shouldn't have to go into the admin console to do this. You could, but then there is the chance that RAD gets confused again.
Joined: Nov 19, 2000
Thanks a lot, Jeanne, for your valuable help. I have figured out how to automatically install EAR files, etc. on WAS v6.0 using the rapid deployment tool. I am still struggling with the RAD built-in WAS to streamline the building and deployment process. [ June 09, 2006: Message edited by: JiaPei Jen ]
Joined: Nov 19, 2000
Jeanne, thanks a lot for your continuing support.
I have one more question.
If I already have a "build" of my application by running ANT, I can modify my JSPs, properties file, server side Java classes code, re-configuration of data source, etc. Provided that I have the RAD built-in WAS test environment correctly set up, I can re-run the application, re-start a particular project, or re-start the server to see my code modifications in the browser.
What should I do if I have a "new build" of my application? For example, do I click on "Project" in RAD title bar area, select "Clean" from the menu? And then re-run the application? What am I supposed to do in order to see all the changes in the browser after I re-build the application?
JiaPei, How did you get the original build into RAD? Did you import it?
Where is the actual development being done? I'm a bit confused what Ant is building vs what RAD is building.
Joined: Nov 19, 2000
Soory for the confusion caused by me.
I think that I understand it now. Anytime I update my entire application from the version control repository, I should restart the server (probably it does hurt to clean the project first) because the modifications of code are across the spectrum from the front end all the way to the back end.
JiaPei, That is certainly safest. In theory RAD will autoupdate when you pull in the new code. This works well when you pull in a small amount of code. For a lot of code across layers, it confuses things. It's certainly faster to just restart the server.
Joined: Oct 20, 2001
I would like to add to your confusion sorry about that. But I was just curious which "server" you are talking about here ...
I think that I understand it now. Anytime I update my entire application from the version control repository, I should restart the server
Are you talking of a proper WAS runninng on a seperate machine or WAS on your RAD Test Environment?
Your concern: I have seen people using WAS and WSAD. I think that they did some kind of configuration. If they modify the Java class code, they do not have to re-build or re-deploy the application. They are able to run and display the application the reflects the changes made
Daniel's concern: What I am trying to say is my current work concentrates on using the web server only. Therefore, I wish to do some more configuration to AutoDeploy
I agree with Chintan and thats what we also do: - You've RAD with Test Environement - You create your web application and just say "Run on Server" - select the server you want and run your project on WAS within RAD - You can do changes, and depending on what type of change it is, to see that reflection is very easy: (1) If you've done changes in just JSPs you can just do a Refresh (2) but even if you've done some changes in java code all you do again is right click and "run on server".