Questions tagged as 'java'

1
answer

Log4j - Create several logs but write randomly in only one when using parallel execution

The problem I have is that when using Log4j during a parallel execution of several processes, this creates a log for each of the processes, but writes all the output in one of them randomly. It is written in groovy. This is my .properties...
asked by 22.06.2016 / 12:28
3
answers

Read assets of an app from a library (jar)

What a community. Let's see if someone gives me a hand in this. I happen to be working on organizing the repetitive and reusable codes in a library of my own and the intention is to distribute it in the factory in jar format as is normal. Everyt...
asked by 21.01.2016 / 23:06
4
answers

Does the finally block always run in Java?

I have a try / catch with a return inside. Will the block finally be executed? try { something(); return success; } catch (Exception e) { return failure; } finally { System.out.println("No se si esto se va a im...
asked by 01.12.2015 / 23:07
3
answers

PRIME FACES ("commandButton"):

** How should I implement the code or what is the property of the "Command Button" so that it can only be executed by clicking on it ?? ** I have the following code in which I use Primer faces the "command Button" which is at the beginn...
asked by 16.01.2018 / 18:50
2
answers

What is the use of Invocable in java?

Until now I only know that it is an interface that has the following methods: invokeMethod () invokeFunction () getInterface () But I do not understand what each of them is for and exactly where the Invocable interface is...
asked by 14.02.2017 / 06:17
5
answers

Alternatives to Eclipse to develop in J2EE [closed]

Some time ago I am looking for a solid alternative to Eclipse to develop on J2EE, since at certain moments Eclipse is somewhat "erratic" (failures, corruption, ...) especially when you try to work with a J2EE server How can Wildfly be? To be...
asked by 10.12.2015 / 15:40
2
answers

Difference between annotations @Component, @Repository and @Service in Spring?

The previous entries are very related, so my questions are as follows: 1- Can the annotations @Component, @Repository and @Service be used interchangeably in Spring or do they provide any particular functionality besides...
asked by 21.06.2018 / 02:49
3
answers

Differences between fine grain and coarse grain

I have read numerous documentations about the differences between fine grain and coarse grain parallelism, but I do not get to understand it very well, here is an example of what I have seen:    "An application shows fine grain parallelism i...
asked by 21.11.2016 / 19:06
4
answers

for vs while - LOOP

I have these little questions about loops in java . What is the difference between for and while ? Is the while better for a short loop?
asked by 22.01.2017 / 11:34
3
answers

Division in Java does not work well

It works if I enter 10 and then 2, it gives me 5. But I am applying it in another program and now I release to try and it does not give me the results that it has decimals that is to say the division of 2/10 that would be 0.2 does...
asked by 29.04.2017 / 18:07