Posts by João • 609 points
29 posts
-
2
votes1
answer738
viewsQ: Elasticseach, Redis, Relational Database or whatever?
I’m starting to work with the Elasticsearch and from what I looked so far on the net brought me some doubts. What is the difference between Elastic and Redis? It is advantageous to work with a…
-
1
votes2
answers1959
viewsQ: Call Stored Procedure with JPA 2.0
I need to call the following process below, only the company’s projects use JPA 2.0 and all the examples I find are for JPA 2.1 +. prc_performance_vendas_obter(vdataini => :vdataini, vdatafim…
-
2
votes1
answer1612
viewsQ: Thymeleaf does not find Sources
I’m creating a project with Springboot and Thymeleaf. I set up the whole project, I find the template and the pages, so my template can’t find the files css and js; Html <link rel="stylesheet"…
-
0
votes3
answers617
viewsA: Move image to another form by clicking the c# button (Visual Studio)
Try this. In the form private void button1_Click(object sender, EventArgs e) { Cadastro cadObj = new Cadastro(Convert.ToString(horas), txt_placa.Text, txt_cor.Text, txt_modelo.Text);…
-
0
votes0
answers73
viewsQ: Access Remote EJB within another EJB
Good afternoon to all. I’m in a project I need to lookup a remote EJB inside another EJB in a different container. The problem is when I try to do the lookup Initialcontext is giving the following…
-
1
votes1
answer196
viewsA: Sending of Websocket file
I solved the problem with the following algorithm. Java @OnMessage public void message(Session session, String msg) { System.out.println("recebendo arquivo: " + msg); if(!msg.equals("end")) {…
-
0
votes1
answer196
viewsQ: Sending of Websocket file
I need to create a chat channel for a system, this channel should allow to receive and send files(Docs, xls, png, etc...), I searched a lot on the internet and I did not find many examples, but I…
-
3
votes1
answer384
views -
1
votes0
answers38
viewsQ: Doubt Jboss Data Virtualization
Good evening, I am with a project where I have to consume tables generated in star format, for use of BI, the company bought a paid tool, but do not want to spend much on licenses. Therefore a user…
-
0
votes1
answer177
viewsA: Maven Spring MVC + JPA Project
I solved one of the problems! To the error that I posted in stacktrace, I was able to solve using the annotation @Transactional spring in the repository implementation. Now we just need to try to…
-
1
votes1
answer177
viewsQ: Maven Spring MVC + JPA Project
I’m new to Spring MVC, created an example Maven project for Spring MVC using Hibernate and JPA. I found some problems when configuring persistence.xml but I could not use dartasource managed by…
-
1
votes1
answer90
viewsQ: Read/Write information to file . cds
I took a project to develop in C#, the project is based on reading information from a file .txt and save the information to a file .cds which is used in a system developed in Delphi. I looked for an…
-
6
votes1
answer694
viewsQ: Division of the EJB Project
I have an EJB project, to implement the system the project needs to be divided into 3. The Database on a machine The User Interface on another host And the EJB(Services) in another But the whole…
-
1
votes3
answers3382
views -
1
votes0
answers108
viewsQ: Is using 1=1 in WHERE wrong?
Is having a certain dispute whether or not the use of 1=1 in the where of a query in my team. Using this method to generate querys dynamically brings some harm in query performance or it does not…
-
3
votes2
answers607
viewsQ: How to not send Target files
When Syncronize in my project on SVN it appears a giant list with the files of Target where if I try to give commit of error. How to make SVN ignore these files? I’m using the Eclipse SVN.…
-
5
votes2
answers1147
viewsQ: Differences and use of RMI, Socket and JPA
I am new in java and would like a help to understand better RMI, Socket and the JPA, and better understand their utilities and when applied, because I don’t see much to choose between them. I did a…
-
8
votes3
answers5509
viewsQ: What’s the difference between using Inner Join or Where relationships
Good morning, I am with the following doubt, I work in a company where people bother when it comes to using inner join for the sake of efficiency and database processing, I would like to know if the…
-
1
votes0
answers36
viewsQ: How to set the location of the "Resources" directory?
I’m creating a project in Apache Wicket and as I’m new at it, I’m trying to define background-images and grab some Javascript functions from Bootstrap. The problem is that I am unable to define the…
-
-4
votes1
answer763
viewsQ: Cannot create a Session after the Response has been Committed
I have the following error in my application that occurs when I access any page. I had to redo the layout of the application and that’s when the problems started. Whenever I accessed a page, except…
-
1
votes1
answer67
viewsQ: Change div background on visited
I’m trying to alter the bottom of the div, when the person is visiting that link. I tried to use the visited but it’s not working. HTML <div class="e divFloatLeaft"> <h:link…
-
2
votes1
answer111
views -
3
votes1
answer99
viewsQ: "div loading" Servlet
I have a screen that has the function of sending a file to the server via servlet but since this file might be big, I needed to put a panel or a div with a gif of load. I’m wearing richfaces, I’ve…
-
1
votes1
answer138
viewsA: Sessionscope is not coming on Request
I solved the problem as follows. I added the variable loggedIn in the session when the user is logged in, and in the filter picked this variable by request that I receive. I don’t know if this is…
-
1
votes1
answer138
viewsQ: Sessionscope is not coming on Request
I have a bean to log in, when I try to get it in the filter class request it is coming null. The information that is coming on the console is this. 17:29:57,968 INFO [stdout]…
-
1
votes1
answer126
viewsQ: Richfaces fileUpload does not invoke Listener
I’m using the latest version of Richfaces, I copied the example of show case on the Richfaces website, and the example does not invoke the Istener, I’ve tried everything, someone could help me?…
-
1
votes1
answer127
viewsQ: Send a List<Entity> on Redirect
I have a list and I need to send it to another page to fill a table, when the redirect ends the page loads only the table does not fill because the list has been emptied, as I keep it with the…
-
0
votes1
answer90
views -
2
votes2
answers2748
viewsQ: Passing parameter null to a method
It is possible to pass/receive null parameters in Java. In C# I know it is possible using ? in kind. public DateTime Teste(DateTime? exemplo){...} In this case the example I know can come null, in…