The following is sample code for the SearchHome class:
/* Example of how to get the home interface of the * PortalSearchServices EJB */ Context ctx; SearchHome home; Search search; try { /* * Get the home interface */ home = (SearchHome) ctx.lookup("com.sybase.ep.search. PortalSearchServices/SearchHome"); /* * Connect to the search engine specified in the * [Server] section of * %SYBASE%/PortalSearch/Engine/<PortalSearchqueryh.cfg or DRE.INI> */ search = home.create(); } catch (Exception e) { System.out.println("exception " + e.toString()); }
Copyright © 2004. Sybase Inc. All rights reserved. |
![]() |