I imagine this is simple - but I can't find the right combination of search terms to get an answer. If I have a multi-module application, how do I get the beans in module A available to the beans in module B.
The project setup looks a little like this:
project.ear/module-a.jar/resources/beans.xml
project.ear/module-a.jar/java/foo/bar.c...
Suppose I have two actions details and edit
I need to display in the view that corresponds to details action an link that points to edit action. The problem is that I need this link to be absolute. How can I find the URL of edit action?
...
I'm in the process of designing part of my companies architecture for its JEE web applications. I'm pretty clear on the reasons to use a façade and one or more DAOs. The problem I have is this:
There will be some logic that definitely belongs in the integration tier because it's all about keeping the data model consistent. Except the lo...
Hi,
In my DAO implementation I'm doing Stripersist.getEntityManager().persist(client);, this doesn't seem to return any errors, but I can't find the data that it persists.
My client object looks like this :
@Entity
public class Client implements Serializable
{
@Id
@GeneratedValue
private Integer id;
@Column
priva...
I'd like to learn how to develop Java-based web front-ends (I already work with J2EE server-side). Microsoft's path appears quite straight-forward (ASP.NET; like it or not).
However, I'm not sure about Java's. JSF1.2/JSP or Facelets, and to get something like a date picker learn IceFaces/Dojo?
Any thoughts on a learning path would be...
Hi, I am new in Java EJB 3.0. It is possible to call a (session) beandeployed on JBossfrom a desktop application client?
Thanks in advance.
...
Hi, I have a Java client for a session bean, I want to send it an inputStream as following:
Note: I am working with EJB 3.0
public class SenderSimulator {
public static void main(String[] arg){
Properties p = new Properties();
p.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
p.put("java.naming.provid...
this is how i normally iterate a collection
for(Iterator iterator = collectionthing.iterator(); iterator.hasNext();){
I believe most of us doing this, I wonder is there any better approach than have to iterate sequentially? is there any java library..can I can make this parallel executed by multi-code cpu? =)
looking forward feedbac...
Due to a design decision, our project contains JSP files that include other JSP files like so:
<jsp:include page="/jsp/controls/InputControl.jsp"/>
These JSP files exist under the WebContent/jsp folder of the project.
Is it possible to move the JSP files to another package (i.e. com.company.project.components.jsp) and include them fr...
Looked everywhere on sun.com but can't locate the jar file without installing the app server, etc, etc...
...
Hi.
I have a seam-gen generated project which was developed for a month. After some modifications IdentityManager.createUser, IdentityManager.createRole, IdentityManager.grantRole functions stop saving modifications in the database. I've spent more then a week for this issue investigation and now I completely have no idea what is wrong...
As the title suggests, this is in relation to Java EE and Glassfish in particular.
From what i've learned the application client is executed in some application client that has the ability to talk to glassfish. But there seems to be limitations to this regarding annotations.
Can someone give me an example of the difference in connecti...
Newbie to EJB, exploring CMP and trying to figure out the angles...
I'm using Weblogic 10.3. I've created entities, utilized them from a session bean via JPA and called the session bean from a command line app. This gave me CMP. When I tried to use the entities directly from a command line app via JPA without using the session bean, ...
I have a system that is supposed to take large files containing documents and process these to split up the individual documents and create document objects to be persisted with JPA (or at least it is assumed in this question).
The files are in the range of 1 document to 100 000 in each file. The files come in various types
Compressed...
I'm working on a Dynamic Web Project in Eclipse. The whole project was loading properly upon clicking the run in server button, a week back. But yesterday, when I pressed the run in server button, the console would give an error message stating that it can't load the Servlet Context. The server is Apache Tomcat 5.5 and the following is t...
Was just struck by a thought after looking through the ValueListHandler JEE pattern on the corej2eepatterns site:
Why does the valuelisthandler require a reference to a data access object?
Based on what is said, the ValueListHandler's job is to pretty much do the non-functional stuff (cache, sort, search traverse) with a list containing...
Hi All,
Is there a way to call a Java Servlet on click of hyperlink without using JavaScript?
...
I need a database connection in Java Web service implemented as a session bean, and I'm not sure if I do it right.
I created a class
public final class SQLUtils {
//.....
private static DataSource m_ds=null;
static
{
try
{
InitialContext ic = new InitialContext();
...
I am a fairly experienced Java programmer that is interested in learning Java EE. Could someone point me to (or describe) how I can get a test environment set up locally so that I can start developing an application (i.e. what webserver I should use, framework if any - Spring? etc.). I am working on a linux machine. I think I will lea...
I'm having a bit of a problem building a Java Enterprise Edition web application on Mac OS X 10.6.2 using Ant 1.7.1, Glassfish v3 and Java EE 6.
The problem is that the build process does not find the Java EE libraries which fair enough as I don't think Apple supply them with the default Java installation but I know they exist in the Gl...