Questions tagged as 'java'

1
answer

Alternative methods for storing in Application Server

Good Afternoon Personal, I would like some suggestions for alternative ways of accessing data on an application server, more specifically a JBoss 6. It occurred that I have an application hosted on a JBoss 6 and I need from time to time to retri...
asked by 17.09.2014 / 21:48
1
answer

Stack in Java interleaving values [closed]

I have two stacks I have to create the third one interleaving the values of the two stacks I created the stack and all I'm having a lock to implement is the code to interleave follow the code: public class Pilha { private Stack p;...
asked by 12.09.2014 / 22:53
1
answer

Vector in Java with fields in each cell

I'm doing a work in java and I need to know how I do a structure similar to a C struct, where each cell in the vector has 3 fields, example vector [i] .ity, vector [i]. height .. . If anyone can show me a code from a framework already implemente...
asked by 19.09.2014 / 05:42
1
answer

Exception occcured while finding Account via ID

gave this error when trying to execute a class error sef.module13.activity.AccountDAOException: Exception occcured while finding Account via ID this is the class package sef.module13.activity; // Complete Code public class AccountDAOExce...
asked by 12.09.2014 / 02:10
1
answer

Create Java Index generating HTML file?

I was having to create an index with a book passed by parameter ( File , BufferedReader ). So far I have not gotten good results, I only have one code that generates a TreeSet with all the words of the text passed by parame...
asked by 29.06.2014 / 01:18
1
answer

NullPointerException with CDI and JAX-RS

I am studying JAX-R S and created a simple project with the following class: Webservice Code @Path("generic") public class GenericResource { @Inject private MeuServico servico; @GET @Produces("text/plain") publi...
asked by 26.06.2014 / 01:30
1
answer

Capturing events on a button

I'm starting in Java GUI and wanted to understand how event trapping works on a button, such as in the code below: SimpleGui1.java import javax.swing.*; import java.awt.event.*; public class SimpleGui1 implements ActionListener { JB...
asked by 03.08.2014 / 06:40
1
answer

Improved Hibernate performance

I'm developing a Swing application using Hibernate, but I still do not know all the tricks that the tool has and the development used-it gives me a nice knowledge, but I came across a situation that I researched on the internet and in some books...
asked by 11.08.2014 / 17:37
1
answer

Update all schemas with multitenancy architecture

Good morning. Next, I have a multitenancy application using Hibernate with JPA. We recently deployed the multitenancy architecture and in persistence.xml was configured to automatically update the default schema when deployed to the project,...
asked by 16.02.2015 / 12:55
1
answer

How to do custom query with JPA + Hibernate

Hello, I would like to know an elegant way to make a custom query using JPA . Basically I want to run the query and return it to an object list, but usually it will be a query with N tables and only with the fields I will need. I und...
asked by 15.01.2015 / 18:59