How can I replace Wildfly 9's default SessionManager with a custom implementation for all web apps?

radvieira

Based on my understanding of the Undertow docs and this stack overflow post, I think I should be able to provide my own implementation of SessionManager.

I have created a jar file containing:

  • a SessionManager implementation
  • a SessionManagerFactory implementation
  • a ServletExtension implementation
  • a META-INF/services/io.undertow.servlet.ServletExtension file containing the fully qualified name of my class

Have I done this right? How do I get Undertow to pick this up?

Thanks

Tomaz Cerar

If you did all that, all you need is to have that jar in your war/WEB-INF/lib and that is it.

When war is deploying WildFly will look for this ServletExtension and tell undertow to load it.

see also http://undertow.io/undertow-docs/undertow-docs-1.2.0/index.html#servlet-extensions

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How can I set the default font size for all Qt5 apps?

From Dev

How can I run ALL my Apps “as administrator” by default in Windows 7?

From Dev

How can I remove web-apps?

From Dev

how can i replace my own "Phone Ringing" screen instead of android's default one?

From Dev

How can I replace all button

From Dev

Wildfly 9 - How do I exclude Jackson

From Dev

Wildfly 9 - How do I exclude Jackson

From Dev

How can I provide a default implementation for an overridable method?

From Dev

How can I provide a default implementation for an overridable method?

From Dev

In SqlAlchemy how can I configure ALL relationship()s to use a loading strategy by default?

From Dev

How can I check that all object's fields with default value were set?

From Dev

In SqlAlchemy how can I configure ALL relationship()s to use a loading strategy by default?

From Dev

How can I replace a string in a file(s)?

From Dev

Can I quickly replace my components to a custom theme's components?

From Dev

How can I replace the default favicon in an slc loopback generated webapp?

From Dev

when i replace 'ت' sql change all 'ت' and 'ة', how can i fix it?

From Dev

How can I secure Firebase with an all client-side implementation?

From Dev

How can i replace a IBOutlet uiview programmatically with a custom view in swift

From Dev

How can I a custom instance of the default Application instance?

From Dev

How can I make a custom environment in rails a default environment?

From Dev

How can I set a custom Controltemplate as the default for whole application?

From Dev

How can I remove the default indicators and add custom ones?

From Dev

How can I make a custom environment in rails a default environment?

From Dev

How can I replace all duplicate punctuation with single punctuation in PHP?

From Dev

How can I replace all occurrences of the division sign with a slash in Java?

From Dev

How can I replace all elements in an array with a prefix string?

From Dev

How can I replace all duplicate white spaces in a string with tabs

From Dev

How can I remove or replace all punctuation characters from a String?

From Dev

How can I replace all the characters from a string?

Related Related

  1. 1

    How can I set the default font size for all Qt5 apps?

  2. 2

    How can I run ALL my Apps “as administrator” by default in Windows 7?

  3. 3

    How can I remove web-apps?

  4. 4

    how can i replace my own "Phone Ringing" screen instead of android's default one?

  5. 5

    How can I replace all button

  6. 6

    Wildfly 9 - How do I exclude Jackson

  7. 7

    Wildfly 9 - How do I exclude Jackson

  8. 8

    How can I provide a default implementation for an overridable method?

  9. 9

    How can I provide a default implementation for an overridable method?

  10. 10

    In SqlAlchemy how can I configure ALL relationship()s to use a loading strategy by default?

  11. 11

    How can I check that all object's fields with default value were set?

  12. 12

    In SqlAlchemy how can I configure ALL relationship()s to use a loading strategy by default?

  13. 13

    How can I replace a string in a file(s)?

  14. 14

    Can I quickly replace my components to a custom theme's components?

  15. 15

    How can I replace the default favicon in an slc loopback generated webapp?

  16. 16

    when i replace 'ت' sql change all 'ت' and 'ة', how can i fix it?

  17. 17

    How can I secure Firebase with an all client-side implementation?

  18. 18

    How can i replace a IBOutlet uiview programmatically with a custom view in swift

  19. 19

    How can I a custom instance of the default Application instance?

  20. 20

    How can I make a custom environment in rails a default environment?

  21. 21

    How can I set a custom Controltemplate as the default for whole application?

  22. 22

    How can I remove the default indicators and add custom ones?

  23. 23

    How can I make a custom environment in rails a default environment?

  24. 24

    How can I replace all duplicate punctuation with single punctuation in PHP?

  25. 25

    How can I replace all occurrences of the division sign with a slash in Java?

  26. 26

    How can I replace all elements in an array with a prefix string?

  27. 27

    How can I replace all duplicate white spaces in a string with tabs

  28. 28

    How can I remove or replace all punctuation characters from a String?

  29. 29

    How can I replace all the characters from a string?

HotTag

Archive