-
1. Re: brainstorming for a CDI Demo
kcbabo Jul 29, 2011 7:51 AM (in response to aamonten)Hey Alejandro,
Very cool. I can already see some fun enhancements. :-) A few questions/comments:- I noticed you included a switchyard.xml in src/main/webapp/META-INF. Is there a reason why you are no relying on the automatic generation? If it's just so we include the switchyard.xml in the packaged WAR, then maybe we can use the resource plugin in Maven to make sure the version generated in target/classes/META-INF makes it into the webapp?
- Now that you have verified this works, I'm thinking it would be great to switch from number guess to an order submission application. The interfaces and implementation beans from the orders quickstart can be reused here, so it's really just a matter of updating the JSP to take order input and display order ack output.
- It would be cool if we could inject @Service references directly into the JSP using EL instead of relying on a backing bean which is then injected into the page. Not sure if this is possible with our current CDI support, but it's something we should look at.
cheers,
keith
-
2. Re: brainstorming for a CDI Demo
antollinim Jul 29, 2011 1:17 PM (in response to aamonten)Hi Alejandro,
I just tried it and works like a charm. It is good to have a UI to interact with the services.
Just thinking out loud here... what do you think about having a "Game Center" which has different Games (random-numbers would be one of these) using different implementations and differetn bindings, but "thanks to Switchyard" they can all be referenced homogeneously.
Following Keith's suggestion to stay with the OrderService, we could have "An Order Center", which interact with different OrderServices using, once again, different implementations and bindings.
I think this kind of demo could help to easily highlight one of the benefits of using Switcyhard in the backend.
Mario
-
3. Re: brainstorming for a CDI Demo
aamonten Jul 29, 2011 2:17 PM (in response to kcbabo)Hi Keith,
I added the switchyard.xml while I was working on the app, but I have just tried it without the switchyard.xml file and it still works.
I will keep working on enhancing the demo with yours and Mario's ideas!
-
4. Re: brainstorming for a CDI Demo
aamonten Jul 29, 2011 2:18 PM (in response to antollinim)Mario, I will start working on the Order Service app and then continue with the Game Center, thanks for your suggestions!