Smack API with Java EE

Can I implement Smack API with Java EE

Technically yes, it works, but strictly speaking no, because the Java EE specification disallows to create threads in the Java EE context and Smack creates quite a few.