The configuration of a GraniteDS project will generally involve the following steps :
Add the GraniteDS jars to the WEB-INF/lib folder of the WAR file or the lib folder of the EAR file
Add the GraniteDS listener, servlets and filters in the standard WEB-INF/web.xml configuration file
Define the internal configuration of GraniteDS in the WEB-INF/granite/granite-config.xml file
Define the application configuration of GraniteDS (remoting destinations, messaging topics...) in the WEB-INF/flex/services-config.xml
Group items matching
in title, tags, annotations or url
5More
Chapter 10. Integration with CDI - 0 views
-
10.3.5. Security GraniteDS provides a client-side component named identity that ensures the integration between the client RemoteObject credentials and the server-side container security. It additionally includes an easy-to-use API to define runtime authorization checks on the Flex UI.
-
CDI identity component (of class org.granite.tide.cdi.Identity) predictably provides two methods login() and logout()
-
identity component is integrated with server-side role-based security and can be used to get information or show/hide UI depending on the user access rights:
- ...2 more annotations...
41More
Security Module Drafts - Apache DeltaSpike - Apache Software Foundation - 0 views
-
Impersonalization
-
authenticates “as a user” or access application imitating his identity - without knowing his password
- ...36 more annotations...
-
assign permissions to individual objects within the application’s business domain
-
Events LoggedInEvent LoginFailedEvent AlreadyLoggedInEvent PreLoggedOutEvent PostLoggedOutEvent PreAuthenticateEvent PostAuthenticateEvent
-
control which elements of the user interface are displayed to the user based on their assigned permissions
25More
Chapter 4. Remoting and Serialization - 0 views
- ...21 more annotations...
-
Due to the limited capabilities of the ActionScript 3 reflection API than cannot access private fields, it is necessary to create an externalizable AS3 class (implementing flash.utils.IExternalizable and its corresponding externalizable Java class
-
With GraniteDS automated externalization and without any modification made to our bean, we may serialize all properties of the Person class, private or not
-
In order to externalize the Person.java entity bean, we must tell GraniteDS which classes we want to externalize with a
-
externalize all classes named com.myapp.entity.Person by using the org.granite.hibernate.HibernateExternalizer
-
<include annotated-with="javax.persistence.Entity"/> <include annotated-with="javax.persistence.MappedSuperclass"/> <include annotated-with="javax.persistence.Embeddable"/>
-
found in the classloader of the GraniteConfig class, and discover all externalizers (classes that implements the GDS Externalizer interface)
2More
Persistence - The Java EE 6 Tutorial - 0 views
ExternalArticles - phantomjs - In the wild - headless WebKit with JavaScript API - Goog... - 0 views
10More
JBoss AS 7 | Granite Data Services - 0 views
-
JBoss AS 7 is its deep integration with Hibernate 4 which makes very painful to deploy Hibernate 3.x applications
- ...6 more annotations...
-
Flex 4.5 broke a few APIs and there were two main issues with Tide : The client libraries crashed when run in a mobile application The PagedQuery was unusable
-
Flex SDK 4.5 here
-
link broken, so go to http://www.graniteds.org/bamboo/browse/GDSCP-GDSCPN and drill down their latest nightly build. eg: http://www.graniteds.org/bamboo/browse/GDSCP-GDSCPN-287/artifact http://www.graniteds.org/bamboo/artifact/GDSCP-GDSCPN/shared/build-287/GraniteDS-swcs/granite-flex45.swc
-
37More
Selling Weld and EE6 | Weld | JBoss Community - 0 views
- ...32 more annotations...
-
Their template pattern is a solution in search of a problem
-
Because, of course, there are no other well-known patterns for dealing with boiler-plate cleanup code and connection leaks.
-
brain-damage that Spring does to people!
-
It's a very impressive magic trick, and I wish I knew how to do it myself. But then, I'm just not like that. I'm always trying to poke holes in things - whether they were Invented Here or Not.
-
exception handling, this is one area where Spring does a good job: "The Spring Framework's handling of SQLException is one of its most useful features in terms of enabling easier JDBC development and maintenance. The Spring Framework provides JDBC support that abstracts SQLException and provides a DAO-friendly, unchecked exception hierarchy."
-
Automatic connection closing (and other boiler-plate code) is obviously a hard requirement to be handled by the fwk.
-
Pffffff. It's a trivial requirement which I can solve in my framework with two lines of code in a @Disposes method. Did you see any connection handling in the code above?
-
I mean, seriously guys. The Spring stuff is trivial and not even very elegant. I guess it's easier for me to see that, since I spent half my career thinking about data access and designing data access APIs. But even so...
-
They don't understand, or see the value of, using managed objects to represent their persistent data.
-
Um. Why? Why would that be a bad thing? I imagine that any app with 1000 queries has tens of thousands of classes already. What's the problem? Why is defining a class worse than writing a method?
-
Are you working from some totally bizarre metric where you measure code quality by number of classes?
74More
Chapter 15. Data Management - 1 views
-
abstractEntity.uid();
- ...70 more annotations...
-
id is defined and is maintained in the three layers during the different serialization/persistence operations
-
recommended approach to avoid any kind of subtle problems is to have a real uid property which will be persisted in the database but is not a primary key for efficiency concerns
-
Calling the EntityGraphUninitializer manually is a bit tedious and ugly, so there is a cleaner possibility when you are using generated typesafe service proxies
-
in the Flex application, register the UninitializeArgumentPreprocessor component in Tide as follows :
-
Tide maintains a client-side cache of entity instances and ensures that every instance is unique in the Flex client context
-
Tide currently only supports Integer or Long version fields, not timestamps and that the field must be nullable
-
@Column(name="ENTITY_UID", unique=true, nullable=false, updatable=false, length=36) private String uid;
-
correct way of knowing if any object has been changed in the context, is to use the property meta_dirty of the Tide context