Posts

Showing posts from 2008

fedora updations--

use the following link , which helps you to install or update the missing plugins in the linux.... http://fedoraproject.org/wiki/YumUpgradeFaq

to stop the firewall in linux(fedora)

service iptables stop-------> this is used to stop the firewall service iptables start-------> this is used to start the firewall.

java references

se the below link to get idea on the particular concept http://www.cafeconleche.org/books/xmljava/chapters/ch10s03.html

mysqlCommands

see this link for mysql basic commands.. which is used in the command prompt http://www.pantz.org/software/mysql/mysqlcommands.html

icon image in JDialog

this one line code is enough to load ur image and it displays at title bar of ur dialog.... it will changes the default coffee image in the dialog and place your own images there..... dialogObj.setIconImage(new ImageIcon(getClass().getResource("/baby.gif")).getImage());

ping CDC device in to Machine(our desktop or notebook)

step 1: config the device into system and vice versa this configuration in linux machine 1. ifconfig usb0 ip1 netmask maskid (this at linux machine) - machine -1 eg:- ifconfig 10.100.100.101 usb0 netmask 255.255.255.0 2. ifconfig usb0 ip2 netmask maskid (this is at device machine) - machine 2 eg:- ifconfig 10.100.100.102 usb0 netmask 255.255.255.0 Call webservice private DataGenerator() throws Exception { ResourceBundle bundle = ResourceBundle.getBundle("configuration"); URL url = new URL(bundle.getString("Delegator_Service_WSDL")); soapHandler = new SOAPMessageHandler(url); } /** * Constructor for SOAPMessageHandler. It takes the endpoint URL as a * parameter. * * @param endPoint - * The service endpoint URL. */ public SOAPMessageHandler(URL endPoint) { this.endPoint = endPoint; StringBuffer sb = new StringBuffer(" ") .append( " ") .append(" "); soapEnvBegin = sb.toString(); soapEn...

creating webservice using wsgen

create your interface and implement your interface with your webservice class  and create your class then open command prompt and select ur class...  1. to create jaxws--- wsgen -cp yourpackage.implementationclass  eg. wsgen - cp com.test.ws.Sampleimpl  it will create artifacts then create service name and then create the client class 2. wsimport -p package.implementationclass wsdl eg. wsimport -p com.test.ws.Sampleimpl http://localhost:8080/SampleWs/SampleWsService?wsdl

SWT Sample

this sample code has some controls which has used in Devices, Swt controls are Text, Label,combobox,Slider,Scale,GridLayout,GridData,Composite,Shell... package pack; import org.eclipse.swt.SWT; import org.eclipse.swt.custom.ScrolledComposite; import org.eclipse.swt.events.SelectionAdapter; import org.eclipse.swt.events.SelectionEvent; import org.eclipse.swt.graphics.Rectangle; import org.eclipse.swt.layout.FillLayout; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Button; import org.eclipse.swt.widgets.Combo; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Group; import org.eclipse.swt.widgets.Label; import org.eclipse.swt.widgets.List; import org.eclipse.swt.widgets.MessageBox; import org.eclipse.swt.widgets.Scale; import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.widgets.Slider; import org.eclipse.swt.widgets.Text; public class SWTSampleTest1 {...