Integrating BlazeDS with JSF and JSP for reusing Flex data access

Hey everyone!

I’m working on a project where I’ve got a Flex app running with BlazeDS. Now I want to build another frontend using JSF and JSP, but I don’t want to rewrite all my data access stuff. Is there a way to make a JSF bean talk to the BlazeDS app on my Tomcat server?

I’m thinking maybe I could package up my BlazeDS server classes in a JAR and use it in both projects. Has anyone tried something like this before? Any tips or tricks would be super helpful!

I’m pretty new to this whole BlazeDS thing, so I’m not sure if I’m barking up the wrong tree here. If there’s a better way to share code between Flex and JSF/JSP, I’m all ears!

Thanks a bunch for any help you can give me!

Integrating BlazeDS with JSF and JSP is feasible, but it’s not a straightforward path. Consider creating a service layer that encapsulates your BlazeDS logic. This layer can be packaged as a JAR and utilized by both your Flex and JSF/JSP applications. Ensure proper configuration of remoting-config.xml and proxy settings in your JSF environment. Be mindful of potential serialization issues and session management differences. Alternatively, you might want to explore more modern approaches like building a RESTful API that can serve both frontends, which could simplify your architecture and improve maintainability in the long run.

hey zack, i did a similar thing before. you can pack your blazeds code in a jar, just be sure your jsf beans get the right classes. tweak the config and watch for serialization probs. good luck!

hey there zack! curious about ur project. have u considered using RESTful web services instead? might be easier to integrate across diff frontends. what kinda data r u working with? maybe we can brainstorm some alternatives that could save u time and headaches?