Openfire as an embedded server

Hi,

is it possible to install Openfire as an embedded server within my own JEE application running on Tomcat?

thanks