upgrade Jboss As7 installation to Wildfly 10 - jboss

Thanks in advance. I am working on to upgrade JBOSS As7 to Wildfly 10. Manually I am able to do it. But I am looking for scripted solution that works without manual intervention as I need to upgrade 1000s of client. Please suggest some tools or scripts to do this.
Thanks,
Naga

I prefer to use CLI scripts to configure a server.
You are able to use variables and use the sript on different installations.
Also you are able to configure a new instance the same way as before.
If you use a newer version the CLI run check whether all is applicable.
I don't think that there is a general tool to migrate the config.
For minor versions you are able to copy the configuration folder, but you might loose new enhancements or features.

Related

Add Server in Eclipse via Command line? (Windows)

I would like to set up the laptops of our java developers in a more automated way.
I installed eclipse and all necessary plugins and checked out the repository via Puppet+Chocolatey. An IBM Websphere Liberty Profile for testing the application is running in a virtual machine on the laptops as well.
Is there any way to add a new server in Eclipse via the command line? Or connect to an existing one? Using for example eclipsec.exe?
I already fought my way through the documentation but without success. (http://help.eclipse.org/kepler/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fmisc%2Fruntime-options.html)
Have anyone of you experience with this kind of problem?
Cheers,
Stephan

How to install PgBouncer on Windows 7 (x64)

I am attempting to install PgBouncer on my computer with no success. In the installation page, im told that PgBouncer has two dependencies GNU Make 3.81+ and libevent 2.0. Never having used or heard of these two software before, Im completely lost.
I have read a little on both but have yet to find or fully understand what they actually do and how they will help me set up PgBouncer. From what I've read, PgBouncer does not come compiled for windows and I need the other two to compile it. I have searched for tutorials online but it seems that im falling into a black hole of misunderstanding.
Im looking for a simple explanation on how to install PgBouncer or how these software work with one another. Thanks.
If anyone now searches the binaries because http://winpg.jp/~saito/pgbouncer is offline now, check out my page under https://sepppenner.github.io/PgBouncerWinBinaries/. I have all the binaries from the Saito page but didn't yet succeed to build the project on my own. If anyone has ideas, don't hesitate to contact me here or on Github :)
EDIT: I'm now able to build pgbouncer for windows just having some issues with the pandoc thing (Follow https://github.com/pgbouncer/pgbouncer/issues/442). I will provide binaries soon. The instructions are already online under the page listed above :)
Im looking for a simple explanation on how to install PgBouncer
A little late, but if you use the EDB installer for PostgreSQL, as linked on postgresql.org (https://www.postgresql.org/download/windows/), you can install Stack Builder. From inside Stack Builder, PgBouncer can be installed (EDB build).
Unfortunately, it's not the latest version. Now, PgBouncer 1.17.0 is available and Stack Builder provides 1.16.1.
Personally, I don't understand why the PgBouncer project doesn't just offer a Windows build. So everybody would be able to get the latest release.
I have not messed with pgbouncer in years but have had multiple comments on what I did to solve my problem.
In the link bellow is the pgbouncer build I last used on my project. From what I remember, all you would need to do is replace the users in the config/user.txt with yours and go into config/pgbouncer.ini and change the configuration to work with your set up. To start it, just run the run.bat file or pgbouncer.exe config/pgbouncer.iniin the cmd prompt. You want to download everything in the folder.
https://drive.google.com/open?id=1f8MjdQCq-ryQBiJ85d4hABASFfR_6fA2

How to configure JBoss with its own version of JDK?

I have a Java web app (WAR) that requires an older (1.5.11) version of the JRE, but am on Linux and spent a good deal of time setting up my environment for 1.6.34.
The web app needs to be hosted locally on JBoss (4.0.4 GA), which I have no experience with. I'm wondering if it is possible to download the 1.5.11 version of the JDK and configure things so that my JBoss instance is the only thing on my system that is using it. This way I don't need to worry about blowing out any of my other configs for 1.6.34.
If it is possible, what are the general steps and what are the JBoss configs I need to make? Thanks in advance.
Of course this is possible. You can install as many java versions as you like and make sure path/JAVA_HOME is set up correctly for each process you want to launch.
in JBOSS_HOME/bin/run.conf you can specify your 1.5 JAVA_HOME.
But if you are talking about serious business, you should get somebody (like your software supplier) to upgrade. 1.5.11 is superold and unsupported. and JBoss 4.0.4 is equally old and even less supported.

how do you build your appliances?

virtual machines hold great promise as a way to distribute hard to configure applications. i have been using jeos vmbuilder (and some bash scripts) to generate my appliances, but i'm looking for something more elegant.
in my case, i'm looking for a solution that will build a linux-based vm with configured versions of tomcat and mysql as a base. each future release would be a new war file and a sql update script. it'd be really nice if already deployed vms could self-update and test builds could be pushed to ec2.
in my brief search, i've found rpath rbuilder, turnkey linux,
vagrant up, suse studio, jeos vmbuilder, and vmware studio. rather than try all of these, i figure i'd ask what this community uses to build and distribute appliances...
I use pungi myself.

How to upgrade JBoss Web in JBoss 5.x.x?

JBoss Web 2.1.3 in JBoss 5.1.0 has some fixes that I need on a production server running JBoss Web 2.1.2 in JBoss 5.0.1.
I don't want to upgrade to JBoss 5.1.0 yet on a production cluster. This is too risky.
So how do I upgrade JBoss Web only?
This is a sar. So I'd imagine all that is required is to switch in jbossweb.sar from JBoss 5.0.1.
Has anybody done this? Is this the correct approach? Are there any gotchas?
I can't find any useful documentation in relation to this on the web.
Maybe I should ask this question on serverfault - but there seems to be less activity there.
Swapping out jbossweb.sar might work, but it's pretty risky in itself. If you're averse to the risk in moving to 5.1, I'd be just as averse to the risk of swapping JBossWeb.
That said, if you have a good automated test suite, then you might be able to get enough confidence in the swap to take it to production.
This sort of situation is where I get a lot of value from the RedHat/JBoss EAP subscription - they will backport fixes to the version of JBoss that you're running, plus test and verify it for you.
I managed to reproduce the bug we had and verified that it did not occur with jboss 5.1.0.
I upgraded to jboss 5.1.0 to sort this out.
That plus lots of system testing and everyone was happy.
Based on https://docs.jboss.org/jbossweb/2.1.x/building.html and https://developer.jboss.org/thread/156024:
mkdir -p /tmp/jbossweb && cd /tmp/jbossweb
svn checkout https://anonsvn.jboss.org/repos/jbossweb/branches/2.1.x/
wget https://archive.apache.org/dist/ant/binaries/apache-ant-1.6.5-bin.tar.gz
tar -zxvf apache-ant-1.6.5-bin.tar.gz && cd 2.1.x
../apache-ant-1.6.5-bin/bin/ant download
../apache-ant-1.6.5-bin/bin/ant
cp output/jars/jbossweb.jar $JBOSS_5.1.0.GA_HOME/server/default/deploy/jbossweb.sar/