News for hackers. Stuff that matters.
Re:As Oracle axes support for GlassFish, MySQL users might w... by pron on Friday November 15, 2013 @11:44AM (#6740398)
The concerns over MySQL might be justified, but have little to do with GlassFish. GlassFish has never been a popular open source project like Tomcat, Jetty or JBoss, and probably not as commercially successful as Oracle's own WebLogic, or IBM's WebSphere, or JBoss. There was really no good reason to keep it alive, other than as the JEE reference implementation, a role which, as I understand, it will continue to serve.

Also, the compatibility between different Java EE application servers is far greater than between different DBs, and migrating from one to the other is usually very simple.

I do hope (and would like to assume) that only the work on the GlassFish server will be reduced, while popular subprojects like Jersey[1] will continue as before.

[1]: https://jersey.java.net/

Re:As Oracle axes support for GlassFish, MySQL users might w... by batbomb on Friday November 15, 2013 @01:17PM (#6741060)
Jersey is an integral part of WebLogic as well, so development will assuredly continue.

From the jersey mailing list:

> Jersey remains the JAX-RS implementation in WebLogic as well as JAX-RS RI in GlassFish. The decision to not provide a commercial GF 4.x offering is orthogonal to Jersey and JAX-RS development.

> ...and now, just to be safe, I should probably add the standard Oracle disclamer :) Here it goes:

> The preceding is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle.

> Marek

Re:As Oracle axes support for GlassFish, MySQL users might w... by PaulHoule on Friday November 15, 2013 @10:38AM (#6739985)
I think the difference is that Glassfish is a piece of garbage. Among the few people who have heard of it it has a reputation of being the worst application server you can possibly use.
Re:As Oracle axes support for GlassFish, MySQL users might w... by strictfp on Friday November 15, 2013 @11:27AM (#6740262)
I haven't used it but there is NO WAY that it is worse than WebSphere.

In any case, my firm belief is that the whole concept of app servers is flawed. Libs are so much better than frameworks, and app servers are just horribly clunky frameworks, which take away as much control as possible from the dev.

Taking control away from devs is a really backwards way of thinking of development as grunt work, which has been proven time and time again that it isn't.

Death to all app servers, I say!

Re:As Oracle axes support for GlassFish, MySQL users might w... by kaffeinecoma on Friday November 15, 2013 @11:58AM (#6740493)
I actually passed on some repeat client work when they insisted on using WebSphere.

My initial project for them was an eternal struggle to get basic things (XML parsing, Hibernate, CDI, etc) working in their environment because specific versions of these things were already included in the app server, and always ended up conflicting with libs we needed to include for our own app. I remember it distinctly as one of those times where I just felt helpless to make anything work.

Re:As Oracle axes support for GlassFish, MySQL users might w... by hackinthebochs on Friday November 15, 2013 @01:36PM (#6741227)
I was in a similar boat. I abandoned a potentially very lucrative startup because the owner (my friend's brother) insisted on using Websphere and all the associated apps (he was a former IBMer). There came a point where some misconfiguration occurred when attempting to restore a previous version of the application after that point nothing worked. I tried for days on end to fix the problems but nothing would compile without massive errors. The piles and piles of cruft that Websphere added did nothing but obscure the real source of the issue. Eventually I gave up and said screw it and left.

The startup was already on its last legs at that point, as I was the only active developer since the other developer I worked with had already left after getting fed up for other reasons. After I left the startup limped along for a while but as far as I can tell was abandoned. If they had just used a more sane environment I could have easily developed the entire thing myself as it wasn't anything more complicated than a straightforward CMS + payments. I still kick myself for not making a better case for a more sane environment but I was wet behind the ears at the time and I didn't trust my instincts in the face of guys with masters degrees and X years at IBM and other top companies. I know better now.

Re:As Oracle axes support for GlassFish, MySQL users might w... by mathattack on Friday November 15, 2013 @01:11PM (#6741008)
Can you be more specific on your issues with WebSphere? I remember the buzz when it first came out, but haven't bumped into it in quite a while.
Re:As Oracle axes support for GlassFish, MySQL users might w... by theandrewbailey on Friday November 15, 2013 @01:05PM (#6740960)
App servers solve so many problems so you don't have to. Taking control away by solving problems to let you focus on the bigger ones is great.
Re:As Oracle axes support for GlassFish, MySQL users might w... by cbp on Friday November 15, 2013 @10:55AM (#6740079)
There are a couple applications running on top of glassfish at $DAYJOB but I can't say I've ever been involved with them. Care to elaborate a little on why it's so bad? I saw the admin console once and it seemed to run like a slug but it did seem to include a lot of features.
Re:As Oracle axes support for GlassFish, MySQL users might w... by theandrewbailey on Friday November 15, 2013 @01:10PM (#6741004)
The admin console is easily the slowest part of Glassfish, but it lets you configure everything that, if you were using Tomcat, would need you to play around with XML.
Re:As Oracle axes support for GlassFish, MySQL users might w... by sgt on Friday November 15, 2013 @12:55PM (#6740889)
Definitely not the worst. I work with it every day and most of the time it behaves quite well. Glassfish 4 (Java EE 7 support) behaves relatively well, too. I do wish they made it more light weight and faster, but clearly it is good enough to be bundled with NetBeans 7.4.
Re:As Oracle axes support for GlassFish, MySQL users might w... by theandrewbailey on Friday November 15, 2013 @01:15PM (#6741044)
I've been a fan of Glassfish and Netbeans for 5 years. It started when I was testing a few "stacks" for web services, and that combination worked amazingly well out of the box; or rather, it was the only one that did.
Re:As Oracle axes support for GlassFish, MySQL users might w... by noselasd on Friday November 15, 2013 @12:22PM (#6740673)
In all honesty, I've never heard that about glassfish before. The people I know that use it, are very happy with it, and praise it over JBoss.
Re:As Oracle axes support for GlassFish, MySQL users might w... by tieTYT on Friday November 15, 2013 @01:31PM (#6741180)
Why, specifically, is it a piece of garbage?
Re:As Oracle axes support for GlassFish, MySQL users might w... by lmm on Friday November 15, 2013 @12:56PM (#6740903)
As opposed to MySQL, which is respected and certainly not a target widespread of hatred and mockery?
Re:As Oracle axes support for GlassFish, MySQL users might w... by theandrewbailey on Friday November 15, 2013 @01:18PM (#6741065)
Have you ever worked with WebSphere or WebLogic? When I was, I wished I was using Glassfish.
Re:As Oracle axes support for GlassFish, MySQL users might w... by dangerboysteve on Friday November 15, 2013 @12:53PM (#6740872)
Would you care to explain with an example.
Re:As Oracle axes support for GlassFish, MySQL users might w... by leef on Friday November 15, 2013 @12:42PM (#6740810)
Pure FUD. Oracle has owned Innodb since 2005 and now that they own the whole of MySQL impressive releases are coming at a steady clip. To date, Oracle has been a better steward of MySQL than Sun was.
Re:As Oracle axes support for GlassFish, MySQL users might w... by g4m8i7 on Friday November 15, 2013 @10:35AM (#6739966)
A lot of the big distros have transitioned to MariaDB already (https://mariadb.com/kb/en/distributions-which-include-mariad...). Debian probably will soon as well, which will trickle down into Ubuntu probably.

I think there's plenty of room outside Oracle if they were to ever shut down MySQL. I moved to MariaDB, and it really was a drop-in replacement.

Re:As Oracle axes support for GlassFish, MySQL users might w... by tvon on Friday November 15, 2013 @11:00AM (#6740105)
Re:As Oracle axes support for GlassFish, MySQL users might w... by Shish2k on Friday November 15, 2013 @11:28AM (#6740269)
TL;DR: It's 100% binary compatible, but PHP manages to have problems anyway

/facepalm

Re:As Oracle axes support for GlassFish, MySQL users might w... by g4m8i7 on Friday November 15, 2013 @11:35AM (#6740328)
I think it's only a problem if you're using mysql_ instead of mysqli_.

https://mariadb.com/kb/en/installation-issues-with-php5/

Since mysql_ is being deprecated soon (so they say, maybe PHP6 haha), it'd be good to migrate to mysqli_ anyway.

Re:As Oracle axes support for GlassFish, MySQL users might w... by generalpf on Friday November 15, 2013 @11:49AM (#6740432)
Shouldn't everyone be on PDO by now? If you're still on mysql[i]_ you must be used to having problems.
Re:As Oracle axes support for GlassFish, MySQL users might w... by smacktoward on Friday November 15, 2013 @01:13PM (#6741025)
Should be, absolutely.

Are, nope.

PHP's long-lived popularity means there's a huge amount of ancient PHP articles and tutorials still out there on the web that use the old library. Because these articles are both old and widely linked-to, they tend to come up when newbies search for PHP help. So they learn how to do things the wrong/deprecated way.

Resources like PHP the Right Way (http://www.phptherightway.com/) help counter this, but it'll continue to be a problem as long as using the old library doesn't cause any obvious problems like immediate crashes, screaming in-your-face error messages, etc.

Re:As Oracle axes support for GlassFish, MySQL users might w... by Demiurge on Friday November 15, 2013 @12:22PM (#6740666)
I maintain an early 2000's php website that is pretty functional and has a lot of features, but uses the classic spaghetti code. I can't exactly just switch to PDO without considerable time investment, and otherwise things are working just fine. I don't think this is an uncommon scenario.
Re:As Oracle axes support for GlassFish, MySQL users might w... by generalpf on Friday November 15, 2013 @12:27PM (#6740708)
I converted an OSS application that I wrote back in '03 to PDO in just a few hours. It actually helped me find security holes because of strong typing in bound parameters. Have a go!
Re:As Oracle axes support for GlassFish, MySQL users might w... by g4m8i7 on Friday November 15, 2013 @12:10PM (#6740584)
Probably. I'm a pretty poor developer. I'm a sysadmin who sometimes writes PHP apps for work. So, I'll look into PDO. :D
Re:As Oracle axes support for GlassFish, MySQL users might w... by g4m8i7 on Friday November 15, 2013 @01:05PM (#6740957)
lmm: (For some reason your post doesn't have a reply link) These are usually webapps for department-specific needs, and I generally find PHP to be easier. I have a few python things that I use on the backend, as well as a plethora of bash scripts. But, I admit to knowing PHP more than Python. (I'm in a smallish company, so I end up wearing a lot of hats)

generalpf: I will do so! Do you have any go-to references that you prefer? Or shall I just dig through the PHP docs?

Re:As Oracle axes support for GlassFish, MySQL users might w... by generalpf on Friday November 15, 2013 @01:48PM (#6741318)
It's really quite simple, read this and get to work! It also explains the 'why'.

http://wiki.hashphp.org/PDO_Tutorial_for_MySQL_Developers

Re:As Oracle axes support for GlassFish, MySQL users might w... by tvon on Friday November 15, 2013 @01:09PM (#6740995)
> For some reason your post doesn't have a reply link

I think that for a comment at some level of nesting N, the ability to replay is delayed by Y seconds. IIRC this is to prevent stupid back-and-forth arguments.

Re:As Oracle axes support for GlassFish, MySQL users might w... by generalpf on Friday November 15, 2013 @12:28PM (#6740711)
Definitely recommended! It will also help you when you swap out MySQL for something else later on... little to no rework!
Re:As Oracle axes support for GlassFish, MySQL users might w... by lmm on Friday November 15, 2013 @12:58PM (#6740914)
If you've got the time, try writing one in python and see what you think.
Re:As Oracle axes support for GlassFish, MySQL users might w... by runamok on Friday November 15, 2013 @11:41AM (#6740366)
More details: https://mariadb.com/kb/en/installation-issues-with-php5/ It's apparently not an issue with 5.4+ and has several fairly simple workarounds.
Re:As Oracle axes support for GlassFish, MySQL users might w... by rwmj on Friday November 15, 2013 @10:37AM (#6739975)
Why? MySQL has a well-maintained drop-in replacement outside of Oracle control (MariaDB). It's even mentioned in the article.

(And no one's ever heard of Glassfish, probably the reason why Oracle are dropping it)

Re:As Oracle axes support for GlassFish, MySQL users might w... by tvon on Friday November 15, 2013 @10:57AM (#6740088)
Agreed, every MySQL project I'm on is actually a MariaDB project. While I prefer Postgres and have arguments to present to clients who rely on MySQL, a fear of Oracle is not one of those arguments because I just don't think it matters what happens to MySQL proper.
Re:As Oracle axes support for GlassFish, MySQL users might w... by thrillgore on Friday November 15, 2013 @12:36PM (#6740762)
The way they closed down OpenSolaris told me all I needed to know about Oracle's plans for every other OSS project.

We did use GlassFish with JRuby on a project early on in my career, that's about it.

Re:As Oracle axes support for GlassFish, MySQL users might w... by gmjoe on Friday November 15, 2013 @12:40PM (#6740795)
I wouldn't worry too much, since MariaDB is out there.

I'd love to make the switch from MySQL, except Amazon RDS doesn't support MariaDB yet. But since they just added PostgreSQL, maybe there's hope? Presumably MariaDB support would be vastly easier, as easy as a new version of MySQL?

Re:As Oracle axes support for GlassFish, MySQL users might w... by ancarda on Friday November 15, 2013 @11:37AM (#6740337)
I think that would be sufficient motivation to get me to use PostgreSQL. I doubt I'll go running out to buy an Oracle database when there's sufficient alternatives (including MariaDB).
Re:As Oracle axes support for GlassFish, MySQL users might w... by j_baker on Friday November 15, 2013 @01:38PM (#6741236)
I think what's more likely is that MySQL goes the way of Hudson/Jenkins. Oracle strangles the open source community and pushes people to use a fork of the original software. Oracle's in the database business, and I just don't see any reason for them to kill off one of the most popular databases in the world. More likely is that they make it serve their purposes to the exclusion of the open source community's.
Re:As Oracle axes support for GlassFish, MySQL users might w... by debacle on Friday November 15, 2013 @12:18PM (#6740642)
I switched over to MariaDB on my most recent Linux install, and honestly have no idea that the database is different. Moved my Windows install from MySQL to MariaDB as well. Was a bit more complicated, but not by much.
Re:As Oracle axes support for GlassFish, MySQL users might w... by Yhippa on Friday November 15, 2013 @12:11PM (#6740592)
This kind of makes sense; they have WebLogic to sell to enterprise customers.