Where to get frontend input value (Container Host in Compute Backend Configuration) from backend plugin

3 views
Skip to first unread message

Richard Guo

unread,
Oct 20, 2025, 2:05:01 AM (8 days ago) Oct 20
to xnat_discussion

Hi everyone,

I’m developing a custom XNAT plugin and I’m trying to access the frontend input value in the backend code.

Specifically, under Plugin Settings → Compute Backend Configuration, when I create a new Container Host from the frontend, the value is successfully saved to the database (I can verify the new record there).
However, I don’t know where or how to get this value from my backend Java code.

I would like to retrieve the frontend input (the newly created Container Host information) in the backend — for example, through the proper service or API — so that I can use it later for debugging and validation.

Could anyone point me to the correct class, method, or service where the Container Host configuration is exposed, or how to fetch it programmatically from the backend plugin?

Thanks in advance for your help,
Richard Guo

John Flavin

unread,
Oct 21, 2025, 1:28:46 PM (7 days ago) Oct 21
to xnat_di...@googlegroups.com
You can get that by autowiring the DockerServerService into your code and calling its getServer() method. The name of that class and the object it returns is specifically about a "Docker Server" as a historical relic from when we only had the ability to talk to the docker API directly, not swarm or kubernetes. In the front end and documentation we have changed to the more generic name "Compute Host".

John Flavin

--
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xnat_discussi...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/xnat_discussion/558b6e8c-0477-4e83-b3b2-85de16e48379n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages