GokhanYilmaz
GokhanYilmaz

Reputation: 51

Multiple application deployment for WebSphere

I want to ask a general question that I guess, people who are using WebSphere App Server have thought.

Can we deploy multiple EAR or WAR files at once by using a Jython script but only use one sync node and save command?

I have some concerns about boundaries like EAR file size and number of EARs but I have found nothing on it online yet.

Upvotes: 1

Views: 1349

Answers (1)

trikelef
trikelef

Reputation: 2204

Of course you can install/update multiple applications and then Save/Sync Node at once by using a wsadmin script like the following:

AdminApp.install(fullapppath1,params1) 
AdminApp.install(fullapppath2,params2)
AdminConfig.save()
AdminNodeManagement.syncActiveNodes()

In fact this can have some performance benefits in contrast with save/sync operation for each app.

Regarding EAR max file size I do not know whether there are any WAS-relative limits except two issues:

  • Really Big EAR/WAR files can severelly slow down the deployment process
  • Watch for your OS max Number of files per process limits (i.e. nofile parameter in Linux). This can prevent the EAR expansion process in case you have many jars in your app.

Upvotes: 2

Related Questions