I am using an EXTENDED Persistent Context because it will allow me to Lazily Load a one-many relationship on an object and it also won't require a SELECT before I "merge" an object with the persistent context.
I have an DummyObject with:
A "Last Updated" Date Field
A One-Many Relationship
This Object is being updated every 5 seconds...
I have been trying to find a definitive resource for all of the hints that can be set through the Query.setHint(String,Object) method call in JPA, but I am coming up empty. Anyone know if a good reference?
...
Hi all,,
I had made my project in J2EE..
I wanted to keep track of who all visited my website,, with some specific information of theirs (for e.g. time they visited, IPAddress etc.. ) How can i do this with the help of java program,,
I can store the information in the database. so what I need is the logic as to how can i retrieve the...
I have to audit a large web Java/J2ee application that has evolved over several
years. It's been written by some other company, not the one I'm working for. In
it's current state it has become hard to evolve and maintain, new
functionalities are hard to add and often lead to bugs that sometime show up in
production. There seem to be some...
For a background job which I would like to run in a J2EE container, I found the suggestion to create a startup servlet and use the Timer Service API to create a managed Timer (in the answers for What tools are there for timed batch processes in J2EE?).
To create a timer, I need a context which implements the timer API. (Example)
In th...
I'm trying to build a Servlet that calls a JSP page similar to the following:
public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws IOException, ServletException {
req.getRequestDispatcher("/WEB-INF/main.jsp").forward(req, resp);
}
I need this Servlet to respond to the domain's root (eg: http://example.com/) so...
I use JBoss AS. I have a long and heavy SQL that run inside the application server. I want to cache the results based on input parameters.
I have a few options here:
Use a caching manager and manually putting the results in the cache.
Use a caching manager with loader that will "load" the results into cache when there's no results in ...
I have 2 Message driven beans. 2 Activation Specs for these beans. I have one Message bus and both the activation specs are configured to this one bus. I have 2 different queues and one queue connection factory configured for that one Message bus.
Now, I would write my code to send a message to one of the queues at runtime after determ...
To implement single sign off, i would like the user to get logged out of application B additionally when ever the user clicks logout on application A. Is it possible to implement this using some form of a POST request to application B? i.e. when the user clicks on logout:
Generate existing POST request to logout of application A
Genera...
Hi
I want to start a background process in a j2ee (OC4J 10) envronment. It seems wron to just start a Thread with "new Thread" But I can't find a good way for this.
Using a JMS queue is difficult in my special case, since my parameters for this method call are not serializable.
I also thought about using a onTimeout Timer Method on a...
We are going to start a large and scalable application which has around 50,000 to 200,000 users. my partner told me Both Groovy and OpenXava are framework for small development. My co-worker told me Both Groovy and OpenXava are framework for small development. i want to know if it's true or which framework do you recommend me.
...
Currently I am working on web project which uses JSP/Servlet and struts framework. We are using cache mechanism. I want to clean some of the session attribute from all the active sessions on particular event (For e.g. in case of refreshing cache). So what is best way to implement same ?
...
I'm looking open source pagination component, where I could just give list of items to method that would make pagination to my jsp page. I would get items from database by page parameter and pagination method would do the rest. Is there any good componenets for that ?
...
Hello good fellas i'm sure everybody is cool.I'm about to start a tutorial about jsp and jsf and the required tool is eclipse for j2ee and web tool platform.I'm a bit confused about where to find it bundled with wtp? and in which distribution is it Europa , Galileo or Ganymede ?.i know that it's here in
entreprise java because it's cle...
Hi all,
I'm new to Spring MVC, but not new to web development in Java. I'm attempting to create a simple form->controller example.
I have a form, a form controller (configured in a context XML pasted below) and my model (a simple bean). When I submit the form the value of my text input is always null, regardless. Any ideas?
Form cont...
Hello good fellas!
Sorry if my question seems dumb. I've started using Eclipse Ganymede 3.4 this week and having hard time publishing my projects to the web app server.
First of all you need to know this issue:
i installed my Tomcat 6.0.18 from Netbeans that i use for PHP and J2SE project. While i can start that server from either Netb...
I'm curious if there are any Java abstractions that are similar to .Net's AppDomain.
In particular, I'm curious because I've found that with our Coldfusion/J2EE server we need to restart it every few days due to a slow memory leak that we haven't been able to easily track down yet. This can wreck our long-running processes and we'd rea...
I am currently testing out using OSGi. I am running this through Eclipse. I want to have my DAO layer as part of an OSGi solution, but my first stumbling block is this error:
Jun 29, 2009 6:12:37 PM org.hibernate.cfg.annotations.Version <clinit>
INFO: Hibernate Annotations 3.3.0.GA
Jun 29, 2009 6:12:37 PM org.hibernate.ejb.Version <cl...
I am having four different project, and i am using Weblogic to deploy my projects. There are several libraries ( jar files ) which are common for all projects. Currently each of my project are having lib directory and have almost same set of libraries. Now, is it possible to have this lib directory outside WAR files and access them.
...
I'd like to do the following but am not sure if it can be done and if so how. Create a Grails application on my local machine and test it. Then somehow package it up along with the Jetty server, and install it on a users desktop. The installer would put an icon in the start menu that would launch the server and load the start page in eit...