| Internet web app - sending .PDF or .PS output direct to user printer |
|
 |
Index ‹ java-programmer
|
- Previous
- 1
- RMI Objects HelpHi,
I'm having a little problem with compiling the RMI Stub. Getting the
following error. Have attached all relevant source code below. Hope
someone can help!
Thanks,
Rajat
ERROR
======
D:\Projects\TreeServer\TreeServer_Stub.java:6: class
TreeServer.TreeServer_Stub must be declared abstract. It does not
define java.lang.Object getChild(char, TreeServer.Nodes, short,
java.lang.String) from interface TreeInterface.TreeInterface.
public final class TreeServer_Stub
===========
TreeServer.java
===========
package TreeServer;
import java.rmi.Naming;
import java.rmi.RMISecurityManager;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
import TreeInterface.*;
public class TreeServer extends UnicastRemoteObject implements
TreeInterface {
static final long serialVersionUID = 10000;
NodeManagement nm = new NodeManagement();
public static void main(String[] args) {
try {
if (System.getSecurityManager() == null) {
System.setSecurityManager(new RMISecurityManager());
}
TreeServer q = new TreeServer();
Naming.rebind("rmi://localhost/TreeService", q); // sets the
// handle
System.out.println("Start Main RMI Server");
} catch (RemoteException er) {
System.out.println("Exception in Main RMI Server: " + er);
} catch (Exception err) {
System.out.println("Exception occurred: " + err);
}
}
public TreeServer() throws RemoteException {
// do the init here.
super();
}
public Nodes getChild(char c, Nodes nod, short difficulty, String
dictionary)
throws RemoteException {
return nm.getChild(c, nod, difficulty, dictionary);
}
}
=============
Nodes.java
=============
package TreeServer;
public class Nodes{
public char letter;
public int first_Child_offset = 1000;
public boolean isTerminal = true;
public boolean isLastSibling = true;
public int NodeNo;
public Nodes() {
}
public Nodes(int NodeNo, char letter, boolean isTerminal,
int first_Child_offset, boolean isLastSibling) {
this.NodeNo = NodeNo;
this.letter = letter;
this.isLastSibling = isLastSibling;
this.first_Child_offset = first_Child_offset;
this.isLastSibling = isLastSibling;
this.isTerminal = isTerminal;
}
}
=================
NodeManagement.java
=================
package TreeServer;
import java.io.*;
import java.util.*;
public class NodeManagement {
public NodeManagement() {
}
public Nodes getChild(char c, Nodes nod, short difficulty, String
dictionary) {
/// this returns a node object. code is just too big to paste here.
}
}
=============
TreeInterface.java
=============
package TreeInterface;
import java.rmi.*;
import TreeServer.*;
public interface TreeInterface extends java.rmi.Remote {
public Nodes getChild(char c, Nodes nod, short difficulty, String
dictionary)
throws RemoteException;
}
============
TreeClient.java
============
package TreeClient;
import java.rmi.*;
import TreeInterface.*;
import TreeServer.Nodes;
public class TreeClient {
TreeInterface rq;
public TreeClient() {
try {
rq = (TreeInterface) Naming.lookup("rmi://localhost/TreeService");
} catch (Exception e) {
e.printStackTrace();
}
}
public Nodes getChild(char c, Nodes nod, short difficulty, String
dictionary) {
try {
return rq.getChild(c, nod, difficulty, dictionary);
} catch (Exception e) {
return (new Nodes());
}
}
}
- 1
- Eclipse, Motif or x86/GTK2 FOR MANDRAKE 9.. Installation problemI have Mandrake 9.0 and I downloaded Motif version of eclipse,
but after I unziped, set the PATH and started:
Eclipse -data /home/mario/Documents/eclipse/
I got a message that startup.jar is not in the same directory
as its executable.
What can be wrong?
What version, Motif or GTK 2 I need for Mandrake 9.0
--
dk
- 3
- Java EE 5 Deployment ToolIs there a deployment tool included with Java EE 5? The previous version had
one in the bin directory of the installation directory. From what I
understand it was pretty helpfull. It's hard to believe it would be
eliminated in an upgrade. Does anyone know how to access it?
--
Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-tools/200608/1
- 3
- ArrayList vs VectorI remember reading a while back about the hazards of using Vector for a
dynamic array. However, in the latest javadocs, I've been reading that
Vector has been "retrofitted" for the Collections and is also synchronized.
Does Vector still have a bad rap? Should I be looking at the ArrayList
instead all the time and ditch Vector? When is a good time to use one over
the other? What are your design questions/decisions? As far as I can tell,
they are pretty much equal, but I'm just learning, so I'm asking what you
people think. Thanks.
- 6
- Performance evaluationHi,
I'm looking for a tool (library, framework, stand-alone application,
whatever) which can compare the performance of two classfiles.
I'm currently developping a (very) small compiler for java and I'd like to
compare different optimisations.
I heard that JMeter was a very good tool, but it seems to me that it's more
appropriate for a server environment which I don't have (and don't need).
So, could you advise me other performance evaluation tools ?
Thanks in advance,
Dasch
- 6
- File CreationHi all
I am now doing a webapplication involving servlets.i want to creat
a dynamic view of an image.the image generated will be of type
BufferedImage and i want to write it into a file.i have created the
file using File class and CreateNewFile()method.but the file is not
created on that location.can anyone tell me why is this so? also tell
me whether wait() method will help to suspend a servlet for sometime?
Thanks in Advance
Regards
Anu
- 8
- [OT] Outsourcing: Real Or Bullshit ?
Do you think all this /outsourcing/ stuff is a bunch of *management*
bullshit to keep salaries down ( and increase their salaries at the
expense of the staff )?
I see demand being really high this year and in the next few.
It's kind of like that bullshit Boeing pulled saying they were going to
build the 7E7 elsewhere and making up a phoney bid process and then
getting Washington to concede all this money and then picking Everett.
--
W '04 <:> Open Source
- 8
- Chart bar 3DHi,
I'm using JFreeChart with very good results but yet have the problem to
generate charts 3d bar where I can set the value of the three axis values
for the visualization.
Can any help me or tell where can I find a freeware library or applet.
Thank you in advance
Markus
- 9
- 10
- JAR files and manifest: Class-PathHi!
I have a base dir, where the application JAR file resides. In this base
dir, there's also a lib dir, nothing special really. In this lib dir are
some user look and feel JAR files, which are supposed to be loaded when
the application is started via the JAR file.
Is there any way to use the Class-Path entry in the manifest, so that it
scans that ./lib directory and loads all the JARs in there, *without
knowing up-front, what these files are*?
I tried
Class-Path: ./lib
Class-Path: ./lib/
Class-Path: ./lib/*
Class-Path: ./lib/*.jar
but none of them work.
Maybe there's some other way, which I don't know of. I simply don't want
to explicitly deploy the JAR's (versions, size etc.).
Anyway, how do I do it?
Karsten
- 10
- Changing contents of signed Jar ?Hi,
If I want to unzip a signed jar and zip it backup after tweaking a file
or two do I have to sign it again ? I'm not sure if the signing process
uses the contents of the jar or not !
Thanks
Steve
- 11
- Servelets or Applets, or ...Hi,
I am relatively new to JAVA but I am trying to build contact management
system which would allow users to create their list of contacts. The contact
data would be in database and security is important issue. I was initially
thinking of using servlets/jsp but than it occurred to me that there might
be other technologies in JAVA which could be better suited to what I need to
accomplish.
The application should allow user to search based on different criteria,
should also provide interface for inputting new contacts. Also it should
allow some level of sharing data in cases it is used on a company level
where many users have common contacts.
If you have a good idea of what technology would work best for my
application please email me justifying your suggestion so that I can
understand where you are coming from.
Any replies would be appreciated.
Thanks,
Don
--
High achievement always takes place in the framework of high expectation.
- Charles F. Kettering
- 15
- cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com )cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
cheap, shox,sneakers ( paypal accept ) ( www.world-wholesaler.com
)
- 16
- Synchronization ProblemHello,
I have created an simple cache class, that allows items to be
added to HashMap. Every public method that uses that map,
is protected with synchronized keyword. The class also contains
an handleNotification method that is called periodically. This method
iterates over the map and refreshes the values in the map. The problem
is that when I test this class with Junit test i get
java.util.ConcurrentModificationException.
I don't understand why, because the handleNotification method is also
synchronized.
I managed to solve the problem using Doug Lea's java.util.concurrent
package, but
I would like to know why my test fails.
Best regards,
- Sami Lakka
Heres the code :
public synchronized void handleNotification() {
try {
Set keys = cache.keySet();
Iterator iter = keys.iterator();
while (iter.hasNext()) {
String tagName = (String) iter.next();
IItem item = backEnd.read(tagName);
cache.put(item.getTagName(), item); // Adds the item to the cache
}
} catch (ItemNotFoundException e) {
e.printStackTrace();
}
public void testHandleNotification() {
MockBackEnd backEnd = new MockBackEnd(3);
Cache cache = new Cache(backEnd);
IItem itemA = new Item("A");
IItem itemB = new Item("B");
IItem itemC = new Item("C");
cache.addItem(itemA);
cache.addItem(itemB);
cache.addItem(itemC);
// (1)
cache.handleNotification(); // ERROR in here.
backEnd.verify(); // Causes the mock to verify that method calls were made
// (2)
int size = cache.getSize();
Assert.assertTrue("Size is incorrect.", size == 3);
Assert.assertTrue("Item's value wasn't modified correctly by the backend",
cache.getItem("A").getValue().equals("MockValue : A"));
Assert.assertTrue("Item's value wasn't modified correctly by the backend",
cache.getItem("B").getValue().equals("MockValue : B"));
Assert.assertTrue("Item's value wasn't modified correctly by the backend",
cache.getItem("C").getValue().equals("MockValue : C"));
}
- 16
- Using JNI in a ServletDoes anyone have experience with using JNI in a servlet under Windows
XP? When trying to do this, it continually fails to load the C
library.
It works when done in a normal Java program, but not when it's a
servlet.
I've seen that others have used JNI in Servlets and had this problem
with Windows, but no explanation on how to work around the problem.
I also have problems running javah. It's not required, but it does
work
as a precursor; if javah doesn't work, the library won't load either.
Here's a quick rundown of the setup and errors. I'ms using Java 1.5
with the Sun App Server on a Windows XP SP2 system, compiling the C
code
with gcc v3.3.3. CLASSPATH is set to inculde all directories the files
and libs reside.
When running the servlet, the following errors show up in the App
Server
log file:
Logger: javax.enterprise.system.stream.err
Name-Value Pairs: _ThreadID=29;
Message ID: Link error
Complete Message java.lang.UnsatisfiedLinkError: no jni_if in
java.library.path
Logger: javax.enterprise.system.stream.err
Name-Value Pairs: _ThreadID=12;
Message ID:
Complete Message Exception in thread "Thread-79"
Logger: javax.enterprise.system.stream.err
Name-Value Pairs: _ThreadID=30;
Message ID: java.lang.UnsatisfiedLinkError
Complete Message getXppParm
at xpserv.XppIf.getXppParm(Native Method)
at xpserv.XppIf.run(XppIf.java:61)
Running javah gets the following error:
bash-2.05b$ javah -jni XppIf
error: cannot access XppIf
bad class file: C:\BioSpring\xpserv\XppIf.class
class file contains wrong class: xpserv.XppIf
Please remove or make sure it appears in the correct subdirectory
of the classpath.
com.sun.tools.javac.util.Abort
:
Running javah with the package name included in the name still fails:
bash-2.05b$ javah -jni xpserv.XppIf
error: cannot access xpserv.XppIf
file xpserv\XppIf.class not found
javadoc: error - Class xpserv.XppIf not found.
Error: No classes were specified on the command line. Try -help.
If anybody has had any success in using JNI with a servlet, I would to
hear how they configured it to work.
|
| Author |
Message |
Steve G

|
Posted: 2006-8-5 0:00:00 |
Top |
java-programmer, Internet web app - sending .PDF or .PS output direct to user printer
I have a real brain-teaser here (it may not even be possible). We have
a web app, it will run across the INTERnet (not intra). The app will
generate reports. Currently what we do is:
1. generate the report (over on the server, obviously) as a .pdf file
2. once done, we forward the user to the URL of the .PDF file
3. Since IE knows what to do with filetype .PDF, he kicks off Adobe
Reader and loads the .PDF in the new window.
For non-technology-related reasons, we can't do it this way (the user
must not be allowed to print the output more than once, and of course
once we dump them into Adobe Reader they can hit the Print button all
day, no way for us to stop them).
So we need to figure out how to take this output (we're generating it
with FOP) and dump it out to the user's printer (in other words, we
don't display the file, thereby allowing them to print multiple times;
we simply print it). I'm thinking with the code and the output file
over on the app server, there really isn't a way for me to direct this
output to the printer of a user who is running our app through IE. Or
am I wrong? If I'm right, can anyone think of another way to achieve
this result? Thanks as always.
|
| |
|
| |
 |
Andrew Thompson

|
Posted: 2006-8-5 0:16:00 |
Top |
java-programmer >> Internet web app - sending .PDF or .PS output direct to user printer
Steve G wrote:
...
> For non-technology-related reasons, we can't do it this way (the user
> must not be allowed to print the output more than once, and of course...
..as soon as I have a single hard copy of it,
I can scan it and upload the scan to the internet..
Andrew T.
|
| |
|
| |
 |
Steve G

|
Posted: 2006-8-5 0:41:00 |
Top |
java-programmer >> Internet web app - sending .PDF or .PS output direct to user printer
the business process is more complex than that, so this is not an
issue. We just need to prevent them from generating two original copies
of the same generated .PDF file.
Andrew Thompson wrote:
> Steve G wrote:
> ...
> > For non-technology-related reasons, we can't do it this way (the user
> > must not be allowed to print the output more than once, and of course...
>
> ..as soon as I have a single hard copy of it,
> I can scan it and upload the scan to the internet..
>
> Andrew T.
|
| |
|
| |
 |
Matt Humphrey

|
Posted: 2006-8-5 1:03:00 |
Top |
java-programmer >> Internet web app - sending .PDF or .PS output direct to user printer
"Steve G" <email***@***.com> wrote in message
news:email***@***.com...
>I have a real brain-teaser here (it may not even be possible). We have
> a web app, it will run across the INTERnet (not intra). The app will
> generate reports. Currently what we do is:
> 1. generate the report (over on the server, obviously) as a .pdf file
> 2. once done, we forward the user to the URL of the .PDF file
> 3. Since IE knows what to do with filetype .PDF, he kicks off Adobe
> Reader and loads the .PDF in the new window.
>
> For non-technology-related reasons, we can't do it this way (the user
> must not be allowed to print the output more than once, and of course
> once we dump them into Adobe Reader they can hit the Print button all
> day, no way for us to stop them).
>
> So we need to figure out how to take this output (we're generating it
> with FOP) and dump it out to the user's printer (in other words, we
> don't display the file, thereby allowing them to print multiple times;
> we simply print it). I'm thinking with the code and the output file
> over on the app server, there really isn't a way for me to direct this
> output to the printer of a user who is running our app through IE. Or
> am I wrong? If I'm right, can anyone think of another way to achieve
> this result? Thanks as always.
I'm going to assume for the moment that it's possible for your web app via
it's returned page and a suitably privileged applet (including helper JNI or
Active-X control) to directly invoke the user's printer, bypassing even the
standard dialog box because it asks for the number of copies and can be
controlled from console.
Instead, let me ask how are you going to prevent the user from sticking the
output into a copier? Although I realize that documents can be printed in
such a way that they cannot be properly photocopied, I doubt that most
users' printers produce such output. This also doesn't consider the very
common cases where the printer jams or otherwise fails and the document must
be reprinted.
I'm asking this because I have seen too many cases where management has
insisted on complex, draconian restrictions that are utterly worthless. I
think the answer to your question is that it is possible using some very
sophisticated companion technology and a great deal of trust on the part of
the user, but that it seems pointless to do so.
Matt Humphrey email***@***.com http://www.iviz.com/
|
| |
|
| |
 |
Roland de Ruiter

|
Posted: 2006-8-5 2:07:00 |
Top |
java-programmer >> Internet web app - sending .PDF or .PS output direct to user printer
On 4-8-2006 18:40, Steve G wrote:
> Andrew Thompson wrote:
>> Steve G wrote:
>> ...
>>> For non-technology-related reasons, we can't do it this way (the user
>>> must not be allowed to print the output more than once, and of course...
>> ..as soon as I have a single hard copy of it,
>> I can scan it and upload the scan to the internet..
>>
>> Andrew T.
>
> the business process is more complex than that, so this is not an
> issue. We just need to prevent them from generating two original copies
> of the same generated .PDF file.
I have doubts about the feasibility of this. For instance the customer
could have set up a printer queue which automatically prints several
copies, or to several printers. And what should the customer do when his
printer has a paper jam or runs out of ink: (must he/she go all the way
and request for a new copy of the document? sounds like loosing your
passport or drivers license).
However, having said that you may want investigate more on the following
items:
1) PDF allows you to secure your document; open a PDF file in Acrobat
Reader and see menu File > Document Properties > Security. Maybe it can
be setup to allow one copy only. Don't know how to define this in the
PDF code, though.
2) Javascript document.print() allows to print a frame, maybe a hidden
frame with the PDF document?
3) Use (signed) applet to print your document.
4) Create a custom application which allows to print a single copy of a
file on that platform (ala AcroRead, but then AcroPrint for instance).
Each customer has to install this application on his/her computer.
Deliver your document from your appserver to the customer's browser with
a custom extension and MIME type. The browser should trigger your
application and print the document.
[If you want your customer to have a single copy only, it's probably
better to print the document yourself and send it to him/her by snail
mail. Even then he/she could copy it on a high quality copier to make it
look like a first print.]
--
Regards,
Roland
|
| |
|
| |
 |
Oliver Wong

|
Posted: 2006-8-5 3:06:00 |
Top |
java-programmer >> Internet web app - sending .PDF or .PS output direct to user printer
"Matt Humphrey" <email***@***.com> wrote in message
news:email***@***.com...
>
> "Steve G" <email***@***.com> wrote in message
> news:email***@***.com...
>>I have a real brain-teaser here (it may not even be possible). We have
>> a web app, it will run across the INTERnet (not intra). The app will
>> generate reports. Currently what we do is:
>> 1. generate the report (over on the server, obviously) as a .pdf file
>> 2. once done, we forward the user to the URL of the .PDF file
>> 3. Since IE knows what to do with filetype .PDF, he kicks off Adobe
>> Reader and loads the .PDF in the new window.
>>
>> For non-technology-related reasons, we can't do it this way (the user
>> must not be allowed to print the output more than once, and of course
>> once we dump them into Adobe Reader they can hit the Print button all
>> day, no way for us to stop them).
>>
>> So we need to figure out how to take this output (we're generating it
>> with FOP) and dump it out to the user's printer (in other words, we
>> don't display the file, thereby allowing them to print multiple times;
>> we simply print it). I'm thinking with the code and the output file
>> over on the app server, there really isn't a way for me to direct this
>> output to the printer of a user who is running our app through IE. Or
>> am I wrong? If I'm right, can anyone think of another way to achieve
>> this result? Thanks as always.
>
> I'm going to assume for the moment that it's possible for your web app via
> it's returned page and a suitably privileged applet (including helper JNI
> or Active-X control) to directly invoke the user's printer, bypassing even
> the standard dialog box because it asks for the number of copies and can
> be controlled from console.
>
> Instead, let me ask how are you going to prevent the user from sticking
> the output into a copier? Although I realize that documents can be
> printed in such a way that they cannot be properly photocopied, I doubt
> that most users' printers produce such output. This also doesn't consider
> the very common cases where the printer jams or otherwise fails and the
> document must be reprinted.
>
> I'm asking this because I have seen too many cases where management has
> insisted on complex, draconian restrictions that are utterly worthless. I
> think the answer to your question is that it is possible using some very
> sophisticated companion technology and a great deal of trust on the part
> of the user, but that it seems pointless to do so.
I have a device driver on my computer which masquerades as a printer,
but actually the output is stored in a file on my harddrive. I'd simply tell
your webapp to print to my virtual printer, and I'd have an exact digital
copy of the original document, which can be printed unlimited times.
- Oliver
|
| |
|
| |
 |
Steve G

|
Posted: 2006-8-5 3:33:00 |
Top |
java-programmer >> Internet web app - sending .PDF or .PS output direct to user printer
>>If you want your customer to have a single copy only, it's probably
better to print the document yourself and send it to him/her by snail
mail.
Sadly, it has to be printed and in the customer's hands then and there,
so it can be signed in real-time as part of the business process.
Roland de Ruiter wrote:
> On 4-8-2006 18:40, Steve G wrote:
> > Andrew Thompson wrote:
> >> Steve G wrote:
> >> ...
> >>> For non-technology-related reasons, we can't do it this way (the user
> >>> must not be allowed to print the output more than once, and of course...
> >> ..as soon as I have a single hard copy of it,
> >> I can scan it and upload the scan to the internet..
> >>
> >> Andrew T.
> >
> > the business process is more complex than that, so this is not an
> > issue. We just need to prevent them from generating two original copies
> > of the same generated .PDF file.
> I have doubts about the feasibility of this. For instance the customer
> could have set up a printer queue which automatically prints several
> copies, or to several printers. And what should the customer do when his
> printer has a paper jam or runs out of ink: (must he/she go all the way
> and request for a new copy of the document? sounds like loosing your
> passport or drivers license).
>
> However, having said that you may want investigate more on the following
> items:
> 1) PDF allows you to secure your document; open a PDF file in Acrobat
> Reader and see menu File > Document Properties > Security. Maybe it can
> be setup to allow one copy only. Don't know how to define this in the
> PDF code, though.
> 2) Javascript document.print() allows to print a frame, maybe a hidden
> frame with the PDF document?
> 3) Use (signed) applet to print your document.
> 4) Create a custom application which allows to print a single copy of a
> file on that platform (ala AcroRead, but then AcroPrint for instance).
> Each customer has to install this application on his/her computer.
> Deliver your document from your appserver to the customer's browser with
> a custom extension and MIME type. The browser should trigger your
> application and print the document.
>
> [If you want your customer to have a single copy only, it's probably
> better to print the document yourself and send it to him/her by snail
> mail. Even then he/she could copy it on a high quality copier to make it
> look like a first print.]
> --
> Regards,
>
> Roland
|
| |
|
| |
 |
Steve G

|
Posted: 2006-8-5 3:34:00 |
Top |
java-programmer >> Internet web app - sending .PDF or .PS output direct to user printer
>>>Instead, let me ask how are you going to prevent the user from sticking the
output into a copier?
I asked the same thing. Thankfully, that's a business-controls issue
and not an app issue, so it's not our problem.
Matt Humphrey wrote:
> "Steve G" <email***@***.com> wrote in message
> news:email***@***.com...
> >I have a real brain-teaser here (it may not even be possible). We have
> > a web app, it will run across the INTERnet (not intra). The app will
> > generate reports. Currently what we do is:
> > 1. generate the report (over on the server, obviously) as a .pdf file
> > 2. once done, we forward the user to the URL of the .PDF file
> > 3. Since IE knows what to do with filetype .PDF, he kicks off Adobe
> > Reader and loads the .PDF in the new window.
> >
> > For non-technology-related reasons, we can't do it this way (the user
> > must not be allowed to print the output more than once, and of course
> > once we dump them into Adobe Reader they can hit the Print button all
> > day, no way for us to stop them).
> >
> > So we need to figure out how to take this output (we're generating it
> > with FOP) and dump it out to the user's printer (in other words, we
> > don't display the file, thereby allowing them to print multiple times;
> > we simply print it). I'm thinking with the code and the output file
> > over on the app server, there really isn't a way for me to direct this
> > output to the printer of a user who is running our app through IE. Or
> > am I wrong? If I'm right, can anyone think of another way to achieve
> > this result? Thanks as always.
>
> I'm going to assume for the moment that it's possible for your web app via
> it's returned page and a suitably privileged applet (including helper JNI or
> Active-X control) to directly invoke the user's printer, bypassing even the
> standard dialog box because it asks for the number of copies and can be
> controlled from console.
>
> Instead, let me ask how are you going to prevent the user from sticking the
> output into a copier? Although I realize that documents can be printed in
> such a way that they cannot be properly photocopied, I doubt that most
> users' printers produce such output. This also doesn't consider the very
> common cases where the printer jams or otherwise fails and the document must
> be reprinted.
>
> I'm asking this because I have seen too many cases where management has
> insisted on complex, draconian restrictions that are utterly worthless. I
> think the answer to your question is that it is possible using some very
> sophisticated companion technology and a great deal of trust on the part of
> the user, but that it seems pointless to do so.
>
> Matt Humphrey email***@***.com http://www.iviz.com/
|
| |
|
| |
 |
Eric Sosman

|
Posted: 2006-8-5 4:22:00 |
Top |
java-programmer >> Internet web app - sending .PDF or .PS output direct to user printer
Steve G wrote On 08/04/06 12:00,:
> I have a real brain-teaser here (it may not even be possible). We have
> a web app, it will run across the INTERnet (not intra). The app will
> generate reports. Currently what we do is:
> 1. generate the report (over on the server, obviously) as a .pdf file
> 2. once done, we forward the user to the URL of the .PDF file
> 3. Since IE knows what to do with filetype .PDF, he kicks off Adobe
> Reader and loads the .PDF in the new window.
>
> For non-technology-related reasons, we can't do it this way (the user
> must not be allowed to print the output more than once, and of course
> once we dump them into Adobe Reader they can hit the Print button all
> day, no way for us to stop them).
>
> So we need to figure out how to take this output (we're generating it
> with FOP) and dump it out to the user's printer (in other words, we
> don't display the file, thereby allowing them to print multiple times;
> we simply print it). I'm thinking with the code and the output file
> over on the app server, there really isn't a way for me to direct this
> output to the printer of a user who is running our app through IE. Or
> am I wrong? If I'm right, can anyone think of another way to achieve
> this result? Thanks as always.
(Replying to the original because repeated top-posting
intermixed with bottom-posting has made the follow-ups too
difficult for my tired old brain to comprehend.)
I think you're doomed. The closest you can come may be
to use a special printer with cryptographic capabilities:
You'd ship encrypted bits over the wire and forward them (still
encrypted) to the printer, where they'd be decrypted just as
close to the paper as your engineers can manage. Even then,
a sufficiently determined user could try attaching probes to
the outputs of the crypto device.
If you need to let the users provide their own computers
and their own printers, it is going to be impossible to assert
complete control over the printing environment. It is a trivial
matter to install a "printer" that prints to a file, from which
the ordinary local print services can then make as many hard
and soft copies as the user desires.
You might write your own printer driver, something that
prints only to a real physical printer and cannot be fooled
into printing to a file. It'd use all the self-authentication
techniques in the book to guard against tampering -- but even
if it's sure the bits are going across an actual physical cable,
it's never going to be sure they're being printed and forgotten
rather than being recorded for later multiple playback.
What are these documents you're printing? Money? Most
national governments discourage free-lancing ...
--
email***@***.com
|
| |
|
| |
 |
Patricia Shanahan

|
Posted: 2006-8-5 13:00:00 |
Top |
java-programmer >> Internet web app - sending .PDF or .PS output direct to user printer
Steve G wrote:
>>> If you want your customer to have a single copy only, it's probably
> better to print the document yourself and send it to him/her by snail
> mail.
>
> Sadly, it has to be printed and in the customer's hands then and there,
> so it can be signed in real-time as part of the business process.
Who gets to keep the signed copy? If the customer, they can make all
sorts of copies afterwards, including scanning and editing out the
signature to get a clean copy.
If the customer does not get to keep the original, the whole process is
broken. I try to get a copy of everything I sign. If I could not get a
copy, you would not get a signature. Most business processes that
require a signature are positively designed to generate a copy for the
customer to keep.
If you don't give the user access to the print dialog, to select the
printer and set parameters, you could get into all sorts of difficulties
such as printing on special paper. If you do give access to the print
dialog, what stops the customer from increasing the number of copies, or
doing a print to file?
I have at least two installed "printers" that would give you problems.
One is an "MS Publisher Imagesetter". Its idea of printing is to write a
postscript file to disk.
The other is "Print to FedEx Kinko's". It has an additional dialog,
after the document appears to have been printed from the application's
point of view, that asks, among other things, how many copies to print.
That is the printer I would pick if I wanted 500 copies of your document.
Patricia
|
| |
|
| |
 |
Matt Humphrey

|
Posted: 2006-8-6 4:00:00 |
Top |
java-programmer >> Internet web app - sending .PDF or .PS output direct to user printer
"Steve G" <email***@***.com> wrote in message
news:email***@***.com...
>>>>Instead, let me ask how are you going to prevent the user from sticking
>>>>the
> output into a copier?
>
> I asked the same thing. Thankfully, that's a business-controls issue
> and not an app issue, so it's not our problem.
Well, that's typical. On a standard (e.g. Windows / Unix / Sun) type
machine you cannot control how or to where the user prints--the standard
process has too many holes over which you have no control. You could
engineer a non-standard process with custom printers, software and
authentication management along the lines of
http://www.acsac.org/sac-tac/wisac00/tue1330.abrams.pdf including custom
ink and paper to make photocopying apparent, all of which would be
incredibly expensive.
Good luck with your project.
Matt Humphrey email***@***.com http://www.iviz.com/
|
| |
|
| |
 |
Tarkin

|
Posted: 2006-8-7 1:21:00 |
Top |
java-programmer >> Internet web app - sending .PDF or .PS output direct to user printer
Steve G wrote:
> >>If you want your customer to have a single copy only, it's probably
> better to print the document yourself and send it to him/her by snail
> mail.
>
> Sadly, it has to be printed and in the customer's hands then and there,
> so it can be signed in real-time as part of the business process.
>
> Roland de Ruiter wrote:
> > On 4-8-2006 18:40, Steve G wrote:
> > > Andrew Thompson wrote:
> > >> Steve G wrote:
> > >> ...
> > >>> For non-technology-related reasons, we can't do it this way (the user
> > >>> must not be allowed to print the output more than once, and of course...
> > >> ..as soon as I have a single hard copy of it,
> > >> I can scan it and upload the scan to the internet..
> > >>
> > >> Andrew T.
> > >
> > > the business process is more complex than that, so this is not an
> > > issue. We just need to prevent them from generating two original copies
> > > of the same generated .PDF file.
> > I have doubts about the feasibility of this. For instance the customer
> > could have set up a printer queue which automatically prints several
> > copies, or to several printers. And what should the customer do when his
> > printer has a paper jam or runs out of ink: (must he/she go all the way
> > and request for a new copy of the document? sounds like loosing your
> > passport or drivers license).
> >
> > However, having said that you may want investigate more on the following
> > items:
> > 1) PDF allows you to secure your document; open a PDF file in Acrobat
> > Reader and see menu File > Document Properties > Security. Maybe it can
> > be setup to allow one copy only. Don't know how to define this in the
> > PDF code, though.
> > 2) Javascript document.print() allows to print a frame, maybe a hidden
> > frame with the PDF document?
> > 3) Use (signed) applet to print your document.
> > 4) Create a custom application which allows to print a single copy of a
> > file on that platform (ala AcroRead, but then AcroPrint for instance).
> > Each customer has to install this application on his/her computer.
> > Deliver your document from your appserver to the customer's browser with
> > a custom extension and MIME type. The browser should trigger your
> > application and print the document.
> >
> > [If you want your customer to have a single copy only, it's probably
> > better to print the document yourself and send it to him/her by snail
> > mail. Even then he/she could copy it on a high quality copier to make it
> > look like a first print.]
> > --
> > Regards,
> >
> > Roland
Shift the responsibility over to your legal department. Add verbage to
the effect
that there must only exist 1 copy of the document, singed by your end
user,
else thecontract/agreement/whatever is null, and you get to seize his
business assets or some such measure (I'm joking, of course).
You could look into digital signing ala the (US) Federal Government
FAFSA
pins.
Good luck,
Tarkin
|
| |
|
| |
 |
Patricia Shanahan

|
Posted: 2006-8-7 1:51:00 |
Top |
java-programmer >> Internet web app - sending .PDF or .PS output direct to user printer
Tarkin wrote:
> Steve G wrote:
>>>> If you want your customer to have a single copy only, it's probably
>> better to print the document yourself and send it to him/her by snail
>> mail.
>>
>> Sadly, it has to be printed and in the customer's hands then and there,
>> so it can be signed in real-time as part of the business process.
>>
>> Roland de Ruiter wrote:
>>> On 4-8-2006 18:40, Steve G wrote:
>>>> Andrew Thompson wrote:
>>>>> Steve G wrote:
>>>>> ...
>>>>>> For non-technology-related reasons, we can't do it this way (the user
>>>>>> must not be allowed to print the output more than once, and of course...
>>>>> ..as soon as I have a single hard copy of it,
>>>>> I can scan it and upload the scan to the internet..
>>>>>
>>>>> Andrew T.
>>>> the business process is more complex than that, so this is not an
>>>> issue. We just need to prevent them from generating two original copies
>>>> of the same generated .PDF file.
>>> I have doubts about the feasibility of this. For instance the customer
>>> could have set up a printer queue which automatically prints several
>>> copies, or to several printers. And what should the customer do when his
>>> printer has a paper jam or runs out of ink: (must he/she go all the way
>>> and request for a new copy of the document? sounds like loosing your
>>> passport or drivers license).
>>>
>>> However, having said that you may want investigate more on the following
>>> items:
>>> 1) PDF allows you to secure your document; open a PDF file in Acrobat
>>> Reader and see menu File > Document Properties > Security. Maybe it can
>>> be setup to allow one copy only. Don't know how to define this in the
>>> PDF code, though.
>>> 2) Javascript document.print() allows to print a frame, maybe a hidden
>>> frame with the PDF document?
>>> 3) Use (signed) applet to print your document.
>>> 4) Create a custom application which allows to print a single copy of a
>>> file on that platform (ala AcroRead, but then AcroPrint for instance).
>>> Each customer has to install this application on his/her computer.
>>> Deliver your document from your appserver to the customer's browser with
>>> a custom extension and MIME type. The browser should trigger your
>>> application and print the document.
>>>
>>> [If you want your customer to have a single copy only, it's probably
>>> better to print the document yourself and send it to him/her by snail
>>> mail. Even then he/she could copy it on a high quality copier to make it
>>> look like a first print.]
>>> --
>>> Regards,
>>>
>>> Roland
>
> Shift the responsibility over to your legal department. Add verbage to
> the effect
> that there must only exist 1 copy of the document, singed by your end
> user,
> else thecontract/agreement/whatever is null, and you get to seize his
> business assets or some such measure (I'm joking, of course).
>
> You could look into digital signing ala the (US) Federal Government
> FAFSA
> pins.
>
> Good luck,
> Tarkin
>
The more the document looks like a contract, binding the customer to do,
or not do, specified things, the less likely it is that it will get
signed without multiple copies existing.
For example, one copy needs to go to the customer's legal department for
pre-signature approval. That copy will be retained, so that legal has a
record of what they approved.
Patricia
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- Windows install locations J2SE and TomcatI'm installing J2SE, J2EE and Tomcat (and other Servlet Containers )
I hope I don't run into any conflicts because I notice J2EE comes with
the AppServer, and I'll also want to use Tomcat and possibly even try
WebSphere.
I'm wary of the standard location, with a space in the path
....\Program Files\....
and I can only forsee trouble from this. Any comments or suggestions
?
I already have it installed there, and I think it would be easy to move
( I don't even have JAVAHOME set yet )
Would I need to use uninstall or can I just move the whole dir
structure, below
jdk1.5.0_06 and then set up my path, env var's etc. ??
I don't have any other pressing ? at this point, but I'll be exploring
Tomcat too.
I know using it as a standalone ( on port 8080 ) is a breeze, but I'm
also curious if I can get the connectors to work, in conjunction with
Apache Server ( any current references ? )
I know the connectors have been improved over the last 5 years, just
want the current setup.
TIA
- 2
- J2EE File Event PatternI have a design issue that I was hoping that this list could assist me
with:
I need to create a File Event Handler that is J2EE compliant.
The basic requirements are:
- Detect the arrival of a file on a particular path (including
file masking patterns)
- Recognize the type of file
- Route either data stream or file reference to an appropriate
handler. The handler will process the contents of the file.
- Election of an instance to handle the file (the file will
arrive on a shared drive that all instances of the app will see) to
prevent multiple instances of the same file being processed
Anyone have any good pointers or patterns to use?
Thanks,
Jeff Harman
- 3
- Filling a bitmap image with java 1.3.1I need to fill parts of a bitmap, representing European country's
electional cantons, with different colors, one per canton. I would
like to know what would be the best way to do it on a pure java awt
environment.
Thanks a lot.
- 4
- houghtransformationHello,
I'm looking for sourcecode for a houghtransformation (the one for line
detection). Has anyone somethign like that?
regards, Johannes Elsinghorst
- 5
- Cool new websiteBrand new site.
Loads of great stuff
Free membership and full access
Check out Yapooh!
http://www.yapooh.org
- 6
- Problem with Javadoc out of memory in WSAD 5.1.2Good morning,
we are using WSAD version 5.1.2 , now we need to create the javadoc of
our project but during he creation we have the following error :
javadoc: java.lang.OutOfMemoryError: Please increase memory.
For example, on the Sun Classic or HotSpot VMs, add the option -J-Xmx
such as -J-Xmx32m.
if I insert this line
C:\Programmi\Java\jre1.4\bin\javadoc.exe -J-Xmx32m
in the Preference --> Java --> Javadoc Menu we have the message
"javadoc command not exist"
how we could solve the problem using WSAD ??
Many thanks
Antonio
www.etantonio.it/en
- 7
- Need help calling java classesHi. I am a beginner in java so i may sound like a total prat here,
but here goes:
I have been given my university coursework to do. I have to make a
program whereby a customer ordering boxes is asked what attributes of
a box he/she wants from list we have been given, then work out a price
for the box. Anyhow, we have six box types, so a class for each, an
Input class for reading input from the keyboard and a main class.
now, obviously the program starts in main, but i need to go to the
Input class as soon as the program starts, so i can put in some info
from the keyboard, but my tutor says that we have to separate the main
and input classes(whereas i can see it being easier to shove it all in
the main class), so i need to know this: How do you call one class
from another in java? I know how to call methods in one class:
methodname();, but i need to access the input class from the main
class. Is this possible or am i barking up the wrong tree? Help is
much appreciated.
Thanks
----------
Stuart
- 8
- How to determine subclasses of a classHello,
I have a situation where all classes that implement a certain
interface are candidates to have a specific annotation. Now I want to
obtain all classes that implement that interface and select those that
have the anotation of interest. Question is how this can be done.
There seems to be no way you can ask a class for its subclasses (as
f.e. in Smalltalk), which would make things realy easy. Any ideas how
this can be solved? Do I have to write my own class loader? Hopefully
not ...
Thanks for any hints.
Cheers, Oliver
- 9
- This JComboBox does not resizes itselfHello.
By the program below, I wanted to change the message "a" on the
JComboBox
left side into "a-changed" by clicking the "change" button.
But all I saw was "..." because the JComboBox does not resizes itself.
How can I resize the JComboBox?
Thank you in advance.
----
import java.awt.Container;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JFrame;
public class ChangeItem extends JFrame {
public static void main(String[] args) {
new ChangeItem();
}
private ChangeItem() {
setSize(300, 100);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Container cp = getContentPane();
cp.setLayout(new FlowLayout());
Combo combo = new Combo();
cp.add(combo);
cp.add(combo.new XButton());
setVisible(true);
}
private static class Combo extends JComboBox {
private Combo() {
addItem(new Item("a"));
}
private class XButton extends JButton {
private XButton() {
super("change");
}
protected void fireActionPerformed(ActionEvent e) {
Item i = (Item) getSelectedItem();
i.displayName = i.displayName == "a-changed" ? "a"
: "a-changed";
Combo.this.repaint();
}
}
}
private static class Item {
private String displayName;
private Item(String displayName) {
this.displayName = displayName;
}
public String toString() {
return displayName;
}
}
}
- 10
- Can I deploy Crystal XI Java Report Component on Linux ?Hi,
We are developing J2EE application and plan to deploy it on Oracle Apps
Server on Linux, we use Crystal Report XI as report tools.
We use Java Report Component for integration to jsp page.
The question is : can we deploy Crystal Report XI into Apps Server on
Linux ?
Thank you for your help,
xtanto
- 11
- Open Document Format / Rich Text Format Editor in Javahi all,
I'm looking for a java class or a set of java classes with which I can
display ( and edit ) a ODF-Document (or a RTF-Document).
One requirement is that it is possible to display different fonts,
text size, text color, text-decoration, images, tables with or without
borders/colors , links, background color, indent, numbering, bullets
etc.
I know about the RTFEditorKit and the HTMLEditorKit from the swing
packages ...and of their limitations.
As my application will use SWT (&RCP), I'm looking for a "better"
alternative. Does anyone of you know which classes could be of
interest for me?
Thanx for your help
Dominik
- 12
- JBoss,integrated Tomcat,Mysqltsstsc wrote:
> I am new to J2ee, and have difficulty deploying them to JBOSS, can
> anyone help?
>
> --
> Posted via http://dbforums.com
I'm started programming in J2EE for several months ago now.
I'm using Eclipse (eclipse.org) as IDE.
There's a plugin available for free that helps you starting a J2EE
project. You can find the plugin at
http://sourceforge.net/projects/lomboz. You can deploy your project to
several aplication servers including JBOSS/Tomcat.
That's the way I started after a bit of reading.
Good luck,
Marcel
- 13
- Executable Jars - why are they so rigid with classpaths ?If someone gives me a jar file with a Main in it and some supporting
library jar files, the Manifest.mf will contain information on what
the Main class is and also the location of supporting library jars
RELATIVE to the application jar file. But once I get the jar, I want
to move the supporting jar files to some other convenient directory.
But If I do that, the application jar file will not be able to locate
the supporting classes since the Manifest file has the supporting jar
paths pretty much HARDCODED ! How do I override the hardcode and give
it a different search path so that it can start looking at the new
directory ? This rigidity makes it so painful during times of
distribution. Please help.
- 14
- short-circuit operators - part of the spec?My book says the following about && and ||
(see below dashed line.) And I wonder if this
is built into the language or an artifact of the
compiler. Previously (in my youth) we were
taught that depending on the compiler to skip
evaluating stuff was dangerous and bad for
maintenance.
----------------------------
known as the short-circuit logical operators:
&& short-circuit AND
|| short-circuit OR
The short-circuit feature of the && operator is that it doesn't waste its
time on
pointless evaluations. A short-circuit && evaluates the left side of the
operation first
(operand one), and if operand one resolves to false, the && operator doesn't
bother
looking at the right side of the equation (operand two). The operator
already knows
that the complete expression can't possibly be true, since one operand has
already
proven to be false.
- 15
- How to obtain the right 256 color pallette for the blend of two colors...?Hi all,
I have the following problem: I need to generate dynamically an image with
IndexColorModel (256 color PNG) of a text over a solid color. The parameters
are color foreground for the text and background. The problem is how to
select the most appropriate 256 color pallette for the text to look best. I
mean the text should be antialiased and any other hint applied. For example,
If I pick black on yellow image I think it should have all the tones of
black and yellow. Any red color will be useless and it will be lost space on
the reduced 256 color pallette. But in this example the red could be a good
choice for the transparent color...
How to solve this problem?
I guess I need some background on colors (theory of colors?) Any hint is
welcomed.
Thanks in advance
Sammy
|
|
|