I'm looking for a way to implement RPC between Java and C. What are the options to do this?

Best Wishes

p.s I have web java application which is hosted on Glassfish server and C daemon. I need to directly call functions from bought sides.