j2ee

How to configure ActiveMQ JCA connector in JBoss to use XA connections?

On JBoss 5.1.0 I have Datasource (PostgreSQL 8.3.11) configured using *-ds.xml (standard jboss DS). It uses XADataSource (PGXADataSource). I also have ActiveMQ broker (right now it runs as in-VM, under JBoss, but it will be on separate server latter). What I want to do is to make ActiveMQ Connection Factory and Datasource to participate...

A comparison between Microsoft Visual studio 2005, visual basic and Netbeans

I need to write a paper on the comparison between (Microsoft Visual studio 2005 to develop web applications using asp.net) and (visual basic and Netbeans to develop j2ee applications using java).I need suggestions for good webpages,journals or documents which can help me out here. I have to write at least 1500 words so any suggestions ar...

Java FlowChart framework for the web

Do you know any Web FlowChart frameworks for Java ? What exactly do I mean by "Web FlowChart framework": Capable of generating BPMN diagrams; (If not BPMN, at least basic flowcharts / graphs that are easily customizable); The generated diagrams are easily embeddable in a Java EE (Oracle Adf 11g) application; The generated diagrams can...

j2ee.jar in jboss 6.0 as

i install jboss 6.0 in mac os i could not find j2ee.jar in JBOSS/client directory. where can i found j2ee.jar? i have check some of links. it mentions j2ee.jar locate in JBOSS/client but it jboss 4.0 version. ...

What is backend and frontend programming?

What is backend and frontend programming? ...

location of firefox source code that parses Set-Cookie header?

Can someone please point me to the Firefox source code where Set-Cookie header is parsed? I want to understand the exact behavior. Read further if you want to know why? For various constraint in my application, I need to pass multiple cookies inside single Set-Cookie header. RFC-2109 clearly mentions, "Set-Cookie response header com...

Auto Log Off once the session expires

Our application logs off after 30 min and gets redirected to login page,i am specifying session timeout in web.xml and using a requestProcessor for redirecting.I want to show to the user a message saying your session got expired once the session expires,how can i do that.Auto log off ? I wuold like to prompt the error message on the page...

J2EE specification and multi threading

Hi guys, I am writing a J2EE application using Struts and Spring. In one of the operations there is heavy database processing, and hence performance issues. What I want to know is can I use multithreading here? I think the J2EE specification does not allow custom threads to be created apart from those created by Server(I use Weblogic...

Problem implementing GET REST service due to JAXBException: IllegalAnnotationExceptions

I am having a really strange problem implementing Java REST service. I am trying receive the following model: @Data @EqualsAndHashCode(callSuper=false, of={"primaryKey"}) @Entity @Table(name = "T_UNIQUE_IDENT_TYPE") @Cache(usage=CacheConcurrencyStrategy.NONSTRICT_READ_WRITE) @XmlRootElement(name="UniqueIdentifierType") @XmlAccessorType...

How to navigate around and get familiar with large Java/Java EE code base?

Hi All, This questions is inspired from How to navigate around and get familiar with large C or C++ code base ? This is indeed an major problem for someone how has just joined the team and who is not aware of Application Architecture and Code Design. Currently I am in similar situation but in my case I have very large Java/Java EE cod...

j2ee single login from just one ip address

I am using Glassfish V3 with filerealm. How do I ensure each username can only be login into one machine at any one time. I thought of using a hashmap datastore to store the remote address, but then it would means I would need to change all the struts actions to check if the user has already login and is not from another ip address. ...

Start and Stop Thread from WebApp

Hi, I write to understand if and how I could do the following thing. I have a WebApp for management, in which I should add a button (or something similar) to start and stop a Java thread (this thread polls on DB, send email and so on). The aim is to enable users to manage the life of this thread, deciding whether to keep it alive for a ...

Freemarker doesn't see standart tag libraries in Struts2 project

I am currently upgrading our web application from Webwork to Struts2. I run to problem with freemarker that I am unable to resolve. In FTL file I have: <#assign c=JspTaglibs["http://java.sun.com/jstl/core"]> When rendering the page I get: JspTaglibs["http://java.sun.com/jstl/core"] is undefined. I use other taglibs (e.g. sprin...

communication between mobile and web site

Hi Am not mobile developer or j2ee developer , I want some open source , which satisfy my below needs , send alert message to mobile ,(2-way communication) , Looking free open source , Need to store all message(incoming and outgoing messsages) into Database , We are not ready to spend money , may be one initial setup cost ready to s...

Struts2 Configuration Understanding

Hello All... Recently I am going through with one tutorial for Struts2 UI Tags. So, I found that example and execute it with perfection. But, in the struts.xml configuration file, I couldn't understand some of the OGNL expressions. That I am writing here : <struts> <package name="default" extends="struts-default"> <action ...

How kml file works.......

Can I use run time coordinates in kml file, if so how and plz give me simple example how to fetch value for that? I'm wating for answer.......... ...

Best practices for a heterogeneous .NET WPF & J2EE 3-tier architecture

I'm mostly an ASP.NET developer, so I'm not very familiar with either J2EE or WFP best practices, patterns etc, but I feel that the project I'm involved in could have been done better, but I can't quite put my finger exactly on what's wrong with the architecture. What is the best(*) architecture for a heterogenous distributed 3-tier app...

Session Beans and EJB3 vs Spring

I was curious about the capabilities of Sessions Beans in EJB 3 and whether they can be replaced in a typical mid-scale enterprise application with Spring. I found this article: http://drag0sd0g.blogspot.com/2010/01/session-bean-alternative-spring.html that states the following: "Because of heavy use of annotations, you can pretty much...

Useful Servlet Filters to analyze website usage patterns

I'm looking for some powerful j2ee servlet Filters that make it simpler to track, monitor, block, analyse etc. Java web applications and (Tomcat/Glassfish etc.) web servers. I'm more of a programmer than a heavy-duty server administrator, so the reason I'm looking for a software solution is that I don't want to spread out configuration ...

jsf 2.0 <f:ajax> for case rendering ui components.

Hi all. Have a quit strange behaviour of f:ajax. Scenario: registration form with 2 step registration 1. user fill base info (name, email, phone) and send it - email sending to user - user confirm his email - by clicking on link he comes to the same page but now he have many fields to fill 2. user fill all fields, but f:ajax not ...