need an EJB3 expert to create a session bean with a single method that converts an Entity to a JMS message. The bean method will look like this:
[url removed, login to view]( Object entity );
The entity passed can be assumed to be a EJB3 Entity. The entity will have an "id" attribute and "version", but other than that, the Java Reflection API will need to be used to get the list of other attributes and values to put in the JMS message. Where the entity has object relationships (e.g. @ManyToOne public User getManager();), the JMS message should have an attribute in the body for this relationship with the value of the "id" of the target object (e.g. manager=83722)
The JMS message needs to have a property EVENT_TYPE='add' and also a property of COMPANY_ID, which is either null or the value of the id of the Company if a getCompany() method is present on the entity.
The JMS Body needs to have the names and corresponding values of all persistent attributes of the entity. I am open to recommendations on the structure of the body (some sort of serialized Map or XML text?)
The project needs to be delivered as an Eclipse project that can be deployed on JBoss 6, and needs to include a JUnit or TestNG test that creates an entity, persists it, calls the method and reads the resulting message from the queue and validates the contents.
If someone can do this quickly, cheaply and with clear and well-designed code, I will probably have a stream of tasks in the future. Please quote rate for this and any future projects, and a fixed cost for this project.