Hi all,
I am using EJB3 on Glassfish using the default TopLink persistance manager. Within a Session Bean, when the persistence manager catches a DB exception, it marks the transaction to be rolled back, and throws an EJBException, in turn wrapping a RollbackException. Now I was expecting to be able to get the original jdbc exception ou...
Is JSP part of the whole JEE/J2EE package? How are they related?
...
I am working on a project where we each service refers four separate data-source. Until now, we have been using ProxyFactoryBean to refer to the Dao target and the Transaction Intereceptor - something like this..
<bean id="readOnlyUserProxy" class="org.springframework.aop.framework.ProxyFactoryBean">
<property name="target" ref="read...
I am writing a client for my EJB and when trying to execute it, I get the following exception :
javax.naming.NoInitialContextException:
Need to specify class name in
environment or system property, or as
an applet parameter, or in an
application resource file.
I just can't understand what the problem is. I've been at this f...
I would usually get this message when I was importing or creating a new project. Everything would build fine but the compiler would give me a "Enumeration cannot be resolved" error for all Enum classes/objects.
I resolved this by changing compliance from Java 5 to Java 1.4, since Enumeration was added in Java 5 which was not there in Ja...
I need to access some files on servers from servlet. They have different paths on my development machine and on the deployment server. I would like to put some config file (with paths) somewhere (like shared dir in capistrano deployment) so application could read it. Or maybe set some property on the application server or anything like t...
Our application uses a topic to push message to a small set of subscribers. what sort of things should i look for when modeling a jms message with respect to the size of the actual message to be pushed. Are there any known limits or is application server specific? Any best practices or suggestions on this topic (pun unintended)?
...
I am working on developing a webapp (visual jsf, ejb3, hibernate on glassfish/mysql) that works with an existing legacy system.
I have an 'employee' table (with fields such as name (String), location (String), etc.) which is separate from an employee table on the legacy db2 side. I do all of the webapp processing with my employee table....
Hello all,
I'm trying to figure out how to deploy a huge (40-50 MB) EAR file to the server through a rather slow VPN connection. The EAR contains EJB and WAR projects created in Glassfish, and 90% of the file size is from external dependency libraries used.
Has anyone came up with a strategy for elegant deployment to production system...
I tried to implement MessageListener, but it dosen't work, but when I use MessageListner, it doesn't work. So what should I do that MessageListener starts working, I'm using jboss 4.02.
recv.receive(); // This works
recv.setMessageListener(new ExListener()); // This doesn't work
public static class ExListener
implements Messa...
Our JavaEE application has a services which is responsible for installation and start up of other services depending on the configuration stored in a database. Services are installed using the
ServiceControllerMBean.install(
org.w3c.dom.Element element,
javax.management.ObjectName objectName)
method. This method requires a cla...
Can I use Criteria queries with EJB3 entities? If so, how can I combine them with EntityManager?
...
The company I work for only has standard edition, and can not afford a pricey monitoring solution. And this is installed on windows 2003, IIS 6, Coldfusion 8.
But we need a way to remotely look at performance of the coldfusion server, since perfmon can not send data remotely.
And we don't want to put in tons of data into sql server, to...
I would like to hold a ref of some other entity using its identifier.
The object model which I am working on is huge and related entities hold lot of data. Also few pieces are cyclic in nature and I suspect that holding objects directly will be a problem.
So consider following as an example say there are two entities A & B:
Class A
{...
Is it possible to replace the standard error pages from JavaServer Faces such as
500 Internal Server Error
?
These include information such as the stack trace, etc. But for the users, when the page is in Production Mode, I want to show a friendlier page saying that the request did not succeed.
...
Where can I learn about using Struts in Java?
...
I am currently looking in to some file uploading using Java Server Faces. I've found this great introduction to it using RichFaces. However, I have some troubles understanding the process here.
First the user selects a file and if the immediate upload is set to true the file is processed using ajax, so far so good. When it comes to the ...
I have come across a situation (which I think is weird but is possibly quite normal) where I use the EntityManager.getReference(LObj.getClass(), LObj.getId()) to get a database entity and then pass the returned object to be persisted in another table.
So basically the flow was like this:
class TFacade{
createT(FObj, AObj) {
T T...
Hi.
I'm developing a Jboss web service that requires to access files which are in a folder of the project. When I deploy the web service, it creates a .jar, but the folder doesn't go inside of it, even if I added it to build path.
How do i tell jboss to place the folder inside of the .jar?
Thanks in advance.
...