Tim Moores

Saloon Keeper
+ Follow
since Sep 21, 2011
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Tim Moores

Try something like

No idea. The JBoss documentation should talk about that. I would expect an app server like JBoss to have extensive JMX monitoring capabilities.
2 days ago
Depends on the pool. Some -like C3PO- register an MBean that your Java code can query.
2 days ago
So you were assigned a job for which you were not qualified at the time, and the company did not train you to become qualified. Both aspects reflect badly on the company, not on yourself. That is no reason why you should not succeed at other development jobs that are a better match for your experience, at a company that is better at managing people.
2 days ago
We don't have enough information yet to make guesses. If you haven't done so yet, perform timings of each line of code to see which one takes a long time.
3 days ago
Tomcat itself starts up pretty quickly. Maybe there's a lot of initialization work being done in context listeners and similar constructs that get executed at startup time? Maybe some of that could run in a background thread asynchronously instead.
3 days ago
Which line(s) of code are slow, specifically?
3 days ago
OK. That doesn't show the directory hierarchy, but I'll take your word for it. And just to make sure: class Demo is in package gov.sandia.jess.example.pricing.demo?
4 days ago
Given that information, the class file should be at


Is it?
5 days ago

nalini shrma wrote:I am unable to do for PDF.

Yes, we got that. But since we're not going to do the work for you, we give you hints where you can start. That's what this site is all about. I'm not getting the impression that you're trying hard to tackle this yourself, though.
5 days ago
That's pretty much what you had posted earlier - we've already seen that, so there's no point in repeating it. But you seem to ignore what myself and others are telling you.

Can you please provide code

Nope, nobody here is going to do your work for you, especially if you don't listen to the advice you're getting.
5 days ago
Demo.java is a source file - class files are what gets executed. Try "java Demo" instead.
5 days ago
You seem to have missed what I wrote earlier. There are fundamental reasons why that sort of approach doesn't work with PDFs (or other structured file formats).

Someone else asked recently about extracting text from a PDF; see my reply at https://coderanch.com/t/691561/Task-write-code-reading-fields. Maybe those tools give you something to work with.

But overall I'll have to agree with Norm that this particular project seems a bit out of reach for someone just starting with Java.
5 days ago
That's most likely a consequence of the source and class files not being in the directories where the compiler expects them. Try compiling them all at once using "javac *.java"

If the code uses packages, you might want to wok through https://docs.oracle.com/javase/tutorial/java/package, particularly https://docs.oracle.com/javase/tutorial/java/package/managingfiles.html
5 days ago
I can't say whether it's wise to use this library - I know little about it, and it's unclear why your instructor recommended it.

What I can say is that for one project I've recently switched from Java's built-in HTTP library to https://square.github.io/okhttp/, which has a much nicer API, IMO. It's so nice to work with that it's going to be my default HTTP client library going forward, though.
6 days ago