是否有一个职能,每当一个EJB被调查时就被称作是? 在采用任何方法之前,我需要更新一些数据。
I am currently developing a J2EE application and I would like to use Jetty. I would like to have iot integrated with Eclipse, so I could debug the appliaction. I ve tried out couple of plugins (...
是否有一个职能,每当一个EJB被调查时就被称作是? 在采用任何方法之前,我需要更新一些数据。
我不敢确切了解你的含义。 首先,你可能需要区分无国籍状态和国有的外籍家庭佣工。
Un Stateless EJB are well, stateless,不应包含数据。 服务器可以决定在任何时候销毁或重建该服务器。 你实际上没有提及它所研究的某一具体事例。 服务器有一批EJBs,其中一台是用的。
国有企业可以包含数据。 你提到了一个具体的例子,这个案例是当拜爱者时创立的。 反馈方法见@PostConstruct
或@Prestroy
。 (这些呼吁还针对无国籍的外籍家庭佣工,但效果不大)。
尽管如此,如果你需要在使用某种方法之前做一些事情,我建议你使用interceptor(使用@Interceptor
,为无国籍人和国有企业工作)。 就像阿片组织一样,你有机会在美制方法实际执行之前和之后做一些事情,例如恢复海滩。
I am currently developing a J2EE application and I would like to use Jetty. I would like to have iot integrated with Eclipse, so I could debug the appliaction. I ve tried out couple of plugins (...
we need run one function periodically in Java web application . How to call function of some class periodically ? Is there any way that call function when some event occured like high load in server ...
I would have thought that there is a lot of information out there on this, but I haven t found anything that really answers my question. What are the advantages of making an EJB rather than a web ...
I m designing a fairly small web application which will run on a Sun application server (v9.1). It only has a few pages, no database of its own, and will retrieve/update data via web services. There s ...
I got the impression that if we use persistent fields, there is no need for getter methods since the entity manager references the instance variables directly. However, when I removed the getter and ...
I have a very simple Java application which downloads a set of foreign exchanges rates from Yahoo! finance and performs some calculations on them. I am currently running this application in Eclipse. I ...
What s up with JNDI names? I m trying to get a javax.sql.DataSource using the new annotations feature of Java 5. It s not working for me, so I want to ask... I have a in my web.xml, inside of it is ...
I wrote a Hibernate interceptor : public class MyInterceptor extends EmptyInterceptor { private boolean isCanal=false; public boolean onSave(Object entity, Serializable arg1, Object[] arg2, String[]...