my dog learned polymorphism*
The moose likes Java in General and the fly likes Printing Data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Printing Data" Watch "Printing Data" New topic
Author

Printing Data

Meet Gaurav
Ranch Hand

Joined: Oct 08, 2008
Posts: 492
Hi,

We have a Java enabled printer. That doesn't have any driver..

Is there any way to communicate with that printer using the IP and port from a java program...

Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
What does "Java enabled" mean for a printer? What kind of printer is this? What does the manufacturer's documentation say?
Meet Gaurav
Ranch Hand

Joined: Oct 08, 2008
Posts: 492
Am checking with the documentation.. But in the mean time I got some sample code to test that

DeviceAgentMBean da = null;
JMXConnector jmxc = null;
try {
JMXServiceURL url = new JMXServiceURL("service:jmx:rmi:///jndi/rmi://localhost:8080/Data");
jmxc = JMXConnectorFactory.connect(url, null);
// Get MBean manage service.
MBeanServerConnection mbsc = jmxc.getMBeanServerConnection();
}

But someone please help me how to get the JMXService URL...
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
What does this code have to do with printing? It seems to connect to a process running on the local machine, not some printer ... ?
Meet Gaurav
Ranch Hand

Joined: Oct 08, 2008
Posts: 492
Am sorry.. Something like this....

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Printing Data
 
Similar Threads
print in matrix printer
JAVA(TM) printer.
Printing issue
Discover Network Printers
Printing API Question