Customize a device decoder

TuanSon6 years ago

Hi Anton

Could I customize a device decoder and then just deploy the .class file instead of the whole traccar-server.jar file? If yes then could you point me how to do that? Thanks!

Anton Tananaev6 years ago

You can re-package JAR, but why would you do something like that?

TuanSon6 years ago

I am having an installed and running traccar on our server. And now I want to customize a protocol decoder. And I wonder if there's any way that I can just deploy the .class file of the decoder or I need to repackage the traccar-server.jar file?

I am thinking about this since in the future I can upgrade to new official traccar version and then only deploy my customized decoder .class file then.

Anton Tananaev6 years ago

I would recommend to package full JAR file.

TuanSon6 years ago

OK... Thank you!

Just wonder since it would be great if we could have something like in Tomcat: classes in .jar files could be overriden by classes in WEB-INF/classes folder.