Java

Home/Tag:Java

Session and Memory Leak on Wildfly 10

I recently re-wrote 10MinuteMail, my secure temporary email service, updating it from Seam 2 and JBoss 4.2 to Deltaspike and Wildfly 10. ¬†Unfortunately I noticed a memory leak in the JVM. ¬†During beta testing, the JVM heap usage would slowly grow, over 1-2 weeks until it reached an OOM (out of memory […]

By | 2017-05-18T15:15:01+00:00 June 28th, 2016|JBoss|6 Comments

Terrible Code

request.setParameter("qualifySkus", getSkusRepository(d, cItem));

  1. “qualifySkus” is confusing. Is it an array/list/collection of “qualifiedSKUs” or a flag that’s a result of “qualifyingSkus” or….
  2. “qualifySKus” should be a constant with a nice comment, not an in-line String.
  3. The method getSkusRespository seems like it would return a catalog repository, doesn’t it? Instead it takes in a List […]
By | 2010-01-29T14:12:36+00:00 November 2nd, 2009|ATG|2 Comments

Eclipse Auto Complete Templates for ATG

Eclipse has an often under-utilized feature called Templates. You’ve probably used the built in templates when Eclipse auto-completes for loops or try-catch blocks, etc… However, you can create your own templates for commonly used chunks of code. This can save you a lot of time, and more importantly can facilitate you writing […]

By | 2017-05-18T15:16:12+00:00 September 2nd, 2009|Java|4 Comments

JForum SSO (single sign-on) and Atlassian Crowd

Over at our new ATG Developer Community site, we’re using Atlassian Crowd to manage our user accounts, groups, and single sign-on (SSO) between Jira, Confluence, to manage Subversion authentication, and to handle the forums (JForum) user accounts.

There was an example on how to integrate JForum and Crowd, which works pretty well. […]

By | 2017-05-18T15:17:27+00:00 June 8th, 2008|Java, Security|4 Comments