Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

java webservice ·þÎñÆ÷´úÂë»ñÈ¡ÇëÇó¿Í»§¶ËµÄIPµØÖ·

 package test;
import javax.annotation.Resource;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.xml.ws.WebServiceContext;
import javax.xml.ws.handler.MessageContext;
@javax.jws.WebService(targetNamespace = "http://test/", serviceName = "WebServiceTestService", portName = "WebServiceTestPort", wsdlLocation = "WEB-INF/wsdl/WebServiceTestService.wsdl")
public class WebServiceTestDelegate {
 test.WebServiceTest webServiceTest = new test.WebServiceTest();
 @Resource
 private WebServiceContext wsContext;
 public String getServiceStr(String str) {
  MessageContext mc = wsContext.getMessageContext();
  ServletContext servlet = (ServletContext)(mc.get(mc.SERVLET_CONTEXT));
  HttpServletRequest  request  =  (HttpServletRequest)(mc.get(mc.SERVLET_REQUEST));
  String remortAddress = request.getRemoteAddr();
  System.out.println(remortAddress);
  return webServiceTest.getServiceStr(str);
 }
}


Ïà¹ØÎĵµ£º

Java Card ¼¼Êõ(¶þ)

 
±¾ÏµÁÐÎÄÕÂµÄµÚ 1 ²¿·Ö½éÉÜÁË Java Card ¼¼ÊõµÄ¸ß¼¶ÖªÊ¶ —— ʲôÊÇÖÇÄÜ¿¨¡¢Java Card Ó¦ÓóÌÐòµÄÔªËØ¡¢Í¨ÐźͲ»Í¬ Java Card ¼¼Êõ¹æ·¶µÄ»ã×Ü¡£ÔÚ±¾²¿·ÖÖУ¬ÎÒÃǽ«Öصã½éÉÜ Java Card applet µÄ¿ª·¢£º¿ª·¢ Java Card Ó¦ÓóÌÐò¡¢Sun Java Card ¿ª·¢¹¤¾ßÏä¡¢Java Card ºÍ Java Card RMI API ʱËùÐèµÄÒ»°ã² ......

Java SE6 ϵͳÍÐÅÌСӦÓùþ

 /**
* @(#)MyTray.java
*
*
* @author Xie Xiaojin
* @version 1.00 2009/11/9
*/
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class MyTray implements ActionListener {
private MenuItem item1;
private MenuItem item2;
private MenuItem item3;
private ......

Java Card¿ª·¢³£Óõİü£¨ÕûÀí£©

 ÕûÀíÁËһϳ£Óõ½µÄJava¿¨¿ª·¢°üÀïµÄ·½·¨£¬ÒÔºó¾ÍÄܼӿ쿪·¢ËÙ¶ÈÁË¡£
//Java Card¿ª·¢·½·¨²éѯ
import java.lang.*;
import javacard.framework.*;
import javacard.security.*;
import javacardx.crypto.*;     //¸Ã°üΪÀ©Õ¹°ü
//install·½·¨
public static void install(byte[] bArray, ......

javaɾ³ýÎļþ¼Ð

    1. package book.io;  
   2.  
   3. import java.io.File;  
   4.  
   5. /** 
   6.  *  
   7.  * @author XWZ 
   8.  * 20 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ