Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 870647 Details for
Bug 1072601
Deploy the artifact and then have it retrieve by another application.
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Program to simulate loading artifact by an application during start up
ReloadTest.java (text/plain), 917 bytes, created by
David Tse
on 2014-03-04 21:17:06 UTC
(
hide
)
Description:
Program to simulate loading artifact by an application during start up
Filename:
MIME Type:
Creator:
David Tse
Created:
2014-03-04 21:17:06 UTC
Size:
917 bytes
patch
obsolete
>package org.kie.scanner; > >import static org.junit.Assert.assertEquals; >import static org.junit.Assert.assertNotNull; > >import org.drools.compiler.kie.builder.impl.KieContainerImpl; >import org.kie.api.KieServices; >import org.kie.api.builder.ReleaseId; >import org.kie.api.builder.model.KieBaseModel; >import org.kie.api.runtime.KieContainer; > >public class ReloadTest >{ > public static void main(String[] args) > { > KieServices ks = KieServices.Factory.get(); > ReleaseId releaseId = ks.newReleaseId("org.kie", "maven-test", "1.0.1-Final"); > > KieContainer kieContainer = ks.newKieContainer(releaseId); > KieBaseModel kbaseModel = ((KieContainerImpl) kieContainer).getKieProject().getDefaultKieBaseModel(); > assertNotNull("Default kbase was not found", kbaseModel); > String kbaseName = kbaseModel.getName(); > assertEquals("KBase1", kbaseName); > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1072601
: 870647