Archive | August, 2014

BlueJ

28 Aug

http://www.oracle.com/technetwork/articles/java/new-to-java-2227137.html

Part2

http://www.oracle.com/technetwork/articles/java/new-to-java-pt2-2266283.html

su javamagazine

 

http://www.oraclejavamagazine-digital.com/javamagazine/july_august_2014?pg=30#pg30

http://www.oraclejavamagazine-digital.com/javamagazine_open/20140506?pg=36#pg36


 

http://www.bluej.org/netbeans/labs/transition.html

 

 

MultipartConfig

13 Aug

http://stackoverflow.com/questions/8047173/how-to-enable-multipart-form-data-in-tomcat-7-0-8-server

http://www.coderanch.com/t/580782/Servlets/java/request-getPart-Tomcat

http://balusc.blogspot.it/2009/12/uploading-files-in-servlet-30.html

problem with @Multipart

https://issues.apache.org/bugzilla/show_bug.cgi?id=49711


 

http://balusc.blogspot.it/2009/12/uploading-files-in-servlet-30.html

http://stackoverflow.com/posts/8047173/revisions

Multipart with JSF2.0 -2.1

http://balusc.blogspot.it/2009/12/uploading-files-with-jsf-20-and-servlet.html


http://stackoverflow.com/questions/2422468/how-to-upload-files-to-server-using-jsp-servlet/2424824#2424824


RFC 2388 – Returning Values from Forms: multipart/form-data

http://www.faqs.org/rfcs/rfc2388.html

http://qnalist.com/questions/909290/svn-commit-r1079666-tomcat-trunk-java-org-apache-catalina-context-java

 

 

 

 

 

Spring-Data-JPA

13 Aug

very useful for understand use of SPRING JPA

Samer Abdelkafi Blog

Implementing persistence layer may need some effort to configure and develop some DAO classes.

Spring-Data-JPA framework can simplify the creation of JPA based repositories and to reduce the amount of code needed to communicate with a database

Photo credit Ivan Kmit

This post is an introduction to Spring-Data-JPA. It describes, how you can configure the framewok when you are using Hibernate as your JPA provider.
In this post I will take profit from some Spring 4 new feature as generics autowiring to create generic service.
You can get the sample project from this link to start using Spring-Data-jpa and try some more advenced features.

1- Project dependencies

Spring-Data-JPA references a Spring 3 version. Maven will resolve dependencies by using Spring 3 version instead of version 4.

We need to exclude spring-core and spring-context and import Spring 4 version.

2- Add an Entity

3- Create repository

Declare an interface extending Repository.

View original post 191 more words

Understand-Arquillan-tomee-adapter

2 Aug

arquillian

http://arquillian.org/

 http://arquillian.org/blog/

http://tomee.apache.org/arquillian-available-adapters.html

http://tomee.apache.org/arquillian-getting-started.html

https://github.com/apache/tomee/tree/trunk/arquillian

http://arquillian.org/guides/shrinkwrap_introduction/

 

http://arquillian.org/modules/arquillian-tomee-embedded-container-adapter/

http://jaxenter.com/testing-tomee-featuring-arquillian-46554.html

http://rmannibucau.wordpress.com/2012/06/18/running-arquillian-test-using-different-tomeeopenejb-adapters-in-the-same-buildartifact/

http://www.adam-bien.com/roller/abien/entry/tomee_maven_alien_sample_project


arquillian.org/guides/

http://arquillian.org/guides/

http://arquillian.org/guides/getting_started/

arquillan examples

https://github.com/arquillian/arquillian-examples

arquillian-tomee-embedded

https://github.com/apache/tomee/tree/trunk/arquillian/arquillian-tomee-embedded

arquillian-tomee-webapp-remote

https://github.com/apache/tomee/tree/trunk/arquillian/arquillian-tomee-webapp-remote

arquillian-tomee-webapp-remote

https://github.com/apache/tomee/tree/trunk/arquillian/arquillian-tomee-webapp-remote

arquillian-tomee-moviefun-example

https://github.com/apache/tomee/tree/trunk/arquillian/arquillian-tomee-moviefun-example

arquillian/arquillian-tomee-tests

https://github.com/apache/tomee/tree/trunk/arquillian/arquillian-tomee-tests

 

test persistence with arquillan

 http://arquillian.org/guides/testing_java_persistence/

code on github

https://github.com/arquillian/arquillian-examples/tree/master/arquillian-persistence-tutorial

 

 

arquillan reference guide

https://docs.jboss.org/author/display/ARQ/Reference+Guide?_sscc=t

 

 

test in openshift cloud

http://arquillian.org/guides/testing_in_the_cloud/

http://vimeo.com/41148359


 

Results from testing TomEE container adapters

https://community.jboss.org/message/733235

 

I got the test to pass using Tomcat 6 remote adapter with these two fixes:

 

  • Patch the adapter to use the ‘/text’ prefix for manager URLs
  • Set the default protocol to Servlet 3.0 in arquillian.xml:
    <defaultProtocol type=”Servlet 3.0″/>
  • Set JAVA_OPTS as follows before starting TomEE*
    JAVA_OPTS=”-Dcom.sun.management.jmxremote.port=8089 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false”

 

* This seems to be a general requirement for getting the Tomcat remote adapter to work over the Servlet 3.0 protocol.

 


 

Apache Tomee

https://github.com/apache/tomee

maven

https://github.com/apache/tomee/tree/trunk/maven

 

datasource-password-encryption

http://openejb.apache.org/datasource-password-encryption.html

 

Class JSFUtil and Paginator

https://github.com/apache/tomee/tree/trunk/arquillian/arquillian-tomee-moviefun-example/src/main/java/org/superbiz/moviefun/util


 

 From  jaxenter.com

http://jaxenter.com/getting-started-with-apache-tomee-46552.html

http://jaxenter.com/testing-tomee-featuring-arquillian-46554.html


 

 

 

From blog Romain

http://rmannibucau.wordpress.com/2012/05/03/testing-a-jee-application-with-openejb-and-tomee/

use jndi.properties

http://rmannibucau.wordpress.com/2012/10/02/tip-take-into-account-jndi-properties-with-ejbcontainer/