I have written a custom ch.ivyteam.ivy.security.ISessionExtension so that I get informed whenever someone is authenticated on the Axon.ivy Engine. I need a mechanism to register this extension on every server startup so that I can be sure that the extension still works after a reboot of the engine. How can I do that?

asked 03.03.2017 at 10:11

SupportIvyTeam's gravatar image

SupportIvyTeam ♦♦
1.4k102118122
accept rate: 77%


With 7.0 and higher:

You need to make an extension bundle / Eclipse plugin to extend the Engine / Designer. How to do this see the Concept chapter in the Designer Guide. The Extension Point is still the same as before: ch.ivyteam.ivy.server.IServerExtension

link

answered 19.11.2018 at 06:31

Christian%20Strebel's gravatar image

Christian St... ♦
3.2k31338
accept rate: 88%

edited 19.11.2018 at 06:34

Follow these steps to attach your session listener when the engine starts:

  • Move your ISessionExtension implementation into an own ivy-project that contains nothing but the extension
  • Implement an ch.ivyteam.ivy.server.IServerExtension that can be used to start/stop your extension. Typically in here you register your code against a Manager of the ivy core engine.
  • Convert your ivy-project into a PDE plugin project. Java Perspective -> Project context menu -> Configure -> convert to Plugin Projects
  • Add a META-INF/MANIFEST.MF file.
  • Add the IServerExtension (will create a plugin.xml file in the root of the project). To do open the MANIFST.MF, tab 'extensions' -> add -> IServerExtension
  • Set your own ServerExtension as 'class' of the IServerExtension
  • Export -> JAR -> include 'src, META-INF/MANIFEST.MF, plugin.xml'
  • Put the JAR to your engine under lib/patch
  • Start the engine. The name of your extension should appear in the list of started services.

Environment

  • tested on Axon.ivy 6.5
  • the simplified registration via extension point should work since Axon.ivy 6.1

Sample project

Screenshots: server extension implementation manifest extension point engine output

link

answered 03.03.2017 at 10:16

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
9.4k31958
accept rate: 70%

edited 07.03.2018 at 10:30

Alex%20Suter's gravatar image

Alex Suter ♦♦
3.1k122247

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×44
×1

Asked: 03.03.2017 at 10:11

Seen: 6,779 times

Last updated: 19.11.2018 at 06:34