Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not reloading i18n message bundles and mybatis xml mappers. #443

Open
luceat-lux-vestra opened this issue Oct 8, 2022 · 2 comments
Open

Comments

@luceat-lux-vestra
Copy link

luceat-lux-vestra commented Oct 8, 2022

I want reload message_{locale}.properties! and hopefully mybatis xml mappers too.

My Setup:

  • IDE: IntelliJ IDEA 2022.2.3 (Ultimate Edition)
  • JDK/DCEVM: Dcevm-11.0.15+1 (2022-04-28)
  • HA: 1.4.1 and 1.4.2-SNAPSHOT both tried
  • Tomcat: 9.0.68
  • VM Options: -XX:HotswapAgent=fatjar

I tried hotswap-agent.properties like #252 but no luck.

and also doesn't reload mybatis xml mappers.

Please help.

@luceat-lux-vestra luceat-lux-vestra changed the title Not reloading i18n message bundles. Not reloading i18n message bundles and mybatis xml mappers. Oct 8, 2022
@skybber
Copy link
Contributor

skybber commented Oct 8, 2022

What framework are you using? Probably resource bundle reloading is not supported in the appropriate HA plugin, but it could be very easily done in similar way how it is in case of Mojarra or MyFaces:

https://github.com/HotswapProjects/HotswapAgent/blob/master/plugin/hotswap-agent-mojarra-plugin/src/main/java/org/hotswap/agent/plugin/mojarra/MojarraPlugin.java#L105

@luceat-lux-vestra
Copy link
Author

luceat-lux-vestra commented Oct 8, 2022

I didn't notice what you really said, especially not supported in the appropriate HA plugin.
No one is interested in this I guess because no response even though 2 months later.

That means I need to implement that..., I hope I can.


@skybber I'm using Spring MVC with JSP.

I guess I need to do like this.
Is it right?


Do I need to do something to use Mojarra or MyFaces plugin? then please let me know.
I didn't disabled any plugin and according to log, it seems loads all plugins but no effect.

HOTSWAP AGENT: 20:16:21.789 INFO (org.hotswap.agent.config.PluginRegistry) - Discovered plugins: [Hotswapper, WatchResources, AnonymousClassPatch, ClassInitPlugin, JdkPlugin, Hibernate, Hibernate3JPA, Hibernate3, Spring, Jersey1, Jersey2, Jetty, Tomcat, ZK, Logback, Log4j2, MyFaces, Mojarra, Omnifaces, ELResolver, WildFlyELResolver, OsgiEquinox, Owb, Proxy, WebObjects, Weld, JBossModules, ResteasyRegistry, Deltaspike, GlassFish, Weblogic, Vaadin, Wicket, CxfJAXRS, FreeMarker, Undertow, MyBatis, IBatis, JacksonPlugin, Idea]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants