« Return to Thread: How to deploy your own Application Router
Yvo Bogers (RY/ETM) wrote:Hi,
Stoffe rightly pointed out to me that I never sent these instructions
around so here goes.
In the current version of SailFin , it is possible to replace the
'built-in' Application Router with your own. You can find two examples
in the samples/ directory:
One is an AlphabeticalRouter - which actually is already built right
into sailfin so no need to deploy that, just use it as an example to
construct your own.
The other one is a DefaultApplicationRouter as specified by Appendix C
of the JSR289 PR draft. Note however that, although it is
"DefaultApplicationRouter", the spec does not mandate that every AS has
to work like this out-of-the-box. In sailfin, the AlphabeticalRouter was
chosen as a default instead.
Both examples contain a README on how to get started. Note that the
Application Router deployment and configuration is likely to change when
the final version of JSR289 comes out, so these examples will also need
to be updated then.
How it works now:
1. Create a class that implements the
javax.servlet.sip.SipApplicationRouter interface.
2. Create a Manifest.MF file containing the attribute
Application-Router-Class: com.path.to.YourRouter
3. package your compiled code as a .jar and store the Manifest.MF from
step 2. in the jar's META-INF directory.
4. run asadmin deploy yourarchive.jar
That will replace the AR in the running server with your new AR.
As said, this mechanism has been subject of discussion and is likely to
change.
Any questions, let me know.
Cheers,
Yvo
« Return to Thread: How to deploy your own Application Router
| Free embeddable forum powered by Nabble | Forum Help |