Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Printing Data

 
Meet Gaurav
Ranch Hand
Posts: 492
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1337
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 492
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1337
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 492
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Am sorry.. Something like this....

 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic