@Override
	public void doJob()  {
		
		int libA = 0 ;
		int libB = 1;
		
		//GET Resource from Publisher
		try{
			WebResource webResource = client.resource("http://54.215.210.214:9000/orders/75829");
			Shipped_Books sb  = webResource.accept(MediaType.APPLICATION_JSON).get(Shipped_Books.class);
			
			String data = "";		
			for (int i = 0; i < sb.getShipped_books().size(); i++) {
				
				data = sb.getShipped_books().get(i).getIsbn() +
				 		":\"" + sb.getShipped_books().get(i).getTitle() + "\"" +
				 		":\"" + sb.getShipped_books().get(i).getCategory() + "\"" +
				 		":\"" + sb.getShipped_books().get(i).getCoverimage() +"\"" ;		
				
				
					TextMessage msg = session[libA].createTextMessage(data);
					msg.setLongProperty("id", System.currentTimeMillis());
					System.out.println("Sending to " + topicName[libA] + " "+ 
											sb.getShipped_books().get(i).getCategory());
					producer[libA].send(msg);
					
					if(sb.getShipped_books().get(i).getCategory().compareTo("computer") == 0){
						msg = session[libB].createTextMessage(data);
						msg.setLongProperty("id", System.currentTimeMillis());
						System.out.println("Sending to " + topicName[libB] + " " +
												sb.getShipped_books().get(i).getCategory());
						producer[libB].send(msg);
					}
			}
		}catch(Exception e){
			System.out.println("Exception omg omg .."+e);
			System.out.println(Thread.currentThread().getStackTrace()[2].getMethodName());
		}
		}