title: Create a MessageCode for a custom java object for VertX eventbus in Quarkus
body: <p>I have created an event bus to communicate between 2 beans in my quarkus application.
  I have it sending a custom object type and waiting to get another custom object as response async</p>
  <p>Sender</p>
  <pre><code>@Inject
      EventBus eventBus;
  
  public Uni&lt;ResponseCustomObject&gt; myMethod() {
     DeliveryOptions options  = new DeliveryOptions().setCodecName(RequestCustomObjectCodec.class.getName());
  return eventBus.&lt;ResponseCustomObject&gt;request(&quot;greeting&quot;, RequestCustomObject, options).onItem().transform(Message::body);
  }
  </code></pre>
  <p>Consumer</p>
  <pre><code>@ConsumeEvent(value = &quot;greeting&quot;, codec = RequestCustomObjectCodec.class)
  public Uni&lt;ResponseCustomObject&gt; myMethod2() {
     return Uni.createFrom().item(() -&gt; customResponseObject);
  }
  </code></pre>
  <p>Running the above application i am getting the below error,</p>
  <blockquote>
  <p>Cannot instantiate the MessageCodec class io.intelliflow.repomanager.model.FileInformation: java.lang.NoSuchMethodException: io.intelliflow.helper.codec.FileInformationCodec.()</p>
  </blockquote>
  <p>Any idea how to overcome this?
  Not using a clustering eventbus.</p>