I've noticed that the ice:inputFile component will only upload files to the directory $TOMCAT_HOME/webapps/MyAppName/upload/. I want this directory to be dependent on the user initials for the current user (i.e. user with initials abc wants to upload a file, the file goes to $TOMCAT_HOME/webapps/MyAppName/upload/abc/). How can I dynamica...
I have chosen to go the JEE route for a career path but I have been having a hard time determining which core technologies that I need to be most familiar with. I'm at the point I can write web apps without a problem with JSP's and regular servlets using JDBC or some basic Hibernate stuff (I know, HTML, CSS and have used MVC extensively ...
I already have installed Java SDK following which, I later also Downloaded Java EE which was not automatically Installed in Eclipse. How do I import the Java EE libraries in Eclipse?
...
Hi,
Consider the scenario of a typical webapp with JSFs on the front and ejb3, with Hibernate as JPA provider, talking to backend database such as mysql, etc. The main user actions are login and mostly CRUD operations (minus any D(elete) operations). And the App Server is GlassFish of course.
Given this scenario, how and where all woul...
What advantages (if any) does Weblogic 10.0 provide in terms of database connectivity (to any database) over open source or commercial alternatives?
Are there any Weblogic specific gotchas with using a Weblogic database connection?
I'm a J2/JEE, Weblogic newbie so please excuse the simple questions.
...
Hi,
I'm trying to include a project within another project as EE Dependency in Eclipse.
For some reason, the project I want to include is not displayed in the list of possible projects.
How does Eclipse decide which projects to use there?
Thanks!
...
I would like to use a WorkManager to schedule some parallel jobs on a WebLogic 10.3 app server.
http://java.sun.com/javaee/5/docs/api/javax/resource/spi/work/WorkManager.html
I'm finding the Oracle/BEA documentation a bit fragmented and hard to follow and it does not have good examples for using WorkManagers from EJB 3.0.
Specifically...
Anyone build a JEE application using Drools?. I'm not found any example of application tha use drools, EJB, Jboss and JTA.
I'm try to use drools-flow on my JEE project, and its break my project.
His libraries (drools-process-task) has persitence.xml thats conflict with my persistence.xml.
Help me please
...
The last time I looked at web applications, the consensus seemed to be Struts/J2EE. Now, it looks like Spring MVC/J2EE or Struts/J2EE are both viable solutions. Is this generally correct? Or is Spring MVC now the consensus choice over Struts? We have at least one guy who has worked with Struts before and wants to go with that. I'm more f...
Hi All
I am using JBoss 5 GA, I created a test Session bean, and local interface. I have created a servlet client. I tried to inject the interface in the servlet using @EJB..
But when I call this servlet I got the requested resource is not available!!!! When I comment the //@EJB, the page run successfully, any help please????
Jotnarta...
Ok so there are lots of nifty little technologies included in Java EE. When one learns SE, where should they go from there? I think what I'm looking for is more abstract/high level technologies that pertain to EE. I want to learn more and it seems to be difficult to find a book to transition into EE from SE. Where should I go from here?
...
I want one of my servlets (test2) to handles the "/" request (i.e. http://localhost/), while another servlet (test1) handles all other requests ("/*").
I set up my web.xml below, but the problem is that ALL requests go to test1.jsp (even the "/" request)
Can someone tell my how to accomplish this?
<servlet>
<servlet-name>test1</se...
As part of a Java EE application I'm developing on JBoss, I need to persist the contents of a file on the JNDI tree. I'm doing this by reading the contents of the file into a by byte array, then binding it to JNDI as follows.
getInitialContext().rebind("customers_datafile", byteArray);
This works fine, but the binding is lost when th...
What is the correct way to have a boolean checkbox in each row in a JSF / RichFaces dataTable? I tried the following snippet:
<rich:dataTable id="customerList"
var="_customer"
value="#{customerList.resultList}"
rendered="#{not empty customerList.resultList}" >
<h:column>
<h:selectBoolean...
A friend and I are building a fairly complex website based on java. (PHP would have been more obvious but we chose for java because the educational aspect of this project is important to us)
We have already decided to use JSF (with richfaces) for the front end and JPA for the backend and so far we have decided not to use EJB3 for the bu...
I have a very simple piece of code that reads like:
@In(create = true) OutletHome outletHome;
It was working fine (using Seam 2.2.0.GA), and the object was being created and injected without any problems. But when I tried changing it to:
@In(create = true) OutletHome deactivationOutletHome;
It suddenly stopped working, causing the ...
Hi, I would like to develop a J2EE web application having functionality like querying information from DB and sending the same to client(mostly Browser) to render the same. But I am not aware of the framework to be used for that.
Is that JSON or XML will fit in to fulfill my requirement.
Please guide me to learn the technology that fit...
I'm trying to figure out why I'm getting the following exception when a client app is connecting to JBoss. I happens on startup, when the client attempts to connect to the server.
java.lang.ExceptionInInitializerError
at org.jboss.proxy.ejb.HomeInterceptor.<clinit>(HomeInterceptor.java:77)
at sun.misc.Unsafe.ensureClassInitialized(Nati...
After this is reached in JBoss:
<session-config>
<session-timeout>30</session-timeout>
</session-config>
where does it redirect users to? Can I change the page it redirects to?
...
I'm thinking something in lines of drupal multisite, where every site should have it's folder with themes, plugins and various static files. It turns out it's not quite easy to do with Java: classes must be in one place, tag files in other, static files in third, only jsp files can go wherever. classes and tags can be packed in jars, but...