I’m trying to figure out if it’s possible to use a JSF bean to connect to a BlazeDS Application running on Tomcat. Here’s the deal:
I’ve got this Flex app that’s working great, but now I want to create a different frontend using JSF and JSP. The tricky part is that I want to reuse all the data access classes I wrote for the Flex app.
Has anyone done something like this before? Any ideas on how to make it work?
Also, I’m wondering if there’s a way to share the BlazeDS server class implementations between two different projects. Maybe as a JAR file or something?
Integrating BlazeDS with JSF and JSP is definitely possible, though it requires some careful planning. From my experience, the key is to create a service layer that can be shared between your Flex app and the new JSF/JSP frontend. This approach allows you to reuse your existing data access classes effectively.
To connect your JSF bean to BlazeDS, you’ll need to implement a Java adapter that acts as a bridge between your JSF components and the BlazeDS services. This adapter can invoke the same methods you’re using in your Flex app.
As for sharing BlazeDS server class implementations, packaging them as a JAR file is a solid approach. You can then include this JAR in both projects, ensuring consistency and reducing duplication. Just make sure to properly manage dependencies and version control.
Remember to handle serialization carefully, as the data format might differ between Flex and JSF/JSP. You may need to create custom serializers/deserializers to ensure smooth data transfer.
yea, u can totally use JSF bean with BlazeDS on Tomcat. the trick is makin a shared service layer. package ur data access stuff in a JAR and use it in both projects. might need to tweak some things for JSF/JSP, but its doable. good luck with ur project!
hey, that’s an interesting challenge! have u considered using a RESTful API layer? it could act as a bridge between ur BlazeDS backend and JSF frontend. might simplify things. wat about using Spring framework to manage dependencies? just brainstorming here. how far along r u with the project?