Discussion:
[jboss-user] [jBPM] - Substituting Protobuf serialization to something else (binary, json etc)
Vinkat Tripurthy
2013-06-03 21:57:47 UTC
Permalink
Vinkat Tripurthy [https://community.jboss.org/people/mani.jorell] created the discussion

"Substituting Protobuf serialization to something else (binary, json etc)"

To view the discussion, visit: https://community.jboss.org/message/821102#821102

--------------------------------------------------------------
I am working on using jbpm as an embedded workflow engine in a wider system which is dependent on a new version of protobuf. I do not want to recompile jbpm/drool proto files (and having to regenerate jbpm/drools jars) each time the enclosing system upgrades to a new protobuf version. I think it will be easier to just shift to binary serialization or json. Anything other than protobufs. Does any one have experience with this that they can share or maybe point me to resources to accomplish this?

I'd appreciate any help as this is quickly becoming a blocker for us. If there is a simple way to shift to another serialization mechanism that would be great.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/821102#821102]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Vinkat Tripurthy
2013-06-05 18:27:28 UTC
Permalink
Vinkat Tripurthy [https://community.jboss.org/people/mani.jorell] created the discussion

"Re: Substituting Protobuf serialization to something else (binary, json etc)"

To view the discussion, visit: https://community.jboss.org/message/821578#821578

--------------------------------------------------------------
I'm am trying to add my own ObjectMarshallingStrategy by setting the relevant environment variable:

env.set(EnvironmentName.OBJECT_MARSHALLING_STRATEGIES,  new org.drools.marshalling.ObjectMarshallingStrategy[] {new SomeMarshallingStrategy()});


So far this doesn't seem to have any effect, it still goes to the ProtobufMarshaller and I'm still looking into it. But I wanted to report it here in case I'm on the wrong track. Or if someone know why setting this environment variable is not having any effect.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/821578#821578]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Loading...