应该有点区别吧
up一下,听听高手的意见。

解决方案 »

  1.   

    1.Context.PROVIDER_URL
    — specifies the URL of the WebLogic Server that provides the name service. The default is t3://localhost:7001. 
    2.Context.SECURITY_PRINCIPAL
    —specifies the identity of the User (that is, a User defined in a WebLogic Server security realm) for authentication purposes. The property defaults to the guest User unless the thread has already been associated with a WebLogic Server User. 
    3.Context.SECURITY_CREDENTIALS
    —specifies either the password for the User defined in the Context.SECURITY_PRINCIPAL property or an object that implements the weblogic.security.acl.UserInfo interface with the 
    4.Context.SECURITY_CREDENTIALS
    If you pass a UserInfo object in this property, the Context.PROVIDER_URL property is ignored. The property defaults to the guest User unless the thread has already been associated with a UserYou can use the same properties on either a client or a server. If you define the properties on a server-side object, a local Context is used. If you define the properties on a client or another WebLogic Server, the Context delegates to a remote Context running on the WebLogic Server specified by the Context.PROVIDER_URL property.