How to build a reusable extention for Akka appliactions?

Hi.

I’ve written a simple Akka application with one Actor class. In this application, I have a manual send (!) function. There is a priority among messages as control messages are required for the manual send function to proceed. My goal is to make an extension from this application so that I can use it in other Akka applications too. Is this possible? My concern is that there are control messages involved in the function’s behavior. Can I somehow make a jar file from my application classes and include them in desired applications besides the Akka library or should I use Akka Extension?

I appreciate your guidance!