Events
Group items matching
in title, tags, annotations or url
3More
40More
Java Persistence/Advanced Topics - Wikibooks, open books for an open world - 0 views
12More
From Spring to Java EE 6 - Java Code Geeks - 1 views
- ...9 more annotations...
-
I am still - a real Spring fanboy (which I, historically speaking, discovered after having been literally disgusted by EJB's 1.0)
-
Arguing that things are in Spring much simpler, much lighter than in Java EE is not - more exactly, no more – true
4More
flex - What are the drawbacks of using Spring BlazeDS Integration? - Stack Overflow - 0 views
- ...1 more annotation...
-
In short, it provides much easier configuration of the backend infrastructure and services you want to expose to the client and it integrates perfectly with the Spring application contexts and the Spring programming model in general.
7More
The JPA 2 Enhancements Every Java Developer Should Know - Developer.com - 0 views
-
JPA 2 also introduced a second layer of cache, which is shared across various persistence contexts and can be accessed using the EntityManagerFactory
- ...4 more annotations...
6More
Import Binary Module [Enterprise Architect User Guide] - 0 views
-
To import a binary module, right-click on the target package in the Project Browser and select the Code Engineering | Import Binary Module context menu option
-
- ...2 more annotations...
-
Do not import private members checkbox excludes private members from libraries from being imported into the model
26More
Enterprise JavaBeans 3.1 with Contexts and Dependency Injection: The Perfect Synergy - 0 views
- ...22 more annotations...
-
Annotating the boundary (Cart) with the @Named annotation makes the Cart immediately visible for expression language (EL) expressions in JSP and JSF
-
@Named annotation takes the simple name of the annotated class, puts the first character in lowercase, and exposes it directly to the JSF pages (or JSP). The Cart bean can be accessed directly, without any backed or managed beans, by the JSF pages: <h:commandButton value="Check out!" action="#{cart.checkout}" />
-
class Event can be considered to be a lightweight alternative to the java.beans.PropertyChangeSupport class
-
The during attribute in the @Observes annotation allows you to select in which transactional phase the event gets delivered. The default setting is IN_PROGRESS, which causes an immediate event delivery regardless of the transaction outcome. The AFTER_SUCCESS configuration causes the delivery to occur only after successful transaction completion
-
Although CDI events work only inside a single process (in the default case, CDI is extensible), they are perfectly suitable for decoupling packages from modules
-
The method checkout() starts a transaction that gets "reused" by the OrderSystem and CustomerNotification session beans
-
ordering.placeOrder(); notifier.sendNotification();
4More
3. Remoting - Confluence - 0 views
- ...1 more annotation...
-
It is also possible to define serverName, serverPort and the url mappings for Granite AMF remoting and for Gravity push graniteUrlMapping and gravityUrlMapping.
10More
shared by kuni katsuya on 20 Aug 12
- No Cached
2. Flex application initialization - Confluence - 0 views
www.graniteds.org/...lex+application+initialization
graniteds graniteds-tide-cdi-jpa flex client remoting initialization configuration

- ...7 more annotations...
-
It's even possible to use the Tide framework if you don't use GraniteDS as the AMF remoting provider by initializing the application with the singleton Tide.
5More
The Future Of JBoss Seam And Apache DeltaSpike - 0 views
-
Apache DeltaSpike (currently in incubation) is a set of extensions on Java CDI (Contexts and Dependency Injection)
- ...2 more annotations...
5More
symbiont/cdiqi · GitHub - 0 views
- ...2 more annotations...
-
bounds request context to every job execution so that it's possible to use @RequestScoped, @Dependent and @ApplicationScoped jobs and especially beans
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.
24More
Dependency Injection in Java EE 6 - Part 1 - 0 views
-
high-level look at CDI, see how it fits with Java EE overall and discuss basic dependency management as well as scoping.
- ...21 more annotations...
-
CDI allows you to manage the scope, state, life-cycle and context for objects in a much more declarative fashion, rather than the programmatic way
-
well-defined create/destroy life-cycle that you can get callbacks for via the @PostConstruct and @PreDestroy annotations.
-
CDI does not directly support business component services such as transactions, security, remoting, messaging
-
JSR 330 defines a minimalistic API for dependency injection solutions and is primarily geared towards non-Java EE environments.
-
none of this uses string names that can be mistyped and all the code is in Java and so is checked at compile time
-
are additional pieces of meta-data that narrow down a particular class when more than one candidate for injection exists
47More
shared by kuni katsuya on 13 Sep 12
- No Cached
5. Exception Handling - Confluence - 0 views
www.graniteds.org/...5.+Exception+Handling
graniteds ExceptionHandling javaee6 Flex ActionScript actionscript3

- ...41 more annotations...
-
possible to define common handlers for particular fault codes on the client-side, and exception converters on the server-side, to convert server exceptions to common fault codes
-
t.getMessage(), detail, t
-
* instead of *wrapping* the server-side exception and rethrowing it to the client, ** extract only details relevant to the client (eg. include: human-friendly error message and any helpful parametrized data, exclude: stack traces), ** "wrap" it in a generic ServiceException, which gets "thrown" remotely to the client * client can check ServiceException.getCode() to implement behavior tailored to server-side exception 'type'
-
-
ENTITY_NOT_FOUND
-
all EntityNotFound exceptions on the server-side, and convert it to a proper ENTITY_NOT_FOUND fault event.
-
<exception-converters> <exception-converter type="com.package.SomeExceptionConverter"/> </exception-converters>
-
IExceptionHandler
4More
Mapping JPA Entities To SQL Views - It Works Even With Derby : Adam Bien's Weblog - 0 views
-
Especially in the context of pagination, where the data is mostly retrieved for read-only purposes, database views are the easier and more efficient alternative. Instead of implementing a lot of plumbing on the “Java-side” all the work could be easily done in the database
- ...1 more annotation...
-
There is a drawback: not all views are updatable. Whether a view is updatable or not highly depends on the complexity and particular database
4More
Enterprise JavaBeans 3.1 with Contexts and Dependency Injection: The Perfect Synergy - 0 views
8More
7. Tide Framework - Confluence - 0 views
-
comparable to LiveCycle Data Services, which is neither open source nor free, as it provides similar features such as client container of managed entities, data paging, and integration with server components, but it is based on completely different principles:
- ...5 more annotations...
-
Tide keeps the classic three layers web architecture, when LCDS removes the service layer, and is some kind of remote JPA provider for Flex applications
-
Tide approach is to minimize the amount of code needed to make things work between the client and the server
-
principles are very similar to the ones of JBoss Seam, which is the main reason why the first integration of Tide has been done with this framework. Integrations with Spring, EJB 3 and CDI are also available
23More
Chapter 16. Extensibilty - 0 views
- ...20 more annotations...
-
If authorization fails, either because the user is not logged in or because it doesn't have required rights, it must throw an appropriate org.granite.messaging.service.security.SecurityServiceException.
-
only one instance of this service is used in the entire web-app and will be called by concurrent threads
-
This method is called upon each and every service method call invocations (RemoteObject) or subscribe/publish actions (Consumer/Producer). When used with RemoteObjects, the authorize method is responsible for checking security, calling the service method, and returning the corresponding result.
18More
Seam - Contextual Components - 0 views
-
Seam Security is built around the premise of users being granted roles and/or permissions, allowing them to perform operations that may not otherwise be permissible for users without the necessary security privileges
- ...15 more annotations...
-
15.6.1.1. What is a role? A role is a group, or type, of user that may have been granted certain privileges for performing one or more specific actions within an application
-
used to create logical groups of users for the convenient assignment of specific application privileges
-
15.6.1.2. What is a permission? A permission is a privilege (sometimes once-off) for performing a single, specific action. It is entirely possible to build an application using nothing but permissions, however roles offer a higher level of convenience when granting privileges to groups of users
-
@Restrict annotation may reference any objects that exist within a Seam context. This is extremely useful when performing permission checks for a specific object instance.
-
If the expression specified doesn't evaluate to true, either if the user is not logged in, a NotLoggedInException exception is thrown or if the user is logged in, an AuthorizationException exception is thrown.