Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Jochen
Sunday, August 6th, 2006 at 6:44:05am MDT 

  1. /* INTERFACE VFMController */
  2.  
  3. package vfmcontroller;
  4.  
  5. import java.rmi.*;
  6. import javax.ejb.*;
  7.  
  8.  
  9. public interface VFMController extends EJBObject, VFMControllerBusiness {
  10.    
  11.     public String getTime() throws RemoteException;
  12.    
  13.     // METHODEN AN DIESER STELLE IRRELEVANT //
  14.     //public VFMSession createVFMSession(Login login) throws RemoteException, LoginException;
  15.     //public VFMSession getVFMSession(String vfmsessionid) throws RemoteException, VFMException;
  16.     // METHODEN AN DIESER STELLE IRRELEVANT //
  17.  
  18. }
  19.  
  20.  
  21.  
  22.  
  23. /* KLASSE VFMControllerBean  */
  24.  
  25.  
  26. package vfmcontroller;
  27.  
  28. import java.rmi.*;
  29. import javax.rmi.*;
  30. import javax.naming.*;
  31. import javax.ejb.*;
  32.  
  33.  
  34. public class VFMControllerBean implements SessionBean, VFMControllerBusiness {
  35.     protected SessionContext context;
  36.    
  37.    
  38.    
  39.     public void setSessionContext(SessionContext aContext) {
  40.         context = aContext;
  41.         System.out.println( "VFMControllerBean.setSessionContext()" );
  42.     }
  43.     public void ejbActivate() {
  44.         System.out.println( "VFMControllerBean.ejbActivate()" );
  45.     }
  46.     public void ejbPassivate() {
  47.         System.out.println( "VFMControllerBean.ejbPassivate()" );
  48.     }
  49.     public void ejbRemove() {
  50.         System.out.println( "VFMControllerBean.ejbRemove()" );
  51.     }
  52.    
  53.    
  54.     public void ejbCreate() {
  55.         System.out.println( "VFMControllerBean.ejbCreate()" );
  56.     }
  57.    
  58.    
  59.    
  60.     public String getTime() {
  61.         System.out.println( "VFMControllerBean.getTime()" );
  62.         return "Uhrzeit: " + new Date();
  63.     }
  64.  
  65.    
  66.    
  67. }

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

fantasy-obligation