I am using jBoss server .
when we are giving print from the client it does not print in client but its get print in the server.. i don't know how to redirect it...so help me...

this is the piece of code::

PrintRequestAttributeSet printRequestAttributeSet = new HashPrintRequestAttributeSet();
printRequestAttributeSet.add(OrientationRequested. PORTRAIT);
printRequestAttributeSet.add(MediaSizeName.ISO_A4) ;
PrintServiceAttributeSet printServiceAttributeSet = new HashPrintServiceAttributeSet();
printServiceAttributeSet.add(new PrinterName("HP LJ P3005", null));
exporter = new JRPrintServiceExporter();
exporter.setParameter(JRPrintServiceExporterParame ter.PRINT_REQUEST_ATTRIBUTE_SET, printRequestAttributeSet);
exporter.setParameter(JRPrintServiceExporterParame ter.PRINT_SERVICE_ATTRIBUTE_SET, printServiceAttributeSet);
exporter.setParameter(JRPrintServiceExporterParame ter.DISPLAY_PAGE_DIALOG, Boolean.FALSE);
exporter.setParameter(JRPrintServiceExporterParame ter.DISPLAY_PRINT_DIALOG, Boolean.FALSE);