I have just started work on an existing Java web application and I find that it takes about 5-10 minutes for the application to compile and run. What are the common ways to reduce this time? It is my first time working on an application of this size. I am used to coding and testing incrementally and find this wait unbearable.
Any help w...
I have installed Glassfish v3 on a standalone server running ubuntu-server 9.10.
I can open the Admin website if I use a browser running on the server by browsing to:
http:// localhost:4848/
I would like to access it from a remote machine by browsing to something like
http:// mydomain.com:4848/
The firewall is definitely allowing tra...
I am writing a small app to automate deployments. Basically, it checks an ftp server periodically for a new .ear file. Compares the checksum of the remote ftp file against what is currently deployed. If there is a new ftp file, then it gets picked up and deployed...
I then have a check to see if the app has deployed successfully. At...
I have an entity class called "Group" and NetBeans warns me "The entity table name is a reserved Java Persistence QL keyword".
A similar case would be the use of reserved SQL keywords.
Will this name be escaped? Would the use of a different table name solve the problem @Table(name="otherName"). Or should I rename the class?
...
I want to build a JEE application (EAR) which not only provides web service(WAR) or direct JMS request (EJB), but I would like to also accept the socket request (e.g. UDP packet).
I have tried writing a listener with java.net.DatagramSocket, letting it run as separate process, and redirecting the request to my EAR application.
the ques...
Java has the transientkeyword. Why does JPA have @Transient instead of simply using the already existing java keyword?
...
I am new to JSF, so I have many problems with it. I have solved much, but now I have a problem when I make composite component of column.
This is the code:
myPage.xhtml:
<h:dataTable >
<util:myCol />
</h:dataTable>
myCol.xhtml:
<composite:interface>
</composite:interface>
<composite:implementation>
<h:column>
<f:...
I am working on a Java EE 6 Enterprise Application that runs on my local Glassfish3 installation. One of my EJBs needs to send messages to a remote JMS Broker which is located somewhere on the Internet.
Unfortunately, the Internet connection is rather unreliable, so my idea is to first send the messages to the local Glassfish's own JMS...
Since Servlet 3.0 asynchronous processing is supported. Would it be better, to use always asynchronous processing? Or in what cases is synchronous processing better?
...
Hello all,
I just started to study Java EE and made some examples (Just Hello World and some a bit more complicated). Now I'm doing a small application myself for learning purposes. I made an EAR, an EJB and an WAR just like in this example but, instead of working with interfaces, I'm working with real classes.
In summary, EJB and WAR ...
I am using Java EE and the Spring framework. I am writing my POJOs, and the base object for my system should have a globally unique ID. My question is: what would be a "best-practice" way for me to generate this ID. This id must also be stored in a db table as a primary key.
...
What are good Java EE real world (not like learning projects like PetStore) open source applications? In particular I'm looking for examples of using ORM (JPA-Hibernate), Spring (IoC, transaction managment, security) in a real world environment
ps a good example what I'm looking for - ASP.NET starter applications (for .net platform)
...
I am starting out with web development under Java EE and spring and have a high level design question:
I have a basic shell set up: I have coded some domain objects (mainly getters and setters for various object attributes which I ultimately want displayed on the page). I am wondering what the proper way to tie everything together is on...
JAX-RS has some MVC support, but I wonder if JAX-RS is really a good choice to build web application for human use.
If a user enters wrong or incomplete information in a form, it should be displayed again like with Grails or Wicket. Is there a comfortable way to do this with JAX-RS?
As far as I know the URI mapping doesn't work correct...
I'm trying to write a simple java applet program, but it seems that I'm missing the javax.servlet.* class definitions.
Using:
apple snow
eclipse Java EE ide
Do I need to add a specific JAR file to my project and if so, which one?
I have Macports installed in case something from the ports might be helpful.
...
I am using Java EE with Spring framework. Should my service classes be created as singletons? Can someone please explain why or why not? Thanks!
...
I have a running dynamic web project in Eclipse (Java EE + Maven + Spring). I am at the point where I need to integrate a persistence layer and want to use Hibernate with a mySql database.
I am wonder what plugins would be useful for me at this point? For Hibernate should I install hibernate tools or is it not necessary? Are then any ...
The web app I'm working on sometimes has a <rich:messages> tag inside of an <a4j:region> tag, sometimes not. I'm guessing that the messages tag needs to be inside of an a4j region, but wasn't able to determine this from the RichFaces documentation. Any thoughts?
Thanks in advance.
...
I am creating a custom JSP tag by extending SimpleTagSupport. Normally in the view, I could do something like <c:out value="${key.attr}" /> using jstl to pull data from the model. My question is: when creating custom tags (by using SimpleTagSupport), how do I gain access to the data from the model? Thanks.
Just to clarify, I need a c...
How may I automate (no downtime) deployment?
And be able to turn any server off for maintenance.
What tools should I use?
I am using Tomcat but I am willing to move to other Java EE server best suited for the requirements presented.
I would like to know ready to use configuration details.
...