锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲精品视频观看,亚洲人成影院在线,亚洲第一精品电影网http://www.tkk7.com/ywjr/category/43032.htmlzh-cnFri, 01 Jan 2010 09:32:04 GMTFri, 01 Jan 2010 09:32:04 GMT60hibernate use Websphere datasourcehttp://www.tkk7.com/ywjr/archive/2009/12/18/306468.html娌抽┈铏?/dc:creator>娌抽┈铏?/author>Fri, 18 Dec 2009 01:19:00 GMThttp://www.tkk7.com/ywjr/archive/2009/12/18/306468.htmlhttp://www.tkk7.com/ywjr/comments/306468.htmlhttp://www.tkk7.com/ywjr/archive/2009/12/18/306468.html#Feedback0http://www.tkk7.com/ywjr/comments/commentRss/306468.htmlhttp://www.tkk7.com/ywjr/services/trackbacks/306468.html     http://www.ibm.com/developerworks/websphere/techjournal/0609_alcott/0609_alcott.html

when  webSphere  application server  startup,  hibernate uses  WebSphere datasource.
step by  step錛?br />
     1  coding  statup  constom service

       import javax.management.Notification;
      import javax.management.NotificationFilterSupport;
      import javax.management.NotificationListener;
      import javax.management.ObjectName;
      
      public class WebsphereStartup implements CustomService,NotificationListener {
        public void initialize(Properties arg0) throws Exception {    
           NotificationFilterSupport filter = new NotificationFilterSupport();   
           filter.enableType(NotificationConstants.TYPE_J2EE_STATE_RUNNING);
           ObjectName target = new ObjectName("WebSphere:*,type=Server");   
           AdminServiceFactory.getAdminService().addNotificationListenerExtended(
            target,
            this,
            filter,
            null);
       } 
       public void shutdown() throws Exception {
         // When  was  shutdown錛?nbsp; this  method  is  executed
        
       } 
       public void handleNotification(Notification notification, Object handback) {
         //  write  init  code  here
         init();
       }
      }

     2  modify    hibernate config file  hibernate.cfg.xml

                     <property name="hibernate.connection.datasource">data  source  jndi</property>
                    <property name="hibernate.connection.username">name</property>
                     <property name="hibernate.connection.password">password</property>
                     <property name="hibernate.session_factory_name">HibernateSessionFactory</property>  
                      <property name="connection.autocommit">false</property>
                    <property name="net.sf.hibernate.transaction.JTATransactionFactory">net.sf.hibernate.transaction.WebSphereTransactionManagerLookup</property>
                      <property name="show_sql">false</property>
                     <property name="dialect">org.hibernate.dialect.Oracle9Dialect</property>

              娉ㄦ剰錛氬鏋滄槸闈炰簨鍔℃ф暟鎹簮  閭d箞鍦╤ibernate.cfg.xml  蹇呴』璁劇疆 <property name="connection.autocommit">false</property>
                      涓篺alse
                           
     3   create  datasource   jndi  on  was
             濡傛灉鏄潪浜嬪姟鎬ф暟鎹簮錛屽湪寤虹珛鏁版嵁婧愭椂錛屼篃瑕佽緗負(fù)闈炰簨鍔℃ф暟鎹簮銆?br />       4    config  custom service  bean  on Websphere
             was console >servers> application server > server1>manage>custom service >new
       5 start Server



]]>
WebSphere璁塊棶鎿嶄綔緋葷粺涓枃浠?鏉冮檺闂http://www.tkk7.com/ywjr/archive/2009/12/09/305304.html娌抽┈铏?/dc:creator>娌抽┈铏?/author>Wed, 09 Dec 2009 09:04:00 GMThttp://www.tkk7.com/ywjr/archive/2009/12/09/305304.htmlhttp://www.tkk7.com/ywjr/comments/305304.htmlhttp://www.tkk7.com/ywjr/archive/2009/12/09/305304.html#Feedback0http://www.tkk7.com/ywjr/comments/commentRss/305304.htmlhttp://www.tkk7.com/ywjr/services/trackbacks/305304.html http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/rsec_serverpolicy.html

閿欒淇℃伅錛堝湪Systemout.Log鏂囦歡涓級(jí)
        java.security.AccessControlException: Access denied (java.io.FilePermission  
 瑙e喅鏂規(guī)硶
淇敼 server.policy 鏂囦歡錛屽湪 install_root/properties/server.policy 涓壘鍒版鏂囦歡銆傛鏂囦歡鍖呭惈榪欎簺緙虹渷璁稿彲鏉冿細(xì)
// Allow to use ibm jdk extensions
grant codeBase "file:${was.install.root}/java/ext/-" {
permission java.security.AllPermission;
};
// Allow to use ibm tools
grant codeBase "file:${was.install.root}/java/tools/ibmtools.jar" {
permission java.security.AllPermission;
};
// Allow to use sun tools
grant codeBase "file:/QIBM/ProdData/Java400/jdk14/lib/tools.jar" {
permission java.security.AllPermission;
};
// Allow to use sun tools (V5R2M0 codebase)
grant codeBase "file:/QIBM/ProdData/OS400/Java400/jdk/lib/tools.jar" {
permission java.security.AllPermission;
};
// WebSphere system classes
grant codeBase "file:${was.install.root}/plugins/-" {
permission java.security.AllPermission;
};
grant codeBase "file:${was.install.root}/lib/-" {
permission java.security.AllPermission;
};
grant codeBase "file:${was.install.root}/classes/-" {
permission java.security.AllPermission;
};
// Allow the WebSphere deploy tool all permissions
grant codeBase "file:${was.install.root}/deploytool/-" {
permission java.security.AllPermission;
};
// Allow the WebSphere deploy tool all permissions
grant codeBase "file:${was.install.root}/optionalLibraries/-" {
permission java.security.AllPermission;
};
// Allow Channel Framework classes all permission
grant codeBase "file:${was.install.root}/installedChannels/-" {
permission java.security.AllPermission;
};
grant codeBase "file:${user.install.root}/lib/-" {
permission java.security.AllPermission;
};
grant codeBase "file:${user.install.root}/classes/-" {
permission java.security.AllPermission;
};

濡傛灉鑺傜偣涓婃湁涓浜涙湇鍔″櫒紼嬪簭闇瑕佽鍙潈錛岃岃繖浜涜鍙潈鍦?server.policy 鏂囦歡鍜?server.policy 鏂囦歡涓湭瀹氫箟涓虹己鐪佸鹼紝閭d箞鏇存柊 server.policy 鏂囦歡銆傜己灝戣鍙潈?yōu)畣鍒涘?java.security.AccessControlException 寮傚父銆傜己灝戠殑璁稿彲鏉冨湪寮傚父鏁版嵁涓垪紺恒?


鐒跺悗閲嶆柊鍚姩鏈嶅姟鍣?/p>

]]>
startup class interface of tomcat \jboss \ webSpherehttp://www.tkk7.com/ywjr/archive/2009/12/02/304525.html娌抽┈铏?/dc:creator>娌抽┈铏?/author>Wed, 02 Dec 2009 08:23:00 GMThttp://www.tkk7.com/ywjr/archive/2009/12/02/304525.htmlhttp://www.tkk7.com/ywjr/comments/304525.htmlhttp://www.tkk7.com/ywjr/archive/2009/12/02/304525.html#Feedback0http://www.tkk7.com/ywjr/comments/commentRss/304525.htmlhttp://www.tkk7.com/ywjr/services/trackbacks/304525.html     MBeanRegistration
        or
    ServiceMBeanSupport     鍜孲erviceMBean
2   startup  class  on Websphere
    customService    interface  錛坣eed  com.ibm.ws.runtime.jar )

3   startup  class  on tomcat 
   ServletContextListener  interface


]]>
Does WAS6.1 needs stubs for EJB3 http://www.tkk7.com/ywjr/archive/2009/11/24/303478.html娌抽┈铏?/dc:creator>娌抽┈铏?/author>Tue, 24 Nov 2009 07:46:00 GMThttp://www.tkk7.com/ywjr/archive/2009/11/24/303478.htmlhttp://www.tkk7.com/ywjr/comments/303478.htmlhttp://www.tkk7.com/ywjr/archive/2009/11/24/303478.html#Feedback0http://www.tkk7.com/ywjr/comments/commentRss/303478.htmlhttp://www.tkk7.com/ywjr/services/trackbacks/303478.htmltrace錛?nbsp;http://www.ibm.com/developerworks/forums/thread.jspa?messageID=14023850

The need to use statically-defined stubs depends only on what kind of client you have; it doesn't depend at all on where the EJB is that you're looking up or invoking. If your client is a WebSphere container that's been upgraded via the EJB 3.0 feature pack, then we have technology in the container itself that will dynamically generate the client-side stub for you in-memory when it's needed, assuming that you at least have the EJB remote interface packaged where the client can access it. So if your client is the WAS web container, EJB container, or application client container and the client environment has had the EJB 3.0 feature pack applied, you should not need to generate or package any client-side stubs with your client. If your client environment is something other than the above, then you will need to generate the client-side stubs with the createEJBStubs tool that comes with the EJB 3.0 feature pack, and package the resulting stubs in your client package. Here's a snippet of the documentation that covers this in more detail:

Just-In-Time Deployment

The EJB 3.0 Feature Pack adds a new feature to WebSphere application server called Just-In-Time Deployment. With Just-In-Time Deployment, the EJB container dynamically generates the wrapper, stub, and tie classes in-memory as needed when the application is running. Additionally, the web container and application client containers dynamically generate the stub class required for remote EJB invocations. Effectively, this means that you do not need to process EJB 3.0 modules, web modules that invoke EJB 3.0 beans, or client modules that invoke EJB 3.0 beans, through the EJBDeploy tool prior to running them in WebSphere.

The createEJBStubs tool

Even though the Just-In-Time deployment feature will, in many cases, dynamically generate the RMI-IIOP stub classes that are required for invocation of remote EJB interfaces, there remain some cases where these stub classes are not dynamically generated. For EJB 3.0 clients not running inside a WebSphere feature-pack-upgraded web container, EJB container, or client container, it is necessary for you to generate the stub classes with the createEJBStubs tool, then make the generated stubs available in the client environment's classpath. Typically you would accomplish this by copying the generated stubs to the location where the client's business interface class resides.

To summarize, the createEJBStubs tool must be used to generate client-side stubs for the following environments:

* "Bare" Java SE clients, where a Java SE JVM is the client environment
* WebSphere Application Server container environments without the EJB 3.0 feature pack applied
* Non-WebSphere application server environments

 



]]>
主站蜘蛛池模板: 曰批全过程免费视频在线观看无码| 蜜桃传媒一区二区亚洲AV| 久久久久免费视频| 亚洲高清免费视频| 老司机午夜性生免费福利| 国产一级高清视频免费看| 极品色天使在线婷婷天堂亚洲| 免费中文熟妇在线影片 | 成年人视频在线观看免费| 亚洲人成电影网站| 黄瓜视频影院在线观看免费| 亚洲av乱码一区二区三区香蕉| 久久精品无码一区二区三区免费| 亚洲欧美日韩一区二区三区| 国产成人高清精品免费软件 | 精品国产呦系列在线观看免费| 久久久久国产成人精品亚洲午夜| 中文字幕乱码免费看电影| 久久久久久亚洲av成人无码国产| 16女性下面扒开无遮挡免费| 亚洲 暴爽 AV人人爽日日碰| 国产精品色午夜视频免费看| 九九免费久久这里有精品23| 国产亚洲精品一品区99热| 84pao强力永久免费高清| h片在线观看免费| 亚洲色WWW成人永久网址| 无码囯产精品一区二区免费| 亚洲性无码一区二区三区| 亚洲精品乱码久久久久久蜜桃| 99久久成人国产精品免费| 亚洲欧洲中文日产| 国产精品免费_区二区三区观看| 中文毛片无遮挡高清免费| 亚洲日韩国产精品无码av| 免费在线观看日韩| 女人体1963午夜免费视频| 亚洲日韩中文字幕一区| 国内精品99亚洲免费高清| 亚洲性线免费观看视频成熟 | 香蕉视频免费在线播放|