Questions tagged as 'java'

1
answer

Dynamic task scheduling with spring batch + quartz

I have a project in Spring Batch + quartz, which loads a file and then processes the file data. Only I wanted to implement a view with a form where I had the option to choose the start time and end time and the days where I could run. Can I do t...
asked by 11.02.2016 / 00:13
0
answers

Thread in WAIT state [closed]

I am monitoring a system that has been done in Java and at certain times during the day most threads, about 95%, enter WAIT state and wait for about 50 seconds on average, and sometimes the interval between pauses is 5 minutes. The result is tha...
asked by 24.06.2016 / 15:47
0
answers

Login with Digital Certificate (E-CPF, E-CNPJ) with Servlet / JSP [closed]

Hello. I want to develop a Login system similar to what government portals use (E-CAC, NFE and similar), where the E-CNPJ is used to login. I've done the following: 1) I created and signed an RSA private key for the server: keytool...
asked by 18.03.2016 / 22:36
1
answer

How to simulate a user logged into an application with Demoiselle 2.4.2?

I have a Demoiselle 2.4.2 application already running that needs to use SecurityContext to get the User currently logged in and make some decisions. The time now is to write the unit tests using JUnit 4 for this application (th...
asked by 25.02.2016 / 16:13
2
answers

Generate sequential number in java with Hibernate

Is there any way to use Hibernate to generate a custom number to be the ID number of a particular record? I have a system that stores care done to a patient, every time a new care is created is generated by the bank auto increment the numberi...
asked by 28.02.2016 / 18:39
3
answers

Expand or Minimize code snippet in eclipse

It would be possible to minimize orexpand justasnippetofcodeinsidea{...},exampleblock using the eclipse IDE?     
asked by 12.11.2018 / 13:40
5
answers

Sum of multiples of 3 or 5

I'm trying to build a program that finds and adds the multiples of 3 or 5 below 1000. The problem is that it is returning a result of the sum that does not match what I ordered. package basicojava; public class Multiplos { public s...
asked by 15.08.2017 / 02:24
2
answers

How to Capture a Keystroke with the Program Running in the Background

The code I have so far is this: public static void main(String[] args) { SystemTray tray = SystemTray.getSystemTray(); Image image = new BufferedImage(10, 10, 10); String tooltip = "Oi amiguinho"; PopupMenu menu = new Popu...
asked by 28.08.2015 / 21:18
1
answer

How to connect DVR camera in Java? [closed]

I have a question, I have searched the internet but I do not think anything consistent: how to connect to a DVR camera (not IP camera) using Java? I already use OpenCV and can connect to IP camera. Is it possible to connect OpenCV with DVR?...
asked by 04.12.2014 / 14:45
3
answers

Is an interface a variable?

I have some doubts about interfaces in relation to the way they are used. I thought the interface was not used as a variable that represents and stores some kind of data, see MinhaInterface mInterface; instead of having the sole purpos...
asked by 01.07.2016 / 20:35