锘??xml version="1.0" encoding="utf-8" standalone="yes"?>日本免费一区二区三区等视频,中文在线观看免费,久久久久99精品久久久久http://www.aygfsteel.com/nikon/archive/2007/12/29/171540.html鏉庣珛娉?/dc:creator>鏉庣珛娉?/author>Sat, 29 Dec 2007 06:59:00 GMThttp://www.aygfsteel.com/nikon/archive/2007/12/29/171540.htmlhttp://www.aygfsteel.com/nikon/comments/171540.htmlhttp://www.aygfsteel.com/nikon/archive/2007/12/29/171540.html#Feedback2http://www.aygfsteel.com/nikon/comments/commentRss/171540.htmlhttp://www.aygfsteel.com/nikon/services/trackbacks/171540.html鎺ュ彛 interface
import J2EE鎶鏈殑鐖櫕.util.Collection;
import J2EE鎶鏈殑鐖櫕.util.List;

public interface IMathService {
 /**
  * 鍔?br />   * @param a
  * @param b
  * @return
  */
 public int add(int a,int b);
 /**
  * 鍑?br />   * @param a
  * @param b
  * @return
  */
 public int sub(int a,int b);
/**
涓婁紶浜岃繘鍒舵枃浠?br /> */
  public String sendFile(String fileName,byte[] file );
 
}

瀹炵幇 implements

import J2EE鎶鏈殑鐖櫕.io.File;
import J2EE鎶鏈殑鐖櫕.io.FileOutputStream;
import J2EE鎶鏈殑鐖櫕.sql.Connection;
import J2EE鎶鏈殑鐖櫕.sql.ResultSet;
import J2EE鎶鏈殑鐖櫕.sql.Statement;
import J2EE鎶鏈殑鐖櫕.util.ArrayList;
import J2EE鎶鏈殑鐖櫕.util.Collection;
import J2EE鎶鏈殑鐖櫕.util.List;

import com.newsoft.oa.bean.User;
import com.newsoft.oa.uitl.Connector;
import com.thoughtworks.xstream.XStream;

public class MathServiceImpl implements IMathService{
  public int add(int a,int b){
   return a+b;
  }
 
  public int sub(int a,int b){
   return a-b;
  }
  public String getWelComeStr(String name){
   return "hi "+name+"! 嬈㈣繋浣?;
  }
  public List getUsers(){
   List l=new ArrayList();
   l.add("name");
   l.add("password");
   l.add("sex");
   return l;
  }

public String sendFile(String fileName, byte[] filebytes) {
 try{
  String path="";
   if(filebytes!=null&&filebytes.length>0){
    File file=new File("/"+fileName);
   
    file.createNewFile();
    FileOutputStream fos=new FileOutputStream(file);
    fos.write(filebytes);
    fos.close();
    path=file.getAbsolutePath();
    System.out.println(path);
   
    file=null;
   
   }
  
   return path;
 }catch(Exception ex){
  return "false";
 }
}

}

閰嶇疆鏂囦歡

鏀懼湪 Classes/META-INF/xfire/service.xml錛涢噷闈?br />

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://xfire.codehaus.org/config/1.0">
 <service>
  <name>MathService</name>
  <namespace>newsoft/oa/MathService</namespace>
  <serviceClass>
   com.newsoft.oa.services.IMathService
  </serviceClass>
  <implementationClass>
   com.newsoft.oa.services.MathServiceImpl
  </implementationClass>

 </service>
</beans>

鍏跺疄鏄熼壌浜哠pring鐨勫啓娉曪紝鐢ㄨ繃Spring涓嶄細瀵圭潃闄岀敓錛岋紙Application-context.xml錛?br />
WEB-XML鍔犱笂

<servlet>
  <servlet-name>XFireServlet</servlet-name>
  <servlet-class>
   org.codehaus.xfire.transport.http.XFireConfigurableServlet
  </servlet-class>
 </servlet>

 <servlet-mapping>
  <servlet-name>XFireServlet</servlet-name>
  <url-pattern>/servlet/XFireServlet/*</url-pattern>
 </servlet-mapping>

 <servlet-mapping>
  <servlet-name>XFireServlet</servlet-name>
  <url-pattern>/services/*</url-pattern>
 </servlet-mapping>


鏈鍚庡氨鏄鎴風浜?

/ /Create a metadata of the service             
 Service serviceModel = new ObjectServiceFactory().create(IMathService.class);
// Create a proxy for the deployed service     
 
 XFireProxyFactory factory = new XFireProxyFactory(XFireFactory.newInstance().getXFire());  
 String serviceUrl = "http://localhost:8080/ws/services/MathService";
  client = null;      
 try {         
   client = (IMathService) factory.create(serviceModel, serviceUrl); 
   File file=new File("c:\\SUPERMAP 鐧界毊涔?pdf");
   FileInputStream fis=new FileInputStream(file);
   byte[] b=new byte[fis.available()];
   fis.read(b);
  System.out.println(client.sendFile(file.getName(), b));
 } catch (Exception ex) {        
   ex.printStackTrace();
 }                           //Invoke the service   
 int serviceResponse = 0;
 int a=10,b=20;

灝辨槸

Service serviceModel = new ObjectServiceFactory().create(IMathService.class); 
 XFireProxyFactory factory = new XFireProxyFactory(XFireFactory.newInstance().getXFire());  
 String serviceUrl = http://localhost:8080/ws/services/MathService;

涓夎瀛楀緩绔嬭繛鎺ヨ姹傦紝

澶交鏉句簡

浼犺緭鏂囦歡閫熷害涔熷彲浠ワ紝浜岃繘鍒訛紝2M澶氱殑鏂囦歡錛屼篃鑳借交鏉句紶閫?br />
鐢?net鍜宒elphi騫沖彴嫻嬭瘯錛屽吋瀹規ф病闂錛堟寜閬撶悊 soap,涔熶笉搴旇鏈夐棶棰橈級

榪欐槸涓哄鎴鋒惌寤虹殑鍦?妗f緋葷粺鍜孫A瀹℃壒闂翠綔鏂囦歡褰掓。鐨勫皾璇曢」鐩?br />
鍝堬紝瀹屾暣鐨勯」鐩唬鐮侊紝灝變笉鏂逛究璁蹭簡銆?br />

]]>
鍏充簬 DOMINO LS閲岄潰 view鐨凢tsearch鐨?"entry is no longer in view"鐨勭爺絀?/title><link>http://www.aygfsteel.com/nikon/archive/2007/12/29/171527.html</link><dc:creator>鏉庣珛娉?/dc:creator><author>鏉庣珛娉?/author><pubDate>Sat, 29 Dec 2007 06:40:00 GMT</pubDate><guid>http://www.aygfsteel.com/nikon/archive/2007/12/29/171527.html</guid><wfw:comment>http://www.aygfsteel.com/nikon/comments/171527.html</wfw:comment><comments>http://www.aygfsteel.com/nikon/archive/2007/12/29/171527.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/nikon/comments/commentRss/171527.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/nikon/services/trackbacks/171527.html</trackback:ping><description><![CDATA[1錛?br /> 鍘熷洜涓昏鏄?鏁版嵁鐨勪笉鍞竴鎬?br /> <br /> domino鏂囨。鏁版嵁搴撶殑寮婄梾<br /> <br /> 鑰屼笖 FTSearch鏌ヨ璧鋒潵涔熶笉寰堝噯紜紝涓夊瓧絎︿竴涓嬫煡璇紝鍛戒腑鐜囦笉鏄崄鍒嗛珮錛屽ぇ綰?80%-95%<br /> <br /> 2錛?br /> entry is no longer in view閿欒鐨勯伩鍏嶆柟娉曟槸<br /> <br /> 鐢∟otesViewEntry.IsValid鏂規硶鍏堝垽鏂偅 Entry鏄惁鑳借皟鐢?br /> <br /> 濡傛灉涓嶆槸璋冪敤閲岄潰寰堝鏂規硶 閮戒細鎶?nbsp; entry is no longer in view錛屽氨綆?IsDocument涔熸病鐢ㄥ<br /> <br /> 浣嗚繖鏍鳳紝濡傛灉鏄嚜宸辨墜鍔ㄥ垎欏碉紝灝變細鍑虹幇 GetNthEntry鏃跺欎笉澶噯紜?br /> <br /> 浣嗘病鍔炴硶浜嗭紝涓よ呭紛錛屽彇鍏惰交<br /> <br /> 涓昏鏄鎴蜂綋楠屽彈鐐瑰獎鍝嶄簡<br /> <br /><img src ="http://www.aygfsteel.com/nikon/aggbug/171527.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/nikon/" target="_blank">鏉庣珛娉?/a> 2007-12-29 14:40 <a href="http://www.aygfsteel.com/nikon/archive/2007/12/29/171527.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>榪戞湡璐熻矗鍏徃鐨凮A鏀歸狅紝鎺ヨЕ浜唀xt-js妗嗘灦錛岃嚜宸卞姩鎵嬪啓浜嗕簺浠g爜錛屾渶鏈夋垚灝辨劅鐨勬槸 extnd閲屽垎欏電殑淇敼錛屼竴涓嬫槸閮ㄥ垎淇敼蹇冨緱http://www.aygfsteel.com/nikon/archive/2007/12/29/171521.html鏉庣珛娉?/dc:creator>鏉庣珛娉?/author>Sat, 29 Dec 2007 06:32:00 GMThttp://www.aygfsteel.com/nikon/archive/2007/12/29/171521.htmlhttp://www.aygfsteel.com/nikon/comments/171521.htmlhttp://www.aygfsteel.com/nikon/archive/2007/12/29/171521.html#Feedback1http://www.aygfsteel.com/nikon/comments/commentRss/171521.htmlhttp://www.aygfsteel.com/nikon/services/trackbacks/171521.html涓錛?br />
鍒嗛〉瑕佽嚜宸遍噸鍐欙細鍦?extnd-all-debug閲嶅啓鎷垮彇鏁版嵁閮ㄥ垎

//鑷繁閲嶅啓鍒嗛〉鎷挎暟鎹殑鏂規硶錛岃繖鏍鋒暟鎹鏁頒細姝g‘鐜板疄
  var ds = new Ext.nd.data.DominoViewStore({
          proxy: new Ext.data.HttpProxy({
              url: Ext.nd.extndUrl+'GetView?OpenAgent',
              method: "GET"
          }),
          baseParams: {db: "/"+Ext.nd.Session.CurrentDatabase.FilePath, vw: this.viewName },
          reader: viewEntryReader,
          remoteSort: true
      });

銆傘傘傘傘傘傘傘傘傘傘傘傘傘傘?br />
getView鐨刲s浠g悊濡備笅

'GetView:

Option Public
Option Explicit


Sub Initialize
%REM
This agent can be called from the web to search any view and return results in the
same format as the ?ReadViewEntries command. This was created for use with the
NotesView2 class v1.3 and above.
%END REM
 
 On Error Goto ErrorHandler
 
 Dim session As New NotesSession
 Dim dbSearch As NotesDatabase
 Dim colEntries As NotesViewEntryCollection
 Dim vwSearch As NotesView
 Dim entryResult As NotesViewEntry
 Dim docCurrent As NotesDocument
 Dim docResult As NotesDocument
 Dim col As NotesViewColumn
 Dim strQuery As String
 Dim strDb As String
 Dim strView As String
 Dim strCategory As String
 Dim intMax As Integer
 Dim lngCount As Long, i As Long
 Dim lngStart As Long, lngEnd As Long
 Dim strParameters As String
 Dim lngResults As Long
 Dim x,n As Integer
 Dim xmlStr,resortdescending ,resortascending As String
 Dim nav As NotesViewNavigator
 
 
 'start the xml document
 Print "Content-Type:text/xml;"
 Print "<?xml version=""1.0"" encoding=""gb2312""?>"
 
 'first we get the search parameters out of the querystring
 'db, vw, query, searchmax, count, and start
 Set docCurrent = session.DocumentContext
 
 strParameters = docCurrent.GetItemValue("Query_String")(0)
 'Msgbox strParameters
 strDb = GetParameter("db",strParameters)
 strDb = Replace(Strright(strDb,"/"),"/","\")
 strView = GetParameter("vw",strParameters)
 strQuery = GetParameter("query",strParameters)
 strCategory= GetParameter("RestrictToCategory",strParameters)
 resortdescending=GetParameter("resortdescending",strParameters)
 resortascending=GetParameter("resortascending",strParameters)
 
 intMax = 0
 If Isnumeric(GetParameter("searchmax",strParameters)) Then intMax = Cint(GetParameter("searchmax",strParameters))
 lngCount = 20
 If Isnumeric(GetParameter("count",strParameters)) Then lngCount = Clng(GetParameter("count",strParameters))
 lngStart = 1
 If Isnumeric(GetParameter("start",strParameters)) Then lngStart = Clng(GetParameter("start",strParameters))
 
 'now we get the view to search
 Set dbSearch = session.GetDatabase("",strDb,False)
 Set vwSearch = dbSearch.GetView(strView)
 
 'Msgbox resortdescending +" && "+resortascending
 
 'now we run the search
 If   strCategory="" Then
  
  Set colEntries = vwSearch.AllEntries 
 Else
  Set colEntries = vwSearch.GetAllEntriesByKey(strCategory)
 End If 
 
 lngResults=colEntries.Count
 
 
 'now we spit out the results
 Print "<viewentries toplevelentries=""" & Cstr(lngResults) & """>"
 
 
 'set the starting point for the loop
 If lngStart > lngResults Then lngStart = lngResults
 
 'set the ending point for the loop
 lngEnd = lngStart + lngCount - 1
 If lngEnd > lngResults Then lngEnd = lngResults
 'now loop through the appropriate subset of results and print out a viewentry tag for each one
 i = lngStart
 While i <= lngEnd
  
  If i = lngStart Then
   Set entryResult = colEntries.GetNthEntry(i) 
  Else
   Set entryResult = colEntries.GetNextEntry(entryResult)
  End If
  
  
  If Not entryResult Is Nothing   Then
  'If Not entryResult Is Nothing And entryResult.IsValid  Then
   'If entryResult.IsDocument Then
   Set docResult = entryResult.Document
   Print  "<viewentry position=""" & Cstr(i) & """ unid=""" & Cstr(docResult.universalID) & """ noteid=""" & Cstr(docResult.NoteID) & """ siblings=""" & Cstr(entryResult.SiblingCount) & """>"
   x = 0
   n=0
   Forall value In entryResult.ColumnValues
    Set col=vwSearch.Columns(x)
    
    If Not col.isCategory And  Not col.IsHidden  Then
     Print "<entrydata columnnumber=""" & Cstr(n) & """ name=""" & col.itemName & """>"
     Print  "<text>" & XMLEscape(GetValue(value,Cstr(docResult.universalID))) & "</text>"
     Print  "</entrydata>"
     n=n+1
    End If
    x = x + 1
   End Forall
   Print "</viewentry>"
   'End If
  End If
  i = i + 1
 Wend
AtEnd:
 Print "</viewentries>"
 
 ''''Msgbox xmlStr
 Print xmlStr
 vwSearch.Clear
 Set dbSearch=Nothing
 Set vwSearch=Nothing
 Exit Sub
ErrorHandler:
 Msgbox "<error>" & "Error in ($Ext.nd.SearchView): " & Error & "---at " & Erl & "</error>"
 Print "<error>" & "Error in ($Ext.nd.SearchView): " & Error & "---at " & Erl & "</error>"
 Resume AtEnd
End Sub
Function GetParameter(strParamName As String, strQuery As String) As String
 'this gets a parameter out of a querystring
 Dim i As Integer
 Dim s As String
 Dim v As Variant
 
 GetParameter = ""
 
 i = Instr(Ucase(strQuery),"&" & Ucase(strParamName) & "=")
 If i <> 0 Then
  s = Strright(Mid(strQuery, i),"=")
  If Instr(s, "&") Then
   s = Strleft(s, "&")
  End If
  v = Evaluate("@UrlDecode(""Domino""; """ & s & """)")
  GetParameter = Cstr(v(0))
 End If
End Function
Function XMLEscape(strValue As String) As String
 'this escapes a string so it can be printed out to xml safely
 strValue = Replace(strValue, "&" , "&amp;")
 strValue = Replace(strValue, "<" , "&lt;")
 strValue = Replace(strValue, ">" , "&gt;")
 XMLEscape = strValue
End Function


Function GetValue(strValue As Variant,id As String) As String
 On Error Goto sErr
 
 'Forall vs In strValue
 ' Msgbox "vs=" &  Cstr(vs)
 'End Forall
 GetValue=Cstr(strValue)
 Exit Function
sErr:
 GetValue="鏂囨。" & id
 Exit Function
End Function

 

鏈夊叴瓚e彲浠ョ爺絀朵笅 ext-js鐨凙JAX妗嗘灦錛岀‘瀹炲緢鏈夎叮



]]>
JAVA鐨勫LDAP鎿嶄綔浠g爜錛堜互DOMINO涓轟緥瀛愶級http://www.aygfsteel.com/nikon/archive/2007/04/10/109624.html鏉庣珛娉?/dc:creator>鏉庣珛娉?/author>Tue, 10 Apr 2007 06:21:00 GMThttp://www.aygfsteel.com/nikon/archive/2007/04/10/109624.htmlhttp://www.aygfsteel.com/nikon/comments/109624.htmlhttp://www.aygfsteel.com/nikon/archive/2007/04/10/109624.html#Feedback0http://www.aygfsteel.com/nikon/comments/commentRss/109624.htmlhttp://www.aygfsteel.com/nikon/services/trackbacks/109624.htmlLdapConnector  榪炴帴綾?/span>

import J2EE鎶鏈殑鐖櫕.util.Hashtable;

import javax.naming.Context;
import javax.naming.directory.DirContext;
import javax.naming.directory.InitialDirContext;
import javax.naming.directory.SearchControls;

public class LdapConnector {
 public final static String INITCTX = "com.sun.jndi.ldap.LdapCtxFactory";
 public final static String HOST_URL = "ldap://128.8.1.8:389";
    public static LdapConnector connector=null;
 
 private DirContext ctx;

 private Hashtable<String,String> env;
   
 public LdapConnector(String principal, String credentials) {
  env = new Hashtable();
  try {
   env.put(Context.INITIAL_CONTEXT_FACTORY, INITCTX);
   env.put(Context.PROVIDER_URL, HOST_URL);
   env.put(Context.SECURITY_AUTHENTICATION, "simple");
   env.put(Context.SECURITY_PRINCIPAL, principal);
   env.put(Context.SECURITY_CREDENTIALS, credentials);
   ctx = new InitialDirContext(env);
  } catch (Exception ex) {
   ex.printStackTrace();
  }
  
 }
 
 public  DirContext getDirContext(){
  return ctx;
 }
 
 public static SearchControls getSearchControls(){
  SearchControls constraints;
  constraints = new SearchControls();
  constraints.setSearchScope(SearchControls.SUBTREE_SCOPE);
  return constraints;
 }
 
 
 public static LdapConnector  init(){
     synchronized (LdapConnector.class) {
      if(connector==null)
    connector=new LdapConnector("lilb","1"); 
 }  
   return connector;
 }
}

嫻嬭瘯綾伙細

import J2EE鎶鏈殑鐖櫕.util.ArrayList;

import javax.naming.NamingEnumeration;
import javax.naming.directory.Attribute;
import javax.naming.directory.Attributes;
import javax.naming.directory.DirContext;
import javax.naming.directory.SearchResult;

public class LdapText {

 /**
  * @param args
  */
 public static void main(String[] args) throws Exception{
  // TODO Auto-generated method stub
  String cn="";
  String dn="";
  
  String filter="";
  String searchBase="";
  NamingEnumeration<SearchResult> results;
  
  

DirContext ctx =LdapConnector.init().getDirContext();
        //鍏堟嬁CN鍊?================
        searchBase="";
        filter ="(uid=lilb)";
        results =
   ctx.search(searchBase, filter, LdapConnector.getSearchControls());
  while (results != null && results.hasMore()) {
   SearchResult sr2 =  results.next();
   cn=(String)sr2.getAttributes().get("cn").get();
   dn=sr2.getName();
   System.out.println(dn);
  }
        //=======================
       
        J2EE鎶鏈殑鐖櫕.util.List<String> uidList=new ArrayList<String>();
  
        filter =
   "(&(objectClass=dominoGroup)(cn=IT浜嬩笟閮?)";
       
   results =
   ctx.search(searchBase, filter, LdapConnector.getSearchControls());
  
  while (results != null && results.hasMore()) {
   SearchResult sr =  results.next();
   System.out.println(sr.getName());
   
   Attributes attrs = sr.getAttributes();
   NamingEnumeration attrsEnum=attrs.get("member").getAll();
   System.out.println("緇勭粐閲岀殑浜哄憳鏈?錛?+attrs.get("member"));
   while (attrsEnum != null && attrsEnum.hasMore()) {
    String str=(String)attrsEnum.next();
    System.out.println(str.equalsIgnoreCase(dn));
    NamingEnumeration<SearchResult> resultsPerson =
     ctx.search(str, "(objectClass=*)", LdapConnector.getSearchControls());//鏍規嵁DN錛屽啀閲嶆柊鏌ユ壘
    while (resultsPerson != null && resultsPerson.hasMore()) { 
     SearchResult srPerson =  resultsPerson.next();
     System.out.println(srPerson.getAttributes().get("cn").get());//閲岄潰浜虹殑CN
     System.out.println(srPerson.getAttributes().get("uid").get()+"@");//閲岄潰浜虹殑UID
     uidList.add(srPerson.getAttributes().get("uid").get().toString().toLowerCase());
    }
   }
   System.out.println("鏈粍緇囨槸鍚﹀瓨鍦ㄨ繖鐢ㄦ埛 :"+uidList.contains("lilb"));
   
   
   
  }
 }

}



]]>
鎴戝績鐩腑涓浗闃熺殑鐞嗘兂闃靛 http://www.aygfsteel.com/nikon/archive/2007/04/10/109620.html鏉庣珛娉?/dc:creator>鏉庣珛娉?/author>Tue, 10 Apr 2007 06:14:00 GMThttp://www.aygfsteel.com/nikon/archive/2007/04/10/109620.htmlhttp://www.aygfsteel.com/nikon/comments/109620.htmlhttp://www.aygfsteel.com/nikon/archive/2007/04/10/109620.html#Feedback0http://www.aygfsteel.com/nikon/comments/commentRss/109620.htmlhttp://www.aygfsteel.com/nikon/services/trackbacks/109620.html     鎴戝績鐩腑鐨勭悊鎯抽樀瀹?nbsp;

     浜庡ぇ瀹濓紙闊╅箯錛?/p>

浜庢搗   閮戞櫤   钁f柟鍗?br>    閭典匠涓 
         鍛ㄦ搗瀹?nbsp; 
瀛欒 鏉庝紵宄?鍐惂搴?瀛欑戶嫻?/p>

鍓嶆彁璇曟崲浜嗛鑰佹暀緇?img src ="http://www.aygfsteel.com/nikon/aggbug/109620.html" width = "1" height = "1" />

]]>
鍥藉ゥ闃熷張鎵撴灦浜?/title><link>http://www.aygfsteel.com/nikon/archive/2007/02/09/98960.html</link><dc:creator>鏉庣珛娉?/dc:creator><author>鏉庣珛娉?/author><pubDate>Fri, 09 Feb 2007 03:40:00 GMT</pubDate><guid>http://www.aygfsteel.com/nikon/archive/2007/02/09/98960.html</guid><wfw:comment>http://www.aygfsteel.com/nikon/comments/98960.html</wfw:comment><comments>http://www.aygfsteel.com/nikon/archive/2007/02/09/98960.html#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://www.aygfsteel.com/nikon/comments/commentRss/98960.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/nikon/services/trackbacks/98960.html</trackback:ping><description><![CDATA[<p>聽聽聽聽聽 聽鍙堜竴涓浗鐞冨憳娌¤剳琚?娌℃濈淮,娌℃櫤鎱х殑浣愯瘉<br />鎴戞暣澶╁涓浗鐞冨憳鐨勬兂娉曞氨鏄?br /><br />鎶鏈病闂<br /><br />韜綋娌¢棶棰?br /><br />閫熷害娌¢棶棰?br /><br />灝辨槸鑴戣鏈夐棶棰?br /><br />璁蹭簡涓嶅,瀛︿簡涓嶅仛,鍋氫簡鍙堝仛涓嶅ソ<br /><br />寰堢畝鍗曠殑鎴樻湳,鍒嗚竟,ONE TWO ,鍋囧姩浣?鎬繪槸澶辮,鎬皝鍛?br /><br />涓浗鐨勬暀緇冧笉鏄病鐭ヨ瘑,浣嗘槸鏄笉浼氭暀<br /><br />閬撶悊灝辮薄涓涓ソ鐨勬妧鏈漢鍛樻湭蹇呮槸涓涓ソ鐨勮佸笀涓鏍?br /><br />渚嵎鑰佸笀涓轟綍鍑哄悕,涓嶆槸鍥犱負浠栫殑鎶鏈?鎴戞病璐綆浠栨妧鏈殑鎰忔?,鏄洜涓轟粬鑳芥妸浠栨噦鐨勬妧鏈娓呮<br /><br />鍔犱笂涓浗浜鴻剳琚嬫濈淮鐗瑰埆澶嶆潅,鎵浠ョ悆鍛樻垬鏈礌鍏繪瀬鍏跺簳涓?br /><br />鍝?娌℃晳鐨勪腑鍥借凍鐞?br /><br />浣嗕負浣曟垜榪樻槸鐖辯湅?<br /><br />鐪嬫潵鎴戜篃鏄病鏁戜簡<br /></p><img src ="http://www.aygfsteel.com/nikon/aggbug/98960.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/nikon/" target="_blank">鏉庣珛娉?/a> 2007-02-09 11:40 <a href="http://www.aygfsteel.com/nikon/archive/2007/02/09/98960.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>涓涓獃ale-cas瀹炵幇鍗曠偣鐧誨綍(OSS)鐨勭畝鍗曚緥瀛愬疄鐜?http://www.aygfsteel.com/nikon/archive/2007/01/31/96854.html鏉庣珛娉?/dc:creator>鏉庣珛娉?/author>Wed, 31 Jan 2007 02:23:00 GMThttp://www.aygfsteel.com/nikon/archive/2007/01/31/96854.htmlhttp://www.aygfsteel.com/nikon/comments/96854.htmlhttp://www.aygfsteel.com/nikon/archive/2007/01/31/96854.html#Feedback1http://www.aygfsteel.com/nikon/comments/commentRss/96854.htmlhttp://www.aygfsteel.com/nikon/services/trackbacks/96854.html
Tomcat5.5.9聽
Jdk聽1.5.0.1
鎸夌収濡備笅鐨勯厤緗垚鍔燂細
1棣栧厛鎴戞墦寮tomcat5.5鐨凷SL
淇敼Tomcat閰嶇疆鏂囦歡server.xml錛屽幓鎺夊浜嶴SL鐨勬敞閲婏紝鍗沖紑鏀?443绔彛
錛堟敞鎰忥細涓嶇敤娣誨姞浠諱綍涓滆タ錛?br />2.鐢熸垚瀹夊叏璇佷功
棣栧厛鍦ㄥ懡浠よ涓垏鎹㈠埌聽%java_home%\jre\lib\security鐩綍
%java_home%\bin\keytool聽-genkey聽-alias聽tomcat聽-keyalg聽RSA
瀵嗙爜鏄?changeit
濮撳悕鏄?localhost
鍏朵粬闅忎究鍐欑殑
涔嬪悗鏄?br />%java_home%\bin\keytool聽-export聽-alias聽tomcat聽-file聽server.crt
鍜?br />%java_home%\bin\keytool聽-import聽-file聽server.crt聽-keystore聽%java_home%/jre/lib/security/cacerts聽
3.灝咰AS聽server3.0.2涓璽arget鐩綍涓殑CAS.war澶嶅埗鍒?tomcat_home%\webapps鐩綍涓?
錛堟垨鑰匼cas-server-2.0.12\lib鐩綍涓殑CAS.war涔熷彲浠ワ級
4.灝哻as-client-2.0.11\java\lib鏂囦歡澶嶅埗鍒?tomcat_home%\webapps\servlets-examples\WEB-INF\lib涓?娌℃湁lib鏂囦歡澶癸紝鑷繁寤轟竴涓?
5.淇敼tomcat鑷甫鐨剆ervlet-examples鐨剋eb.xml,聽鍔犲叆cas鐨勮繃婊ゅ櫒:

<filter>聽
聽聽聽聽<filter-name>CASFilter</filter-name>
聽聽聽聽<filter-class>edu.yale.its.tp.cas.client.filter.CASFilter</filter-class>
聽聽聽聽<init-param>
聽聽聽聽聽聽聽聽<param-name>edu.yale.its.tp.cas.client.filter.loginUrl</param-name>
聽聽聽聽聽聽聽聽<param-value>https://localhost:8443/cas/login</param-value>
聽聽聽聽</init-param>
聽聽聽聽<init-param>
聽聽聽聽聽聽聽聽<param-name>edu.yale.its.tp.cas.client.filter.validateUrl</param-name>
聽聽聽聽聽聽聽聽<param-value>https://localhost:8443/cas/proxyValidate</param-value>
聽聽聽聽</init-param>
聽聽聽聽<init-param>
聽聽聽聽聽聽聽聽<param-name>edu.yale.its.tp.cas.client.filter.serverName</param-name>
聽聽聽聽聽聽聽聽<param-value>localhost:8080</param-value>
聽聽聽聽</init-param>
</filter>
<filter-mapping>
聽聽聽聽<filter-name>CASFilter</filter-name>
聽聽聽聽<url-pattern>/servlet/*</url-pattern>
</filter-mapping>
6.鍚姩tomcat聽!,CAS.war鏂囦歡琚嚜鍔ㄥ湪webapps涓嬮噴鏀懼嚭CAS鐩綍
榪涘叆http://localhost:8080/servlets-examples,闅忎究鐐瑰嚮涓涓狤xecute,緋葷粺聽琚嚜鍔ㄨ漿鍙戝埌CAS鐨勭櫥闄嗛〉闈?
杈撳叆鐩稿悓鐨勭敤鎴峰悕鍜屽瘑鐮侊紝涔嬪悗璺寵漿鍥炲師鏉ラ〉闈?br />娉ㄦ剰錛?br />鍦ㄥ埗浣滀竴涓嚜絳懼悕鐨刢redential浜?聽鍦ㄧ敓鎴恔eystore鏂囦歡鐨勬椂鍊欏瘑鐮佹槸:changeit(榪欐槸tomcat榛樿鐨?,浣犵殑鍚嶅瓧涓瀹氳鏄?localhost,褰撶劧榪欐槸浣犻渶瑕佹妸CAS聽client鍜孋AS聽server鏀懼湪鍚屼竴鍙版満鍣ㄤ笂榪涜嫻嬭瘯鐢ㄧ殑.



]]>
璇椾竴棣?鏇懼浗钘╄禒涓庡叾寮熸墍涔?/title><link>http://www.aygfsteel.com/nikon/archive/2007/01/25/96007.html</link><dc:creator>鏉庣珛娉?/dc:creator><author>鏉庣珛娉?/author><pubDate>Thu, 25 Jan 2007 09:21:00 GMT</pubDate><guid>http://www.aygfsteel.com/nikon/archive/2007/01/25/96007.html</guid><wfw:comment>http://www.aygfsteel.com/nikon/comments/96007.html</wfw:comment><comments>http://www.aygfsteel.com/nikon/archive/2007/01/25/96007.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/nikon/comments/commentRss/96007.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/nikon/services/trackbacks/96007.html</trackback:ping><description><![CDATA[ <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: Tahoma; mso-hansi-font-family: Tahoma; mso-bidi-font-family: Tahoma">宸﹀垪閽熼摥鍙寵挨涔?/span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: Tahoma; mso-hansi-font-family: Tahoma; mso-bidi-font-family: Tahoma">浜洪棿闅忓鏈変箻闄?/span> <span lang="EN-US" style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Tahoma" xml:lang="EN-US"> <br /> </span> <span style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: Tahoma; mso-hansi-font-family: Tahoma; mso-bidi-font-family: Tahoma">浣庡ご涓鎷滃睜緹婅</span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: Tahoma; mso-hansi-font-family: Tahoma; mso-bidi-font-family: Tahoma">涓囦簨嫻簯榪囧お铏?br /><br /><a >http://googlechinablog.com/2006/08/google.html</a><br /><br /></span> </p> <img src ="http://www.aygfsteel.com/nikon/aggbug/96007.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/nikon/" target="_blank">鏉庣珛娉?/a> 2007-01-25 17:21 <a href="http://www.aygfsteel.com/nikon/archive/2007/01/25/96007.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>SPRING + HIBERNATE +OSWORKFLOW 鐨勯厤緗枃浠?2)http://www.aygfsteel.com/nikon/archive/2007/01/25/95977.html鏉庣珛娉?/dc:creator>鏉庣珛娉?/author>Thu, 25 Jan 2007 08:08:00 GMThttp://www.aygfsteel.com/nikon/archive/2007/01/25/95977.htmlhttp://www.aygfsteel.com/nikon/comments/95977.htmlhttp://www.aygfsteel.com/nikon/archive/2007/01/25/95977.html#Feedback0http://www.aygfsteel.com/nikon/comments/commentRss/95977.htmlhttp://www.aygfsteel.com/nikon/services/trackbacks/95977.html applicationContext-hibernate.xml
=============================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "<beans>
聽<bean id="sessionFactory"
聽聽class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
聽聽<property name="configLocation">
聽聽聽<value>classpath:hibernate.cfg.xml</value>
聽聽</property>
聽</bean>
</beans>

applicationContext-hibernate鍜宎pplicationContext-service鍒嗗紑瀹規槗綆$悊

hibernate.cfg.xml
<property name="hibernate.dialect">org.hibernate.dialect.SQLServerDialect</property>
聽聽聽聽聽聽聽 <property name="hibernate.connection.driver_class">net.sourceforge.jtds.jdbc.Driver</property>
聽聽聽聽聽聽聽 <property name="hibernate.connection.url">jdbc:jtds:sqlserver://172.1.1.11:1433/EMMS2 </property>
聽聽聽聽聽聽聽 <property name="hibernate.connection.username">sa</property>
聽聽聽聽聽聽聽 <property name="hibernate.connection.password">8888</property>
聽聽聽聽聽聽聽 <property name="hibernate.query.factory_class">org.hibernate.hql.classic.ClassicQueryTranslatorFactory</property>

聽聽聽聽聽聽聽 <property name="hibernate.query.substitutions">false 0, true 1</property>
聽聽聽聽聽聽聽 <!-- c3p0 connection pooling properties -->
聽聽聽聽聽聽聽 <property name="hibernate.c3p0.min_size">1</property>
聽聽聽聽聽聽聽 <property name="hibernate.c3p0.max_size">3</property>
聽聽聽聽聽聽聽 <!-- other hibernate properties -->
聽聽聽聽聽聽聽 <property name="hibernate.show_sql">true</property>
聽聽聽聽聽聽聽 <!-- <property name="hbm2ddl.auto">update</property> -->
聽聽聽聽聽聽聽聽
聽聽聽聽聽聽聽 <mapping resource="com/opensymphony/workflow/spi/hibernate3/HibernateCurrentStep.hbm.xml"/>
聽聽聽<mapping resource="com/opensymphony/workflow/spi/hibernate3/HibernateHistoryStep.hbm.xml"/>
聽聽聽<mapping resource="com/opensymphony/workflow/spi/hibernate3/HibernateWorkflowEntry.hbm.xml"/>

聽聽聽 </session-factory>
</hibernate-configuration>



]]>
SPRING + HIBERNATE +OSWORKFLOW 鐨勯厤緗枃浠?1)http://www.aygfsteel.com/nikon/archive/2007/01/25/95976.html鏉庣珛娉?/dc:creator>鏉庣珛娉?/author>Thu, 25 Jan 2007 08:05:00 GMThttp://www.aygfsteel.com/nikon/archive/2007/01/25/95976.htmlhttp://www.aygfsteel.com/nikon/comments/95976.htmlhttp://www.aygfsteel.com/nikon/archive/2007/01/25/95976.html#Feedback0http://www.aygfsteel.com/nikon/comments/commentRss/95976.htmlhttp://www.aygfsteel.com/nikon/services/trackbacks/95976.html聽榪欐槸鎴戝疄闄呴」鐩粡楠屼腑閰嶇疆,榪樻湁涓涓猘pplicationContext-hibernate.xml,鍜宧ibernate.cfg.xml涓嬮亶鏂囨。鍙?br />

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "<beans>
聽<!--聽 hibernate configuration -->
聽<import resource="applicationContext-hibernate.xml" />

聽<!--聽 ========================聽 dao helper ,set to service,transation ============聽 -->


聽<bean id="transactionManager"
聽聽class="org.springframework.orm.hibernate3.HibernateTransactionManager">
聽聽<property name="sessionFactory">
聽聽聽<ref bean="sessionFactory" />
聽聽</property>
聽</bean>

聽<!--聽 ========================聽 end dao setup ============聽 -->

聽<!--聽 ============================================================================聽 -->
聽<!--聽 ======================== 緋葷粺涓氬姟灞?=======================================聽 -->
聽<!--聽 ============================================================================聽 -->


聽<!--聽 ========================聽 begin to setup dgsei System Service ============聽 -->
聽<!-- ************聽 鍏叡transactionManager proxy 緇ф壙鍚庡氨鑳芥湁浜嬪姟綆$悊銆鏂規硶鏄痵et parent="baseServiceProxy"聽 === -->
聽<bean id="baseServiceProxy" lazy-init="true"
聽聽class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
聽聽<property name="transactionManager">
聽聽聽<ref local="transactionManager" />
聽聽</property>
聽聽<property name="transactionAttributes">
聽聽聽<props>
聽聽聽聽<prop key="modify*">
聽聽聽聽聽PROPAGATION_REQUIRED,-com.newsoft.notMoneyException
聽聽聽聽</prop>
聽聽聽聽<prop key="update*">
聽聽聽聽聽PROPAGATION_REQUIRED,-Exception
聽聽聽聽</prop>
聽聽聽聽<prop key="add*">PROPAGATION_REQUIRED,-Exception</prop>
聽聽聽聽<prop key="create*">
聽聽聽聽聽PROPAGATION_REQUIRED,-Exception
聽聽聽聽</prop>
聽聽聽聽<prop key="save*">PROPAGATION_REQUIRED,-Exception</prop>
聽聽聽聽<prop key="delete*">
聽聽聽聽聽PROPAGATION_REQUIRED,-Exception
聽聽聽聽</prop>
聽聽聽聽<prop key="remove*">
聽聽聽聽聽PROPAGATION_REQUIRED,-Exception
聽聽聽聽</prop>
聽聽聽聽<prop key="do*">PROPAGATION_REQUIRED,-Exception</prop>
聽聽聽聽<prop key="is*">PROPAGATION_REQUIRED,readOnly</prop>
聽聽聽聽<prop key="get*">PROPAGATION_REQUIRED,readOnly</prop>
聽聽聽聽<prop key="find*">PROPAGATION_REQUIRED,readOnly</prop>
聽聽聽聽<!-- prop key="query*">PROPAGATION_REQUIRED,readOnly</prop>
聽聽聽聽聽<prop key="someOtherBusinessMethod">PROPAGATION_MANDATORY</prop-->
聽聽聽</props>
聽聽</property>
聽</bean>

聽<!--聽 =============聽聽 end ==== -->
聽聽聽 <!--
聽聽OS
聽-->
聽<bean id="workflowStore"
聽聽class="com.opensymphony.workflow.spi.hibernate3.SpringHibernateWorkflowStore" >
聽聽<property name="sessionFactory">
聽聽聽<ref bean="sessionFactory" />
聽聽聽 </property>
聽<property name="propertySetDelegate">
聽聽<bean id="propertySetDelegate"
聽聽class="com.opensymphony.workflow.util.PropertySetDelegateImpl" />
聽</property>
聽聽 </bean>
聽<bean id="workflowFactory"
聽聽class="com.opensymphony.workflow.spi.hibernate.SpringWorkflowFactory"
聽聽init-method="init">
聽聽<property name="resource">
聽聽聽<value>workflows.xml</value>
聽聽</property>
聽</bean>
聽<bean id="workflowConfiguration"
聽聽class="com.opensymphony.workflow.config.SpringConfiguration">
聽聽<property name="store">
聽聽聽<ref local="workflowStore" />
聽聽</property>
聽聽<property name="factory">
聽聽聽<ref local="workflowFactory" />
聽聽</property>
聽</bean>
聽<bean id="transactionInterceptor" class="org.springframework.transaction.interceptor.TransactionInterceptor">
聽聽聽聽聽聽聽 <property name="transactionManager">
聽聽聽聽聽聽聽聽聽聽聽聽聽 <ref local="transactionManager" />
聽聽聽聽聽聽聽 </property>
聽聽聽聽聽聽聽 <property name="transactionAttributes">
聽聽聽聽聽聽聽聽聽聽聽聽聽 <props>
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 <prop key="*">PROPAGATION_REQUIRED</prop>
聽聽聽聽聽聽聽聽聽聽聽聽聽 </props>
聽聽聽聽聽聽聽 </property>
聽聽聽 </bean>
聽聽聽 <bean id="workflowTarget" class="com.opensymphony.workflow.basic.BasicWorkflow" singleton="false">
聽聽聽聽聽聽聽 <constructor-arg>
聽聽聽聽聽聽聽聽聽聽聽聽聽 <value>admin</value>
聽聽聽聽聽聽聽 </constructor-arg>
聽聽聽聽聽聽聽 <property name="configuration">
聽聽聽聽聽聽聽聽聽聽聽聽聽 <ref local="workflowConfiguration" />
聽聽聽聽聽聽聽 </property>
聽聽聽 </bean>
聽聽聽 <bean id="workflow" class="org.springframework.aop.framework.ProxyFactoryBean">
聽聽聽聽聽聽聽 <property name="singleton">
聽聽聽聽聽聽聽聽聽聽聽聽聽 <value>false</value>
聽聽聽聽聽聽聽 </property>
聽聽聽聽聽聽聽 <property name="proxyInterfaces">
聽聽聽聽聽聽聽聽聽聽聽聽聽 <value>com.opensymphony.workflow.Workflow</value>
聽聽聽聽聽聽聽 </property>
聽聽聽聽聽聽聽 <property name="interceptorNames">
聽聽聽聽聽聽聽聽聽聽聽聽聽 <list>
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 <value>transactionInterceptor</value>
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 <value>workflowTarget</value>
聽聽聽聽聽聽聽聽聽聽聽聽聽 </list>
聽聽聽聽聽聽聽 </property>
聽聽聽 </bean>
聽聽聽

聽<!-- OS END -->

聽<!-- 鐩戠涓績鍒涘緩璁板綍 -->
聽<!-- dao鐨勫疄鐜奧?sessionFactory鐢ㄧ殑鏄墠闈pring瀹氫箟鐨?->
聽<bean id="maintRecordDao"
聽聽class="com.newsoft.equipmentMaintenance.dao.MaintRecordDaoImpl">
聽聽<property name="sessionFactory" ref="sessionFactory" />
聽</bean>
聽<!-- BO鐨勬帴鍙?target 鏄寚鍚態O瀹炵幇綾籭d parent鏄簨鐗╀唬鐞嗙被鐨処D ,proxyInterfaces鏄浠g悊鐨勬帴鍙g被-->

聽<bean id="maintRecordService" parent="baseServiceProxy">
聽聽<property name="target">
聽聽聽<ref local="maintRecordImpl" />
聽聽</property>
聽聽<property name="proxyInterfaces">
聽聽聽<value>
聽聽聽聽com.newsoft.equipmentMaintenance.bo.maintenanceRecord.MaintRecordService
聽聽聽</value>
聽聽</property>
聽</bean>
聽<!-- BO鐨勫疄鐜?MaintRecordDao 鏄寚鍚慏AO鎺ュ彛綾籭d-->
聽<bean id="maintRecordImpl"
聽聽class="com.newsoft.equipmentMaintenance.bo.maintenanceRecord.impl.MaintRecordImpl">
聽聽<property name="maintRecordDao">
聽聽聽<ref local="maintRecordDao" />
聽聽</property>
聽聽<property name="workflow">
聽聽聽<ref local="workflow" />
聽聽</property>
聽</bean>

</beans>



]]>
主站蜘蛛池模板: 拉孜县| 昔阳县| 大姚县| 平舆县| 溆浦县| 吴旗县| 庆安县| 双柏县| 隆尧县| 武夷山市| 汕头市| 磴口县| 休宁县| 治县。| 米脂县| 南川市| 宝兴县| 赤水市| 班戈县| 天峨县| 黔西县| 荔浦县| 安远县| 胶南市| 湖州市| 黑河市| 云林县| 蒲城县| 漯河市| 静乐县| 张掖市| 扶绥县| 铁岭县| 沿河| 古蔺县| 库车县| 兖州市| 石棉县| 朝阳区| 开原市| 重庆市|