Message Boards

Requirement: Write/update a file inside an osgi module application

Michael Harris, modified 3 Years ago.

Requirement: Write/update a file inside an osgi module application

New Member Posts: 2 Join Date: 3/19/20 Recent Posts

Requirement - Write/update a file inside osgi module application("META-INF/resources/js/json/file")

In 6.2 we were able to do this easily inside the portlet. However in Liferay 7.2 I don't see a way to fulfill this requirement because the application is now a java archive.

Does anyone know of a way that this can be accomplished?

Any help with this issue would be truly appreciated!

thumbnail
Olaf Kock, modified 3 Years ago.

RE: Requirement: Write/update a file inside an osgi module application

Liferay Legend Posts: 6403 Join Date: 9/23/08 Recent Posts

Please see https://xyproblem.info/ and let us know what you're actually planning to do.

The modules are typically closed, and implement quite a lot of interfaces that you can use to customize their behavior. In many cases, invasive operations like in 6.x are no longer necessary. There might be a few cases where they are still necessary, but it should be the last resort, not the first choice.

7.2 is extended in a totally different way than 6.2, and you should embrace the new way as much as possible, rather than trying to bring the same techniques forward just because you used them in the past.