Questions tagged as 'java'

2
answers

Differences and use of RMI, Socket and JPA

I'm new to java and would like some help to better understand RMI , Socket and JPA , and better understand its utilities and when because I do not see much choice between them. I researched a lot, but I found a lot of technical things that d...
asked by 31.12.2014 / 11:22
1
answer

Obtaining factory null in spring SessionFactory with Resource configured

The class name containing SessionFactory is DataProvider and has the following implementation: @Resource(name="sessionFactory") protected SessionFactory factory; protected Class<E> entity; protected String tableName; publ...
asked by 18.02.2014 / 18:39
1
answer

How to determine which HTML file should be displayed as input in Jersey?

I'm trying to find a way to provide a correct entry page in Jersey. A login page when there is no user logged in, otherwise I should display another home page that will call RESTful services developed with Jersey and that will change the home pa...
asked by 14.02.2014 / 20:14
1
answer

Android application closes as soon as it loads (NoClassDefFoundError)

I installed the Android SDK all right, I installed the USB drivers of my Motorola Moto G. It's all right, so much so that when I run the application directly from Eclipse, it finds my device connected. USB debugging is enabled. Just when I ru...
asked by 29.04.2014 / 03:24
1
answer

Load objects related to @OneToOne

Regarding the doubt that I have is basic, but it is taking my sleep. I have an entity that I call Destination. In the Destination entity I have several relationships of type @OneToOne with other entities in a unidirectional way as belo...
asked by 26.09.2014 / 18:41
1
answer

Questions about inserting this template

I'm developing an application that needs to have both an individual and a legal person, I would like help finding out what the insert of that model would look like If I want to register an individual, I should make two insert...
asked by 25.10.2016 / 12:15
1
answer

How to modify / evolve a distributed Hot Infinispan cache without losing entries?

Context I have a cluster with some JBoss EAP 6.4 nodes. Applications on cluster nodes share a cache of Infinispan in embedded mode with synchronous distribution via UDP (JGroups): <cache-container name="meu-container" defau...
asked by 24.08.2016 / 22:39
1
answer

Spring and EJB have the same functionalities?

Does Spring and EJB have the same functionality? If not, can you use both in the same application?     
asked by 06.09.2016 / 13:47
1
answer

Application restarts when orientation changes (rotated)?

I did this in my app: OnCreate: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ... Instances: @Override protected void onSaveInstanceState(Bundle outState){ super.onSaveIn...
asked by 19.07.2016 / 20:14
1
answer

android text gradient

Is it possible to create a gradient in the text (and not the background ) of a textView using XML only? I know that using shader can do with code ( here >) Is it possible to do this using only XML ?     
asked by 24.05.2016 / 15:43