j2ee

How to create a Web Server for asynchronous request from a Flex/Air client?

I have created a client with Flex Builder which works in a browser but also in an Air windowed application. I must connect it to a server and it has to do asynchronous request related to changing data of the server. Because of the too much expensive cost of LiveCycleDS license, I was looking for other ways, maybe open source and i found ...

J2EE Packaging: Two ears and one shared EJB

Let's say I have two ear file and one .jar file with an EJB that both of the EARs use. I want to do this because in some cases I might deploy one ear to an app server, but in others I might want to deploy both and I don't want to create different ear file for each scenario. How do I best package the "client" classes for the EJB? Using...

Which is easier to extend, Alfresco or Nuxeo?

I am considering doing a rewrite of an open source project from LAMP to J2EE and integrating it with an enterprise oriented CMS as the GUI. The two most viable OSS ECM J2EE CMS platforms that I have run across are Alfresco and Nuxeo. I need to get into some deep integration with whatever CMS I pick. Which one of these two technologies (...

Deploy J2ee Project in Weblogic

I have WebLogic installed in my computer. I already added it as a server in my Eclipse IDE. How do I configure my Web application to run or for it to be deployed on the WebLogic server. I found a sample project and found a weblogic.xml in it. Where do I start? Do I need to add something, etc. ...

Problem during JBoss Launch

Hi folks, I've a problem with JBoss 3.2.6. When I try to launch it, I get this error. 09:19:22,449 ERROR [StatefulSessionContainer] Starting failed jboss.j2ee:jndiName=TypicalBean,service=EJB java.rmi.ServerException: Could not bind home; nested exception is: javax.naming.CommunicationException: Network is unreachable [Root excep...

how to create vanity url in java web applications?

Hi If we have a person-directory application, where we can check the details of a specific person (for example, person with id 239) at http://person-directory.com/detail.jsp?id=239 how can we create vanity urls in it? i.e. instead of typing the above url, we use http://person-directory.com/julius to open the detail page of person...

How to load files into session bean

Hi all, I have a java EE application EE5 EJB3. I develop using NetBeans 6.7 and GlassFish 2.x I need to have a configuration file (*.xsl, *.xml) that is deployment/client specific. My questions are: 1) where do I put files that are external to the ear file? 2) How do I load the files into a session bean? can I use injection? I mana...

Porting J2EE application from weblogic to Jboss, JTS? (weblogic.jdbc.jts.Driver)

My weblogic(8.1) application uses weblogic.jdbc.jts.Driver to connect to Oracle. I'd like to port this app to JBOSS(4.0) and quick googling did not yield the correct driver to replace this JDBC JTS driver with in order to connect from Jboss, ideas? ...

WebSphere 6.1 - getting profiling information just from the console

The situation is like this, we have a very slow WebSphere 6.1 deployment, and want to get information from the console (we can't have access to anything but the console) What are the tools we have there to troubleshoot (performance issues, memory etc)? Remember, all we can have is web access to the console web interface Thanks ...

Solution to the long running query problem in a web application (asynchronous request)

Here is the problem A user of an enterprise web application is performing a task that results in a long (very long) database query (or other long processing intensive task) Problems: Request timeout - after a while the user may get a request timeout Session timeout - if no session keeping methods are used, a session timeout can occur...

JBoss RMI Transaction

Hi, How can i can achieve remote transaction while using Remote EJB (over RMI/IIOP or RMI/JRMP). Is that JBoss 4.0 support this kind of transaction or should i use jotm or atomikos? Thanks in advance ...

Disadvantages of J2EE session management in ColdFusion

Manual page tells about bunch of advantages of the J2EE session management (SM) over the ColdFusion SM, but what about other side? Which problems can appear when using J2EE SM? Also, if J2EE SM is so cool, why ColdFusion SM is still default? I can see one obvious reason: backwards compatibility. And this is typical for Adobe. Same time...

Notify user about session timeout in J2EE

My requirement is to notity the use with a popup saying that the user session is about to time out in x seconds in case user does not perfrom any activity on the web page. Addition to this requirement is to decrement the value x seconds dynamically in the popup. The environment I use is J2EE. Please suggest. ...

How to work with Weblogic in Eclipse?

What are the recommended plugins for eclipse to work with weblogic? Specifically I would need to work with older version of weblogic, 8.1, however I could use any version of Ecplise. I would like to debug the application and set breakpoints etc. My bigger task is to move the project over to Jboss, can I deploy the same app on both app s...

Best way to plug memory holes in J2EE struts app (without paying money :( )

I have a J2EE struts app running on Weblogic 10.3 which has obviously severe memory issues. My company won't buy 3rd party tools like Jprobe so my only option is to use freely available tools. I have enabled gc logs and observed that memory consumption is unusually high triggering frequent gc cycles. Right now I am configuring JAM consol...

Pros and cons of writing complete view logic of a web application in a javascript library (ExtJS) ?

I am a newbie in web development using javascript libraries. But I recently saw a J2EE web application that uses ExtJS extensively (say 90%) for rendering the web pages. The web pages in question are either simple forms or grids (tabular reports). The JSPs are fairly threadbare and simply delegate to the ExtJS framework (using onReady fu...

what is the difference between j2ee and Asp.net

i like to know the difference between Asp.net and j2ee ...

How do you decide in which entity classes to put JPA NamedQuery annotations?

Say I have a Customer - CustomerOrder one-to-many bi-directional relationship with the CustomerOrder holding the total value of each order. If I had a query to find the total value of all orders for a particular customer : select SUM(o.orderValue) from CustomerOrder o where o.customer = :customer Does it matter in which entity class ...

Error code mappings in web.xml not working

Hi, I have created a simple web application, for which I want all responses with 404 status code to be redirected to an error page within my web-app. I have included the following entry in my web.xml file. <error-page> <error-code>404</error-code> <location>/error.html</location> </error-page> In my main servlet, I send back...

How do i view the log/console for the J2EE Preview server/container in Eclipse?

Hi, I'm working on a struts2 web app in Eclipse, and am using the built-in J2EE Preview server. How can i view the logs / console for it? I'm having some problems and now my previously working site is showing Error 404 everywhere, and the console tab at the bottom window of eclipse isn't showing anything. Cheers all edit: Here's some...