Could it be that the corresponding events arent fired, when persisting the 
entity from a simple client app outside the container?

Further, i didnt find the events listed in the "integrate lucene with 
hibernate" docs in the docs of the entitymanager. compare these urls:

http://docs.jboss.org/ejb3/app-server/HibernateEntityManager/reference/en/html_single/index.html#d0e488

http://docs.jboss.org/ejb3/app-server/HibernateAnnotations/reference/en/html_single/index.html#d0e2754


  | package com.titan.clients;
  | 
  | import com.titan.travelagent.TravelAgentRemote;
  | import com.titan.domain.Cabin;
  | 
  | import javax.naming.InitialContext;
  | import javax.naming.Context;
  | import javax.naming.NamingException;
  | 
  | import javax.rmi.PortableRemoteObject;
  | 
  | public class Client
  | {
  |     public static void main(String [] args)
  |     {
  |         try
  |         {
  |             Context jndiContext = getInitialContext();
  |             Object ref = jndiContext.lookup("TravelAgentBean/remote");
  |             TravelAgentRemote dao = (TravelAgentRemote)ref;
  | 
  |             Cabin cabin_1 = new Cabin();
  |             cabin_1.setId(1);
  |             cabin_1.setName("Master Suite");
  |             cabin_1.setDeckLevel(1);
  |             cabin_1.setShipId(1);
  |             cabin_1.setBedCount(3);
  | 
  |             dao.createCabin(cabin_1);
  | 
  |             Cabin cabin_2 = dao.findCabin(1);
  |             System.out.println(cabin_2.getName());
  |             System.out.println(cabin_2.getDeckLevel());
  |             System.out.println(cabin_2.getShipId());
  |             System.out.println(cabin_2.getBedCount());
  | 
  |         }
  |         catch (javax.naming.NamingException ne)
  |         {
  |             ne.printStackTrace();
  |         }
  |     }
  | 
  |     public static Context getInitialContext()
  |         throws javax.naming.NamingException
  |     {
  |         return new javax.naming.InitialContext();
  |     }
  | }
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954639#3954639

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954639

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to