← Înapoi la Urmăritori

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 122
  1. JPA specification defines few types of EntityManagers / Persistence Contexts.

  2. This post describes some of the pitfalls when coping with intercommunication between different modules (EAR, WAR, EJB-JAR) deployed in the same Java EE 6 Application Server.

  3. Sample, Empty Java EE 6 Files

    In this post you can find often used Java EE 6 configuration files (along with their schema declarations to aid your IDE’s code assistant): CDI Name: beans.xml Version: 1.0 Content: <?

  4. Few days ago I’ve created a simple interceptors spike-solution at Github.

  5. Java EE 6 brings a lot new features.

  6. In Midnight Commander when you press ctrl + \ you can access directory hotlist and you can quickly choose connection you want to establish.

  7. Filtered Resources in Maven

    Maven has some really great features.

  8. New OCE WCD Exam Simulator

    More than 18 months ago I’ve posted my mock exam for Oracle Certified Expert Web Component Developer certification.

  9. FETCH JOIN is still a JOIN

    JPA’s FETCH JOIN is useful in cases when you want to eagerly load some lazy loaded collection of your entity.

  10. You can easily create a fully functional, basic Maven repository on your web hosting provider’s account.

  11. By default few of the security features are turned off in OpenShift JBoss 7.1 cartridge.

  12. After the Spring Core 3.0 Exam

    Yesterday I took the SpringSource Certified Spring 3.0 Professional exam and passed it successfully with 94%.

  13. The aim of this post is to show you how, using CDI, you can inject Java properties entries (those in *.properties files) directly into your Java class.

  14. Playing movies and music over SSH

    If you want to remotely access your SSH account (e.g.

  15. Did you know that you can compile Java source code from your running Java Application?

  16. After the GeeCON 2012

    Whoa, those few days of GeeCON – Polish Java conference – just passed way too quick.

  17. After the Spring 3 Core Training

    At the end of march 2012 I was attending a Spring 3 Core Training in Cracow which was organised by the SpringSource.

  18. I must admit – I’m neither very experienced in the field of user interfaces nor really familiarised with all that JavaScript, jQuery stuff.

  19. Sometimes you need to audit or profile your Java application.

  20. I see a lot of people saying that: “there is only one instance of servlet per application”.

  21. Odd Colors in Ubuntu's Flash Player

    After one of the Ubuntu 11.10 updates I was affected by some really weird colors in the embedded flash player.

  22. To FEST or not to FEST?

    When you write your unit tests you must use some kind of assertions.

  23. If you’re using Eclipse and working with a class with a lot of static members, you might be affected by the problem of lack of content assist and automatic import for such members.

  24. Another move towards Git

    If you’re interested in getting some basic information about Git, surely you already know about the Git Community Book – it’s undoubtedly a source of great knowledge.

  25. Git and empty directories

    I’m currently under the process of moving all my workplace repositories from SVN to Git (configured to work with Gerrit).

  26. Sometimes you might be struggling with such error shown, e.g. in Eclipse: The method … must override a superclass method.

  27. By default, Maven’s test plugin Surefire doesn’t scan files for @Test annotations, but rather takes only the files which class names ends with “Test” or “TestCase”.

  28. GlassFish Java DB not started

    I’ve had some problem with starting the GlassFish database.

  29. Some time ago I’ve had a problem with SVN on my VirtualBox guest Ubuntu machine.

  30. Find your class in JAR files

    Some time ago I’ve posted about using multiple -exec options for find command which can be used to find in what JARs particular class lies.

  31. Recently, I’ve bumped into few posts on StackOverflow where people tend to compare container managed EntityManager instances (so the one injected by the container) by invoking EntityManager#toString() method.

  32. Adding contextual data to EJB method

    Sometimes you need to pass some additional / contextual data to the called EJB method.

  33. Changing git master after cloning

    If you’ve cloned a GitHub repository from the original one and not from your forked version and you would like to change it, you can just edit the .git/config file in your project and change the URL of the origin remote: [remote "origin"] fetch = +ref…

  34. You probably know that if you use BMT (Bean Managed Transactions) you can get information about current transaction status by using UserTransaction interface (which implementation can be fetched either by JNDI or using dependency injection) and executing…

  35. Once again Windows know exactly how to surprise me.

  36. Just a note to myself – always check what classes are you importing in IDE, because if you see @Singleton in your class, it doesn’t mean it will work as a EJB Singleton.

  37. Running GUI applications over SSH

    If you want to execute a GUI based application on the remote server through SSH, you can achieve it quite easily using the ssh command.

  38. Recently I needed to find out what GNU/Linux a terminal-only server is using.

  39. If you want to add your classes (or any other resources) to your ShrinkWrap archive to a non-root location, you can use the following: @Deployment public static JavaArchive deploy() { // This is the classes and resources archive JavaArchive ar;…

  40. When you create a deployment using Arquillian (great test runner for testing your Java EE code in the container of your choice: jBoss, Glassfish, OpenEJB, … either in embedded, managed or remote mode) remember that the name of the deployment archive file…

  41. Just a letter to my future self: When you use Properties and creates the entries, remember to avoid the whitespaces.

  42. Java classpath and wildcards

    Pretty useful thing about the Java classpath definition is that the wildcard (*) can be used in a replacement of all *.jar and *.JAR files in the specified directory.

  43. More than one -exec in find

    I was trying to execute several commands on a single record found by the GNU/Linux find command.

  44. Wireshark on remote host through SSH

    I was trying to find a way to capture the network interface traffic on a remote server, just to see what (or who!)

  45. It’s at least the third time I try to find a solution for the unavailable codecs proclem during rendering video project in Kdenlive.

  46. Java EE 6 SCWCD Mock Exam

    The mock exam has been moved to a separate application working on the OpenShift and is available at exam.piotrnowicki.com.

  47. If you’re using BASH find and want to find files which are named differently than the given pattern, you can use the following syntax: find .

  48. Servlets 3.0 in Java EE 6, brings new interface called ServletContainerInitializer.

  49. If you want to use new features of JSP >= 2.1 and EL, like deferred binding (the #{…} construction in EL), you’ll find that you cannot achieve it within a Tag File with implicit TLD generation.

  50. Lately, after publishing the previous post, a friend of mine passed me a snipped of BigDecimal code.