简体   繁体   中英

Call application method from embedded Tomcat/Jetty jsf-bean

I'm trying to develop an application that embeds tomcat or jetty with JSF. Is it possible to make a call from a jsf-bean to a method of the application that embeds and started tomcat?

If it isn't possible, what would be a good way of communication between the application and the servlet container?

I haven't found anything in the docs, google or even on stackoverflow.com! But I'm sure there is a solution.

Thanks in advance!

ActiveMQ would be a overkill for this scenario. You could simply start a RMI registry in the main application and host some remote interfaces with the APIs you need to communicate between your application and the jsf webapplication.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM