JTraining Blog

Share your knowledge.
Bram
Bram

After some previous 3.2.0 ALPHA releases, this is the first 3.2.0 BETA release. It comes with some new features and some improvements.
The Netty 3.2.0 ALPHA3 already came with Web Sockets support and now the BETA also contains the zero-copy file transfer feature. It also contains a more user-friendly API ( 3.1 deprecated methods are removed ) and it has a higher performance.

About the netty project:
The Netty project is an effort to provide an asynchronous, event-driven network application framework and tools for rapid development of maintainable, high-performance, high-scalability protocol server and clients. 

What the future will bring:
Since the HTTP tunneling transport has been rescheduled to the next major feature release (3.3), all planned features have been implemented. Unless there is a critical issue, they will proceed to release candidate phase.

 

For more information, click here


Tagged in: Untagged 
Bram
Bram

The Griffon team is happy to announce the release of Griffon 0.3, nicknamed "Leopardus pardalis" - and is the fourth major release of Griffon. Griffon is a Grails inspired framework for writing RIA's , ( which are web applications that have most of the characteristics of desktop applications ) on the JVM using Groovy.

 

Some new features are:
* Upgraded to Groovy 1.7.1
* New Artifact inspection API -- adds the ability to inspect artifacts at runtime and apply meta-programming.
* New plugins: i18n, artifacts, db4o, berkleleydb, erlang, flyingsaucer, p6spy, jmx and more!



Tagged in: Untagged 
Bram
Bram

At the moment my project team and me are programming a Bank web application.

 


It is build using JBoss with JSF, and we are using JAAS for security reasons.
Since there can be many errors, a custom 404 error page can come in handy.
With JBoss, it isn’t all that difficult …  you just need to know how.

To do so ... edit your web.xml. You have to add this:
< web-app>
    ...
        < error-page>
            < error-code>404< /error-code>
            < location>/YourLocation/YourErrorPage.html< /location>
        < /error-page>
    ...
< /web-app>

Since much is done dynamically, you don’t have to define anything else but this.
(Of course you have to create your own error page)

As for complications:
I’m running Firefox and it all worked fine, but a member of my team is running Internet Explorer,
He got a “This webage cannot be found” message … after a little bit of googling, this was the trick:
Go to: Internet Options … Advanced Tab … and uncheck “Show friendly HTTP error messages”


Tagged in: Untagged 
Bram
Bram

This release does not have any new features, since its just a minor bugfix. But its still important news for the Spring Security projects out there, because Spring Security is a framework that provides advanced authentication, authorization and other even security features for enterprise applications. Its not really a framework you want any bugs in.

When doing a little research about the new release of Spring Security I also found a nice blogpost from Glen Smith: hacking custom authentication providers with grails spring security, which is also very recently posted.

So if you have a Spring Security project running, here is the changelog.


Tagged in: Untagged 
svanhugten
svanhugten

When working with JSF 1.x you will eventually find out about some of its annoying features. Such as that it is all about HTTP POST and nothing but HTTP POST. So when working with forms with inputTextArea components you will notice that refreshing or navigating away and then back will leave them blank again. Some of customers I worked for had a problem understand this limitation, because dropdown boxes just worked fine and demanded that the text areas work the same.

I found a small piece of code that will remedy this shortcoming.   

 


Tagged in: Java EE 6 , Java EE , Ajax4JSF , Ajax
Bram
Bram

Here is just a small intro to recursive methods; Basically, a recursive method is a method that calls itself; e.g.

int fibonacci(int n) {
    if(n <= 1)     {
        return n;
    }     else     {
        return fibonacci(n - 1) + fibonacci(n - 2);
    }
}    (this method returns the n'th value of the Fibonacci sequence)

As you can see in the example above, the part that makes this method recursive is:
       return fibonacci(n - 1) + fibonacci(n – 2);
because there, the method calls his own function again.

 In my opinion there are benefits to recursive methods ( but not always ) like: a problem can be defined as a recursive problem or because of a recursive method your programming code can be shorter.


Anyway, be carefull not to end up in an endless loop!!

 


Tagged in: Untagged 
Bram
Bram

JavaFX is a software platform for creating and delivering rich Internet applications that can run across wide variety of connected devices. The JavaFX SDK and the JavaFX Plugin for Eclipse 3.5.x IDE enable you to manage JavaFX applications in Eclipse. Getting started with JavaFX Technology.

New changes for version 1.2.1 since the June 2009 release is e.g.: it has a new wizard for importing NetBeans JavaFX projects into Eclipse. As well as an Improved Build System so that larger projects now can be built more succesfully.


I found a short demonstration of how to install the JavaFX Plugin in Eclipse                                    (using JavaFX Version 1.0.1 for Eclipse)


Tagged in: Untagged 
Bram
Bram

The release of jBPM 4.3 is a great milestone, because jBPM 4.3 includes BPMN 2.0.
BPMN2, Business Process Modeling Notation 2.0 adds execution semantics to the specification and is a standard accepted in IT. They were succesfull with including the BPMN implementation
 as an integral part of the jBPM, which means that no database or API changes are required.

The major achievement of this release is the native BPMN 2.0 execution on top of the PVM ( process virtual machine).

For more information see this video from Joram Barrez.

The complete distribution zip file can be found here.


Tagged in: BPM
sneake75@hotmail.com
sneake75@hotmail.com Ever asked your self how things work inside the SQL Select statement? In this article we won’t be talking about how to write SQL Select statement but rather we will be talking about the algorithms and the methodology behind the Select statement and how SQL decides which algorithm it will use to filter out the results and return our expected results.

Tagged in: SQL , HowTo , Algorithms
JavaGuy
JavaGuy

i am facing cosnaming exception. I am doing a lookup, while doing a lookup it gives me

javax.naming.NameNotFoundException[root exception is org.omg.CosNaming.NamingContextPackage.Notfound]

i am calling a java file from a shell script, the java file resides in an application ear file, this ear file is deployed on the server and the application is running fine. the java file does lookup to call the ejb.now when i call this java file from a shell script it throws cosnaming exception.


Tagged in: Untagged 
« StartPrev12345678910NextEnd »

Tags:

Sponsers