}
private void requestAllocation(Warehouse warehouse, Item item, double quantity) {
AllocationMessageContent content = new AllocationMessageContent();
content.setOperation(1);//request allocation
content.setItemCode(item.getCode());
content.setWarehouseName(warehouse.getName());
content.setTransactionQuantity(quantity);
content.setOrderType(1);//Customer order
content.setOrderCode(order.getCode());
//content.setOrderLineNumber()
try {
Connection connection =connectionFactory.createConnection();
Session session = connection.createSession(true, 0);
MessageProducer producer=session.createProducer(allocatorQueue);