Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Chapter-Planner_configuration.xml - module in Wildfly #52

Merged
merged 2 commits into from
Aug 4, 2014

Conversation

radimch
Copy link
Contributor

@radimch radimch commented Jul 4, 2014

Adding section about deploying the OptaPlanner as module in Wildfly.

Adding section about deploying the OptaPlanner library as module in Wildfly
@ge0ffrey
Copy link
Contributor

ge0ffrey commented Jul 4, 2014

Thanks for the PR. It's great stuff.

I am wondering if we can:

  • move it to Chapter-Integration (and possible linkend link it from the section about classpath solverConfig resource.
  • make it more maintenance friendly: summarize it (if possible) and get rid of hard coded version numbers. Less is more.

@radimch
Copy link
Contributor Author

radimch commented Jul 4, 2014

Of course, it is just fist raw version, I'll clean it up.

ge0ffrey added a commit that referenced this pull request Aug 4, 2014
Update Chapter-Planner_configuration.xml - module in Wildfly
@ge0ffrey ge0ffrey merged commit 26e6a5b into apache:master Aug 4, 2014
@ge0ffrey
Copy link
Contributor

ge0ffrey commented Aug 4, 2014

@radimch Instead of "SolverFactory.createFromXmlResource("SchedulingSolverConfig.xml")", would it be better to use createFromXmlInputStream(InputStream) and avoid all such issues?

@radimch
Copy link
Contributor Author

radimch commented Aug 4, 2014

maybe, I haven't try yet. I'll do some tests.

@ge0ffrey
Copy link
Contributor

ge0ffrey commented Aug 6, 2014

@radimch Can you try this code instead:

    SolverFactory solverFactory = SolverFactory.createFromXmlInputStream(
            getClass().getClassLoader().getResourceAsStream(
                    "org/optaplanner/examples/nqueens/solver/nqueensSolverConfig.xml"));

That's what I am documenting and I strongly believe that will work correctly (but I haven't tested it yet... hence my question :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants