0

I am using ejabberd 2.1.11 and willing to add support for json parsing using jiffy

I did install erlang-jiffy and it works on erlang shell, but not within ejabberd modules. Is there any way we can configure it work with ejabberd?

Mickaël Rémond
  • 9,035
  • 1
  • 24
  • 44
Gopal S Rathore
  • 9,885
  • 3
  • 30
  • 38

1 Answers1

0

You need to have the path to the jiffy beam file set up when you start ejabberd so that you can use them. Check erl -pa option.

Mickaël Rémond
  • 9,035
  • 1
  • 24
  • 44
  • Michkael, thanks a lot for your response. can you please elaborate a bit more, I did copied compiled files in the ejabberd ebin + priv directory, but it was not working for me. – Gopal S Rathore May 18 '15 at 07:34
  • Well, as you do not provide any information exact fact that it does not work from inside ejabberd, it is hard to tell. My guess was that you had error undef (meaning module not found) – Mickaël Rémond May 19 '15 at 10:17
  • Mickael, Actually, I did add as a module but there was a problem that it was showing undef fucntion (not for the main function decode but for another internal function). So finally I switched to another library (mochijso2) edited a bit to use a module and its working fine with ejabberd 2.1.11 Thank You – Gopal S Rathore May 19 '15 at 11:24