I hereby claim:
- I am jacobheric on github.
- I am jacobheric (https://keybase.io/jacobheric) on keybase.
- I have a public key ASCa4t8ExR0norKBhFzBKO_0e7JrJXy8OgjnZVH1ODBwAwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| <?xml version="1.0" encoding="utf-8"?> | |
| <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" | |
| creationComplete="creationCompleteHandler();"> | |
| <mx:Script> | |
| <![CDATA[ | |
| import com.jacobheric.youbrew.model.Recipe; | |
| import mx.collections.ArrayCollection; | |
| import mx.rpc.events.ResultEvent; |
| [Bindable] | |
| [RemoteClass(alias="com.jacobheric.youbrew.domain.Recipe")] | |
| public class Recipe | |
| { | |
| public var id:int; | |
| public var name:String; | |
| public var start:Date; | |
| public var end:Date; | |
| public var brewNotes:String; |
| //PersistenceExceptions will be auto-translated due to @Repository | |
| @Repository("recipeService") | |
| @RemotingDestination(channels = { "my-amf" }) | |
| @Transactional | |
| public class RecipeDAO extends BaseDao<Recipe> implements RecipeService { | |
| /** | |
| * Constructor, see super class implementation. | |
| */ |
| <!-- | |
| Enable annotation-based configuration. | |
| --> | |
| <context:annotation-config /> | |
| <context:component-scan base-package="com.jacobheric" /> |
| <flex:message-broker> | |
| <flex:message-service | |
| default-channels="my-amf" /> | |
| <flex:secured /> | |
| </flex:message-broker> |
| <servlet> | |
| <servlet-name>flex</servlet-name> | |
| <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> | |
| <load-on-startup>1</load-on-startup> | |
| </servlet> | |
| <servlet-mapping> | |
| <servlet-name>flex</servlet-name> | |
| <url-pattern>/messagebroker/*</url-pattern> | |
| </servlet-mapping> |
| <services> | |
| <default-channels> | |
| <channel ref="my-amf"/> | |
| </default-channels> | |
| </services> | |
| <channels> | |
| <channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel"> | |
| <endpoint url="http://localhost:8080/youbrew/messagebroker/amf" |
| <configuration> | |
| <parameters> | |
| <swf>${project.artifactId}-${youbrew.version}</swf> | |
| <title>You Brew your own software</title> | |
| </parameters> | |
| <outputDirectory>${basedir}/../java-web/src/main/webapp/</outputDirectory> | |
| <services>${basedir}/../java-web/src/main/webapp/WEB-INF/flex/services-config.xml</services> | |
| <htmlName>index</htmlName> | |
| <contextRoot>/youbrew</contextRoot> | |
| <locales> |
| <!-- See module poms for more detail. --> | |
| <modules> | |
| <module>flex</module> | |
| <module>java-web</module> | |
| </modules> |