available in any application,
Group items matching
in title, tags, annotations or url
44More
shared by kuni katsuya on 04 Oct 12
- No Cached
Session Management | Apache Shiro - 0 views
shiro.apache.org/session-management.html
java security authentication authorization ApacheShiro SessionManagement session

-
even if you deploy your application in a Servlet or EJB container, there are still compelling reasons to use Shiro's Session support instead of the container's
- ...40 more annotations...
-
allows you to easily configure all session components with any JavaBeans-compatible configuration format, like JSON, YAML
-
If the Subject already has a Session, the boolean argument is ignored and the Session is returned immediately
-
If the Subject does not yet have a Session and the create boolean argument is false, a new session will not be created and null is returned.
-
HttpServletRequest.getSession(boolean create) method:
25More
Anemic domain model - Wikipedia, the free encyclopedia - 0 views
-
objects containing only data
-
objects containing only code
- ...14 more annotations...
-
Benefit
-
Liabilities
-
Logic cannot be implemented in a truly object-oriented way
-
validation and mutation logic is placed somewhere outside
-
Necessitates a service layer when sharing domain logic across differing consumers of an object model.
19More
How do I migrate my application from AS5 or AS6 to AS7 - JBoss AS 7.0 - Project Documen... - 0 views
- ...16 more annotations...
-
if your application uses Hibernate 3 classes that are not available in Hibernate 4, for example, some of the validator or search classes, you may see ClassNotFoundExceptions when you deploy your application. If you encounter this problem, you can try one of two approaches: You may be able to resolve the issue by copying the specific Hibernate 3 JARs containing those classes into the application "/lib" directory or by adding them to the classpath using some other method. In some cases this may result in ClassCastExceptions or other class loading issues due to the mixed use of the Hibernate versions, so you will need to use the second approach. You need to tell the server to use only the Hibernate 3 libraries and you will need to add exclusions for the Hibernate 4 libraries. Details on how to do this are described here: JPA Reference Guide.
-
In previous versions of the application server, the JCA data source configuration was defined in a file with a suffix of *-ds.xml. This file was then deployed in the server's deploy directory. The JDBC driver was copied to the server lib/ directory or packaged in the application's WEB-INF/lib/ directory. In AS7, this has all changed. You will no longer package the JDBC driver with the application or in the server/lib directory. The *-ds.xml file is now obsolete and the datasource configuration information is now defined in the standalone/configuration/standalone.xml or in the domain/configuration/domain.xml file. A JDBC 4-compliant driver can be installed as a deployment or as a core module. A driver that is JDBC 4-compliant contains a META-INF/services/java.sql.Driver file that specifies the driver class name. A driver that is not JDBC 4-compliant requires additional steps, as noted below.
-
<connection-url>jdbc:mysql://localhost:3306/YourApplicationURL</connection-url> <driver-class> com.mysql.jdbc.Driver </driver-class> <driver> mysql-connector-java-5.1.15.jar </driver>
-
<security> <user-name> USERID </user-name> <password> PASSWORD</password> </security>
-
example of the driver element for driver that is not JDBC 4-compliant. The driver-class must be specified since it there is no META-INF/services/java.sql.Driver file that specifies the driver class name.
-
JDBC driver can be installed into the container in one of two ways: either as a deployment or as a core module
-
In AS7 standalone mode, you simply copy the JDBC 4-compliant JAR into the AS7_HOME/standalone/deployments directory
-
example of a MySQL JDBC driver installed as a deployment: AS7_HOME/standalone/deployments/mysql-connector-java-5.1.15.jar
40More
Chapter 10. Integration with CDI - 0 views
- ...37 more annotations...
-
10.1. Configuration with Servlet 3 On Servlet 3 compliant containers, GraniteDS can use the new APIs to automatically register its own servlets and filters and thus does not need any particular configuration in web.xml. This automatic setup is triggered when GraniteDS finds a class annotated with @FlexFilter in one of the application archives:
-
@FlexFilter(configProvider=CDIConfigProvider.class) public class GraniteConfig { }
-
tide=true, type="cdi", factoryClass=CDIServiceFactory.class, tideInterfaces={Identity.class}
-
It is possible to benefit from even more type safety by using the annotation [Inject] instead of In. When using this annotation, the full class name is used to find the target bean in the CDI context instead of the bean name.
30More
Mirror/deltaspike at master · DeltaSpike/Mirror · GitHub - 0 views
2More
Test enrichers - Arquillian - Project Documentation Editor - 0 views
-
With Arquillian, you no longer have to worry about setting up the execution environment because that is all handled for you. The test will either be running in a container or a local CDI environment
2More
How to search issues from specific Sprint - Atlassian Answers - 0 views
5More
Enterprise Architect - XML Schema Generation - 0 views
-
The XSD Generation facility converts a UML class model to a W3C XML Schema (XSD). This allows Data Modelers to start working at a conceptual level in UML, leaving the tedious aspects of XSD creation to EA. The schema generation can then be customized if necessar
- ...2 more annotations...
-
XSDDataTypes Package: This package contains classes representing XSD primitive data types. This package is available as an XMI file. To import the file as a UML Package, use EA's XMI import facility which is available from the menu item: Project | Import/Export | Import Package from XMI. UML Profile for XML: This resource file contains the stereotyped classes which allow the schema generation to be customized. The UML Profile for XML can be imported into a model using the Resource View (see Importing Profiles for details on importing UML profiles into EA).
-
Steps to Generate XSD: Select the package to be converted to XSD by right-clicking on the package in the Project Browser. Select Project | Generate XML Schema from the main menu. Set the desired output file using the Filename field. Set the desired xml encoding using the Encoding field. Click on the Generate button to generate the schema. The progress of the schema generator will be shown in the Progress edit box.
How does a managed container differ from a remote container? | Arquillian | JBoss Commu... - 0 views
3More
Dependency Injection in Java EE 6 (Part 6) - 0 views
-
one of the most important value propositions for frameworks like Spring has been the ability to easily extend the framework or integrate third-party solutions
-
SPI allows you to register your own beans, custom scopes, stereotypes, interceptors and decorators with CDI even if is it not included in the automatic scanning process (such as perhaps registering Spring beans as CDI beans), programmatically looking up CDI beans and injecting them into your own objects (such as injecting CDI beans into Spring beans) and adding/overriding annotation-metadata from other sources (such as from a database or property file)
-
SPI can be segmented into three parts. Interfaces like Bean, Interceptor and Decorator model container meta-data (there are a few other meta-data interfaces such as ObserverMethod, Producer, InjectionTarget, InjectionPoint, AnnotatedType, AnnotatedMethod, etc). Each meta-data object encapsulates everything that the CDI container needs to know about the meta-data type
9More
4. Configuration for CDI - Confluence - 0 views
-
In order to initialize GDS/Tide for CDI and Hibernate, you must add granite.jar, granite-hibernate.jar and granite-cdi.jar to your WEB-INF/lib
-
The easiest way to add GraniteDS support to a CDI project in a Servlet 3 compliant container (currently only GlassFish v3) is by adding a configuration class in your project. This class will be scanned by the servlet 3 container and GraniteDS will use the annotation parameters to determine the application configuration
-
GraniteConfig.java import org.granite.config.servlet3.FlexFilter; import org.granite.gravity.config.AbstractMessagingDestination; import org.granite.gravity.config.servlet3.MessagingDestination; import org.granite.tide.cdi.CDIServiceFactory; import org.granite.tide.cdi.Identity; @FlexFilter( tide=true, type="cdi", factoryClass=CDIServiceFactory.class, tideInterfaces={Identity.class} ) public class GraniteConfig { }
- ...6 more annotations...
-
Cdi.getInstance().addComponentWithFactory("serviceInitializer", DefaultServiceInitializer, { contextRoot: "/my-cdi-app" } );
54More
Architecture | Apache Shiro - 0 views
- ...51 more annotations...
-
When you interact with a Subject, those interactions translate to subject-specific interactions with the SecurityManager
-
'umbrella’ object that coordinates its internal security components that together form an object graph
-
Shiro has the ability to natively manage user Sessions in any environment, even if there is no Web/Servlet or EJB container available
15More
shared by kuni katsuya on 05 Jun 12
- No Cached
Quick start with GraniteDS | Granite Data Services - 0 views
granitedataservices.com/...quick-start-with-graniteds
graniteds tutorial eclipse-plugin quickstart example

- ...12 more annotations...
-
mvn archetype:generate -DarchetypeGroupId=org.graniteds.archetypes -DarchetypeArtifactId=graniteds-tide-spring-jpa-hibernate -DarchetypeVersion=1.1.0.GA -DgroupId=org.example -DartifactId=springgds -Dversion=1.0-SNAPSHOT
-
With the Eclipse Maven integration (the M2E plugin), you can simply choose one of the archetypes when doing New Maven Project.
9More
In Relation To... Some tips on using Hibernate in JBoss AS 7.0.0.Final - 1 views
- ...6 more annotations...
-
JPA applications that create an EntityManagerFactory on their own, either using the PersistenceProvider SPI directly or through an intermediary mechanism such as Spring's LocalContainerEntityManagerFactoryBean
-
standard Java EE-applications may ignore the provider implementation and rely on the standard features provided by the container - JBoss AS7 supporting standard JPA 1.0 and 2.0
-
future versions of JBoss AS7 it will be possible to use alternative persistence provider implementations
12More
shared by kuni katsuya on 20 Sep 12
- No Cached
graniteds - can newer web containers having Servlet 3 extend BlazeDS max # of simultane... - 0 views
stackoverflow.com/...-blazeds-max-of-simultaneous-u
graniteds AsynchronousServlets asynchronous servlets servlet3.0

- ...9 more annotations...
-
With a non NIO or non Continuation based server, this would require around 11,000 threads to handle 10,000 simultaneous users. Jetty handles this number of connections with only 250 threads.
2More
Agile database schema management with Liquibase - BEKK Open - 0 views
5More
shared by kuni katsuya on 21 Nov 12
- No Cached
DataNucleus Access Platform - JPA Inheritance - 0 views
www.datanucleus.org/...inheritance.html
java JPA DataNucleus inheritance strategy SINGLE_TABLE TABLE_PER_CLASS JOINED

- ...2 more annotations...
-
each entity in the inheritance hierarchy has its own table and that the table of each class only contains columns for that class
13More
shared by kuni katsuya on 21 Nov 12
- No Cached
VineetReynolds / Java EE 6-Galleria / wiki / DataModel - Bitbucket - 1 views
bitbucket.org/...DataModel
javaee6 example jpa ejb jsf junit4 arquillian DomainDrivenDesign ddd DataModel

-
Many users can be associated with a group
- ...5 more annotations...
-
Users can have many Albums
-
Album containing Photos
-
Physical Data Model