Jump to content

Calling all Java Developers / Release Engineers.


Spartan

Recommended Posts

42 minutes ago, evadra_rowdy said:

The apps have 2 parts , one is code which is developer managed and checked into git and built as war file and deployed.2nd is env config/server config owned by infrastructure team, this will have db passwords etc..these stick to machine and manually managed.if u want to automate this, these are pushed by chef/puppet and the same chef assigns a jvm parameter which says if its qa or prod.so jvm picks right config file

thanks bro, can u elaborate more on the second part.

 

JVM parameter gurinchi, how it can detect qa/stg... 

Link to comment
Share on other sites

6 minutes ago, Spartan said:

thanks bro, can u elaborate more on the second part.

 

JVM parameter gurinchi, how it can detect qa/stg... 

Startp.sh file will start your server as an example.so in that file you will have variable called env=QA and pass this variable to jvm as argument.when java code looks for property file, it will read this first and pick that env file.idi manual process.so automate chestey chef will change that variable on the fly

Link to comment
Share on other sites

Create a tar file which will have ear file and confif.zip file .... config zip will have all the related properties file ... deploy ear on server then go to property file path replace with appropriate property file and restart the server .. to copy/replace u need scripting 

Link to comment
Share on other sites

4 hours ago, Spartan said:

evarevar unnaro teliyadu..but some questions reg depliying J2EE applications.

@innovative i think 

ippudu oka EAR/WAR file undi. we generate that using Jenkins in CICD process.

i would like to have environment based connectors in different files and deploy accordingly.

like Development Env k okati

Staging ki okati

Prod ki okati..each of them have different endpoints for ear services/db/ etc...

so avanni which file will control, and when deploying how to specify to use that particular descriptor.

App Server: JBOSS,  WebServer : Tomcat. 

using Maven. 

@k2s  @tom bhayya 

PS: Nenu Java ki kotta...dont have any exp in it.. qn dumb aiyte kshaminchandi, tappaite manninchandi.  Monday Interview ki preparing. 

 

thanks everyone. 

 

found one link..

https://www.javaworld.com/article/2073030/java-app-dev/organize-applications--multiple-environment-configurations.html

nuvvu cheppedanibatti meeru jenkins pipeline CICD try chestunaru ani ardam ayindhi

meeru cheppina ah deployment process ki edo ansible ani vuntundhi json lo configure chestaru i don't have clear idea but once chusanu adhi naa office CICD lo

just search

Link to comment
Share on other sites

4 hours ago, Spartan said:

evarevar unnaro teliyadu..but some questions reg depliying J2EE applications.

@innovative i think 

ippudu oka EAR/WAR file undi. we generate that using Jenkins in CICD process.

i would like to have environment based connectors in different files and deploy accordingly.

like Development Env k okati

Staging ki okati

Prod ki okati..each of them have different endpoints for ear services/db/ etc...

so avanni which file will control, and when deploying how to specify to use that particular descriptor.

App Server: JBOSS,  WebServer : Tomcat. 

using Maven. 

@k2s  @tom bhayya 

PS: Nenu Java ki kotta...dont have any exp in it.. qn dumb aiyte kshaminchandi, tappaite manninchandi.  Monday Interview ki preparing. 

 

thanks everyone. 

 

found one link..

https://www.javaworld.com/article/2073030/java-app-dev/organize-applications--multiple-environment-configurations.html

Asalu idea ledu baa

Link to comment
Share on other sites

Configuration management tools like cfengine, chef, ansible and puppet use cheyyochu envirinment file/var localization ki.

So jenkins kit build chesaaka aa kit ni deploy chestundhi kada .. may be in same pipeline or as a hand off to another pipeline. Aa deployment chese pipeline lo manam inventory laa konni variables manage cheyyochu. Config template files anni version control system like cvs or svn or git etc lo store chesi .. Ee deployment process lo avi checkout chesi then templates lo vunna variables ni env specific values tho replace c cheyyochu. cfengine ithe polocies ani chef ithe cookbooks ani ansible ithe playbooks ani define chestam ee files ela replace cheyyalo variable values tho

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...