Questions tagged as 'java'

1
answer

@Async does not work in Spring

From a web application with spring I want to send emails, and I want to do it asynchronously. For this I want to use the annotation @Async of spring. This is the configuration I have: servlet-context.xml <!-- DispatcherServlet Context...
asked by 18.12.2016 / 10:46
2
answers

I have a Class A with instance of class B and class B has an instance of class A

I have two classes that need each other, that is, I have an A class with a Class B object and in Class B I have an object of Class A. What is the best way to do it? In particular: I have a class A that manages beacons (input and...
asked by 16.12.2016 / 15:06
1
answer

What is the SQL statement to insert data in my Database in MySQL in Java?

In my program using Java in Eclipse and MySQL, I have the following data: Call number (int): callcenter.getTotalCalls () Type of call (string): Local Source Number (string): txtOrderNumber.getText () Destination Number (string): txtDef...
asked by 22.11.2016 / 03:45
1
answer

Problem with SQL query in Oracle [closed]

I have a system which performs the query of a product in a store. That is, in my interface I select todas and then I enter the product code and I should throw all the stores with that product available. The query I modified it for that pu...
asked by 14.11.2016 / 16:21
1
answer

how can I get a specific data on a map in java? [closed]

Hello, how can I take a specific value within a map? by means of a set ?? do { Student s = new Student(); s.setListName(numerolista2); System.out.println("ingrese su nombre:");...
asked by 08.11.2016 / 05:57
2
answers

Problem with the number of jatable jtable results

I'm trying to delete records but I have a problem removing several, because the following code int[] rows = datalistado.getSelectedRows(); only returns one. This is my code: public void leeRifIdentif(){ String RIF;...
asked by 27.12.2016 / 03:04
1
answer

Refresh clock

import android.annotation.TargetApi; import android.icu.util.Calendar; import android.os.Build; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.widget.Button; import android.widget.TextView; import java....
asked by 24.10.2016 / 15:39
1
answer

Large Decimals in Mysql

I want to know what kind of data to use for numbers that can be decimals but very high, like 10'000'000,123. I'm going to use it in Mysql, Java and Javascript. Thanks in advance.     
asked by 27.10.2016 / 15:20
1
answer

J2EE security and sessions

I am using jdbc-realm and the appropriate configuration of web.xml to authenticate certain resources with authentication. The form uses tags j_security_check , j_username and j_password . Protecting them prote...
asked by 07.11.2016 / 19:58
2
answers

Error "Column count does not match value count at row 1" in java [closed]

Good morning, When I insert or update data in MySQL from java I get the commented error. I do not know why, the number of columns is correct ... in fact, before I had the same code but with fewer columns, I do not understand where the problem...
asked by 18.03.2017 / 11:49