Glassfish versus Wildfly (Tomcat EE) with custom JARs


I'm currently setting up a #Glassfish container for letting run my #JavaEE applications (will be #GNU #GPLv3 or maybe later #Affero) as this was later my choice after a previous unsuccessful attempt with #WildFly (LAN only).

Back what happened before. First of, I had Glassfish 4.1.1 which is currently bugged (#RuntimeException) and doesn't allow me to setup essential things like #JBDC resources or connection pools. So I tried WildFly next.

My applications have custom JARs (libs) which in Glassfish I need to copy to $DOMAIN_HOME/lib/ (and the #MySQL connector to $GLASSFISH_HOME/modules/) and that is all. With WildFly I had trouble even setting up a really simple #EJB (logging with #log4j over a local interface), because I was not able to find to where to my custom JARs (some really simple JARs are required + log4j). So I tried to setup all as modules (module.xml) but no success.

After many unsuccessful attempts I switched back to #Glassfish and found an older (but working) 4.1 version which finally let my applications and the #JPA stuff all work correctly.

Sadly, I now have to "hang around" with #Oracle which is known to be slow in fixing bugs ... But at least my applications are running ...

Not really a good argument for switching to WildFly or #TomcatEE, right? Or where do I have to put my JARs (and log4j)?

(&$a) in method/function headers?


I found this thing very often in #Friendica code:
bla.php:
<?php
function bla_init(&$a) {
  $a->doSomething();
}

Why & here? Is this an old way of code style? Well, it allows me to modify $a into anything I want, also something incompatible, like this:
bad.php:
<?php
function bad_init(&$a) {
$a = 'Something else';
$a = 0.0001; // Also works!
}

You really don't want this! Better use this:
better.php
<?php
function better_init(App $a) {
  $a->doItSecurely();
}

Now you (the naughty programmer) cannot change $a into something nasty anymore.

Messages not viewable in #master


Currently I cannot view any messages here in #friendica due to a bug there:

Warning: Invalid argument supplied for foreach() in /var/www/.../htdocs/mod/message.php on line 552

Warning: Cannot modify header information - headers already sent by (output started at /var/www/.../htdocs/mod/message.php:552) in /var/www/.../htdocs/index.php on line 559

Ehemalige GEZ fragt bei meiner Frau an ...


Der #Beitreibungsservice, auch als #GEZ bekannt, ... ehm, upps, wohl was verdreht ... ;-)

Naja, jedenfalls haben die sich bei meiner auslaendischen Frau gemeldet, neue Adresse und alter Name ... Wiedermal typisch. Vermutlich hat das niemand gemerkt, weil die einfach fleissig beim Generieren von "Beitragskonten" sind, dass sie zwar umgezogen, aber ihren Namen auf meinen geaendert hat?

Dieser Verein (kriminell in jeder Hinsicht) ist mit unter anderem der Grund, weshalb ich immer ernsthafter ueber #auswandern nachdenke und immer mehr plane, als nur "aus Spass" zu gucken.

Soll ich eurer Meinung nach besser eine #Kopie unserer #Eheurkunde beifuegen, oder werden die nur beglaubigte annehmen? Auf einen Anruf bei denen habe ich momentan wenig Laune ...

WhatsApp/Facebook or Friendica?


I have just finished talking with my mother on the phone. She said, most of her real-world friends are on #WhatsApp because most are there (or on #Facebook which she still dislikes).

I recommended #Friendica to her to try it out and gave her the hint that there is tryfriendica.de where she can try it out (in German language as she prefers). Still she feels "exotic" there because most of her friends are on WhatsApp as I wrote above.

Well, I don't want to force her to come to us, only to recommend to go away from #corporate "social networks" such as the "usual suspects" are, bloated with #advertisement everywhere.

She knows that the #TOS of #Facebook has the entry that all her data she enters there (text, images, videos) exclusively belongs to #MarkZuckerberg then for an infinite amount of time. But it looks like that the #honey-swarm-phenomena may win over prostituting herself. :-(

Well, at least she gives it a try. So keep fingers crossed!



@dragnucs After #RIPTwitter a lot of users from there flooded !gnusocial with new accounts - the absolute majority of them were shitposters. Admins had a very long night to ban and delete all this nonsens. On the other side this rised a the big rumour in twitter that !gnusocial is a censored network. Well - a very short summary....

Wenn ich das schon wieder lese ...


musst #WildFly, #Spring, #JPA, #Node, #Grunt, #AMD, #jQuery, #Sass nicht googeln


... dann kommt einem wieder die Galle hoch. :-( Wieder astronomische Anforderungen. Aber ja, man muss ja nicht alles koennen ...

Wissen diese Firmen eigentlich, wie viel da im Einzelnen hinter steckt? Hmm? Noe, wieso auch, einfach mal alles auflisten, was einem in den Sinn kommt.

Aber gut, ich bewerbe mich natuerlich weiter. :-/