Questions tagged as 'java'

1
answer

Java Tutorial for reading A3 Digital Certificate

I'm looking for a tutorial for implementing reading cards with A3 digital certificate. I have never worked with anything like it before and now this need arose. I searched for some things on the web and found nothing like a cake recipe, just a f...
asked by 02.09.2014 / 22:59
2
answers

How do I pass the session from context A to context B within Tomcat 05

I try two applications made in Java using Tomcat 6 and are in different contexts strong> but one interacts with the other because they are integrated, I need one to pass their session to the other context, or that contextA can set valu...
asked by 05.01.2015 / 17:10
1
answer

Design pattern Observer applied to events

I'm studying the design patterns and I'm trying to apply a real situation to them. And an example I made was in the event scenario: In this scenario every event has participants to register. So, I have implemented the Observer standar...
asked by 24.12.2014 / 11:07
2
answers

How to put a PopUp that asks for authorization to use GPS?

People, I'm programming in Java (with Android Studio) and this code to get the GPS position, which works great! Now I'm trying to learn how to ask the user permission to use GPS, but I found "more info" on google ... And nothing else seems...
asked by 25.01.2017 / 00:52
1
answer

Error while uploading an AngularJS + Vraptor file

I have a system where I can upload files through an Angular library ( ng-file-upload ), but if the file is larger than 3MB when I try to upload, I have the following errors:    GRAVE: Servlet.service () for servlet [default] in context...
asked by 14.12.2015 / 12:02
1
answer

Is it correct to say that Encapsulation aims at Cohesion? Because?

Based on the statement below, my question follows:    Cohesion and Coupling are very software engineering principles   used. When we want to have a mature and sustainable architecture,   we must take these two principles into account, since...
asked by 06.11.2015 / 11:12
1
answer

View recursive calls in eclipse

Is there any eclipse tool that shows recursive calls like in this image? Where can I see the details of preference graphically?     
asked by 21.12.2015 / 20:04
1
answer

How to read .txt file?

How do I read a .txt file that is written in rows and check if a line in that file has a value if you make a check in checkbox . Example: Files txt: 123 234 2456 If you have the file 123 , check the checkbox 123...
asked by 05.09.2015 / 19:10
2
answers

Know if a class is native to JAVA or created by the User?

I've created a method that uses reflection to execute getters over an object, but I need to know if the class is native to JAVA, for example: java.lang.String , or if it was implemented by the user: br.com.foo.bar . In PHP I can tell if it...
asked by 30.07.2015 / 19:08
2
answers

Multiple persistence units with Spring Data

Is it possible to create multiple persistences units by connecting to different databases in the same JPA application using Spring Data? For example. I have an application that will run on MySQL normally. However, it will have to query in an O...
asked by 15.01.2015 / 13:24