Webspher Deployment using terminal - deployment

I am trying to learn how to deploy ear files in WebSphere v 7 using terminal,
I know how to deploy ear files using administration console but I want to learn how to deploy using terminal.
my searches did not help
Any advice
Thanks a lots.

You should be using the AdminApp object in wsadmin

Related

How to use JProfiler to connect to jboss server?

I am using jprofiler for the first time,
First I have downloaded JProfiler and then installed JProfiler.
Please help me how to configure jprofiler with jboss server.
We do not use jboss server default deployment,
We have specific deployment like C:\jboss-4.2.2.GA\server\test\,
Our application deploys in test folder,
How to use jprofiler to config test deployment folder?
You need to setup a "server integration" via Session -> Integration wizards -> New server integration or via the quick start menu.
Choose your server type and follow the widzard:
then choose the location of your startup script:
.
Hoping this helps you to start profiling,
Best wishes.
Dario.

Eclipse - Why does Azure deployment take so long

I'm trying to deploy my HelloWorld application in Windows Azure which was developed in Java using eclipse. The application working fine when I tested under tomcat and Azure sdk. I created hosted service in Window Azure Management Portal and deploy my application. It almost 3 hours and it still deploying.
I went to What Happens When You Deploy on Windows Azure? and checked but still unclear.Can anyone advice why it took so long to deploy and any suggestion how to make the deployment process more faster.
Please refer the image below.
I changed the startup.cmd, instead of copy my tomcat to azure i changed the startup.cmd to download the tomcat online. now its working fine.
Does you start-up script finish after tomcat start?
The instances will be marked as ready only after the start-up script finished, so if you start tomcat blocking the start-up script it won't reach this state unless tomcat crashes...
You should use "start" (http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/start.mspx?mfr=true) command to start tomcat in a separated process allowing the start-up script to finish.
(In my memories the provided example in the eclipse plugin had the issue)

How do I run GWT on a linux server

Sorry for this simple question but I seem not to find any other way than to publish a GWT app to Google App Spot. I'm sure there must be a way to do this.
I've got the development environment working on my local machine but I'd like to publish the solution to my ubuntu server running nginx.
Edit: Just thought of something... maybe I can just deploy the js-code to the ubuntu server? As simple as that? ;)
No you cant just deploy the js-code and html files to an ubuntu server and put it for apache to serve, well... unless your code only outputs hello world that is. Probably your GWT app is calling/using some other Java code that needs to be deployed in tomcat or jboss, is it? If that is the case, ie your GWT is in a war, then yes, just deploy that .war file to any container on any linux box.
Try to copy your .war into a jboss deploy dir.
Deploying to app spot is similar, ie uploading your .war to google. Read more here http://code.google.com/webtoolkit/doc/1.6/DevGuideDeploying.html
Two options:
Run it in Eclipse
Run it with Ant

How to optimize the deployment in websphere 6.1

We are using Websphere's wsadmin to deploy our application which is packaged as a .ear file, which takes more than an hour to deploy and start the server. Is there any suggested optimized tool to perform the deployment. which will help us in reduce the deployment timing.
Thanks in Advance!
Jay
It depends on your application and framework used. If every time during deployment you do ejb compile, it would be not too much options, and all time cost.
Consider the following:
use Rational RAD or RSA with build-in
optimized WebSphere Server.
use optimized settings for
developement in WebSphere admin console
enable auto-reload and use exploded
archive and directly copying files to
it
use external class-reloading tools
like JRebel
Are you stating that it takes 1 hour to deploy a single EAR file?
Where is the EAR file located? How big is the EAR file?
Where is wsadmin running from? (the same machine as the WAS Server or from a remote machine)?
If it is running from a remote machine, does it take long to transfer the EAR file to the actual WAS box?
Also why should the WAS Server be started for deploying your application?
I am assuming you are using a DM set up and the wsadmin is connecting to the DM?
Appreciate if you could clarify before people could assist you.
Manglu

eclipse howto start a application client on java ee glassfish appl srv

i have installed the glassfish eclipse tools bundle...
i can start a project like dynamic web & a ear project and deploy them on the glassfish... it works perfect & under the localhost url i will get an hello world
but how i do this if i want to make an application client. please help...
at the moment i simply created an "app client project in eclipse" & added it to the same ear,
but i have no idea how to start this...
help - any tutorial how to start?!!
Not the only only answer to this question but the appclient approach mentioned in Jeff's answer is a viable approach, but I was able to execute a client using this mechanism in eclipse and I wanted to share that approach.
This approach will let you execute a java application with a main method acting as a client.
What you want to do is setup an External Tools Configuration.
Create a new Program type of external tool configuration.
Set location to point to the path of the appclient, for me
(using embedded glassfish eclipse plugin) it was [PATH TO ECLIPSE]\plugins\oracle.eclipse.runtime.glassfish_3.1.1.0\glassfish3\glassfish\bin\appclient.bat
Set working directory to your output/build directory e.g.
${project_loc}/target/classes
Set arguments to ${java_type_name}
Select the class in your project with a main method that you wish to run as the client app and then select your external tool from the run external tools menu.
There are two ways to do it. I'm afraid I can't be very specific, but I can point you in the right direction. (I'm just learning myself)
You can enable Web Start for the application client EAR in GlassFish. You can do this either in the deployment descriptor (so it's enabled every time you deploy) or you can go into the GlassFish admin console, navigate to the Application, and check the checkbox to enable it. I have made a little progress on this approach.
You can run it manually from the command line using, I believe, the "appclient" command. I have not been able to get this working yet.
Good luck, and if you learn more, I'd appreciate it if you let me know since I'm in the same boat as you.
Jeff