public ParseEvents()
{
String classpathLocation_plm = "com/esper/Resources/dataPkt.xsd";
String classpathLocation_status = "com/esper/Resources/helloPkt.xsd";
URL schemaURL_plm = this.getClass().getClassLoader().getResource(classpathLocation_plm);
URL schemaURL_status = this.getClass().getClassLoader().getResource(classpathLocation_status);
//System.out.println(schemaURL.getPath());
ConfigurationEventTypeXMLDOM plmcfg = new ConfigurationEventTypeXMLDOM();
ConfigurationEventTypeXMLDOM plmstatus = new ConfigurationEventTypeXMLDOM();
epService = EPServiceProviderManager.getDefaultProvider();
epService1 = EPServiceProviderManager.getDefaultProvider();
plmcfg.setRootElementName("PACKET");
plmcfg.setSchemaResource(schemaURL_plm.toString());
plmstatus.setRootElementName("PACKET");
plmstatus.setSchemaResource(schemaURL_status.toString());
plmAdm = epService.getEPAdministrator();
plmAdm1 = epService1.getEPAdministrator();
plmAdm.getConfiguration().addEventType("PlmEvent", plmcfg);
plmAdm1.getConfiguration().addEventType("PlmStatus", plmstatus);
我在 java 项目的类路径中有两个模式。现在进入 esper 引擎的 xml 文件(作为事件)不知道要理解哪个模式。如何解决这个问题?请高手指点!