java - Finding a needed dll after a JBoss (hot) redeploy? -


My web application uses a native DLL for the part of its functionality (the location provided in PATH ) Everything works till I do not change the war and the hot air deploys this war. At this point, dll is no longer found and I need to manually restart the server.

What is the best way to load DLL back in the app after hot deployment?

It may not be so easy that a DLL is usually linked to a specific category loader. When you redeploy, this means that the original classloader used for your application has been destroyed. Unfortunately, the Java Virtual Machine does not allow another classloader to reload a DLL.

You must have some stability, which will never be lifted by the virtual machine. Perhaps another application to load DLL will be a solution, because reorganizing the first application will not affect DLL. I think it is also possible to create a jer file that loads the DLL and adds it to the Javascript classpath, instead of adding it to your application, there is usually a "shared" directory in such a server, where Jar files can be added that will be shared by all applications.

The low bug of the SNA puts some light in this problem, which is more common than just Loading Loading Servicelet:


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -