Win a copy of Java Challengers this week in the Java in General forum!

Naidu Sanapala

Greenhorn
+ Follow
since Sep 15, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Naidu Sanapala

Hi,

I have an entity EJB with container managed persistence. If I call the set methods on various fields, the database does an update each time. I can understand this from the way EJB's work. However I have an audit trail that is created based on an Oracle trigger. Each time there is update, the trigger fires. If I do 5 sets, I create 5 audit records which are just copies of the original record including the changes.

This is easy to fix with transactions. If I enclose all of the set calls in a transaction block in my servlet code calling the EJB, I only get one audit record. Really this is what I want any way since if a form posts multible values, I want all succeed or none.

However the problem is that when I do a get method to read values from the bean, the trigger fires also. I am not sure why this would be. The Oracle trigger is configured to fire on updates or inserts. This doesn't make sense to me. Why would a get of a value fire an update trigger?

Cheers,

Naidu Sanapala
Laurel, Maryland, USA.
..................................................................................................
Naidu Sanapala - JAVA ARCHITECT , Laurel , Maryland , USA
1.SUN Certified Enterprise Architect for J2EE Technology
2.Sun Certified [EJB] Business Component Developer for the J2EE Platform
3.Sun Certified Web Component Developer for the J2EE Platform
4.Sun Certified Java Programmer for the Java 2 Platform - 1.4
5.IBM Certified Solution Developer for XML and Related Technologies
....................................................................................................
Hi,

I am writing a portion of a J2EE application and would like to perform asynchronous processing. Following are some questions i have:

How does JMS process message, queue and Message-Driven-Beans? I mean when a message is send to a queue, how does it know which MDB should be receiving the message?

I am using JBoss and WebLogic App servers which has JMS Under normal circumtances, is it all right to use the default queue that comes with the JMSProvider (i.e. the application server in this case)? Or should we write some other codes for create queue?

In terms of design, should one MDB only performs a single function? The reason for this is that a MDB seems to only have a single 'onMessage' method?

The following is what my application tries to achieve: Servlet will call a method in a StatelessSessionBean. SessionBean perform first some processing. And since part of the process does not require to be done at the same time, i would like it to happen asynchronously. I actually intend to have that part of the processing happens in an MDB. Is that the correct way to use JMS & MDB? How else could i perform asynchronous processing?

Thanks,

Naidu Sanapala

Laurel, Maryland, USA.

..................................................................................................
Naidu Sanapala - JAVA ARCHITECT , Laurel , Maryland , USA
1.SUN Certified Enterprise Architect for J2EE Technology
2.Sun Certified [EJB] Business Component Developer for the J2EE Platform
3.Sun Certified Web Component Developer for the J2EE Platform
4.Sun Certified Java Programmer for the Java 2 Platform - 1.4
5.IBM Certified Solution Developer for XML and Related Technologies
....................................................................................................
Hi,

I am trying to use JWSDP 1.6 using JDK 1.4.2_05 with WebLogic Server 8.1sp4 to call a service that uses Axis for its SOAP stack and am getting a classcastexception when invoking the service. This only happens at runtime. Has anyone run into this type issue before? I explictly set the encoding style to document literal in my ant script which creates the stub code via wscompile and there are no compiler issues when I compile the code.

Thanks
Naidu Sanapala

Laurel, Maryland, USA.

..................................................................................................
Naidu Sanapala - JAVA ARCHITECT , Laurel , Maryland , USA
1.SUN Certified Enterprise Architect for J2EE Technology
2.Sun Certified [EJB] Business Component Developer for the J2EE Platform
3.Sun Certified Web Component Developer for the J2EE Platform
4.Sun Certified Java Programmer for the Java 2 Platform - 1.4
5.IBM Certified Solution Developer for XML and Related Technologies
....................................................................................................
15 years ago
Hi,

I am writing a portion of a J2EE application and would like to perform asynchronous processing. Following are some questions i have:

How does JMS process message, queue and Message-Driven-Beans? I mean when a message is send to a queue, how does it know which MDB should be receiving the message?

I am using JBoss and WebLogic App servers which has JMS Under normal circumtances, is it all right to use the default queue that comes with

the JMSProvider (i.e. the application server in this case)? Or should we write some other codes for create queue?

In terms of design, should one MDB only performs a single function? The reason for this is that a MDB seems to only have a single 'onMessage' method?

The following is what my application tries to achieve: Servlet will call a method in a StatelessSessionBean. SessionBean perform first some

processing. And since part of the process does not require to be done at the same time, i would like it to happen asynchronously. I actually

intend to have that part of the processing happens in an MDB. Is that the correct way to use JMS & MDB? How else could i perform asynchronous processing?

Thanks,

Naidu Sanapala

Laurel, Maryland, USA.

..................................................................................................
Naidu Sanapala - JAVA ARCHITECT , Laurel , Maryland , USA
1.SUN Certified Enterprise Architect for J2EE Technology
2.Sun Certified [EJB] Business Component Developer for the J2EE Platform
3.Sun Certified Web Component Developer for the J2EE Platform
4.Sun Certified Java Programmer for the Java 2 Platform - 1.4
5.IBM Certified Solution Developer for XML and Related Technologies
....................................................................................................
[ September 15, 2005: Message edited by: Naidu Sanapala ]
Hi,

I am trying to use JWSDP 1.6 using JDK 1.4.2_05 with WebLogic Server 8.1sp4 to call a service that uses Axis for its SOAP stack and am getting

a classcastexception when invoking the service. This only happens at runtime. Has anyone run into this type issue before? I explictedly set

the encoding style to document literal in my ant script which creates the stub code via wscompile and there are no compiler issues when I

compile the code.

Thanks
Naidu Sanapala

Laurel, Maryland, USA.

..................................................................................................
Naidu Sanapala - JAVA ARCHITECT , Laurel , Maryland , USA
1.SUN Certified Enterprise Architect for J2EE Technology
2.Sun Certified [EJB] Business Component Developer for the J2EE Platform
3.Sun Certified Web Component Developer for the J2EE Platform
4.Sun Certified Java Programmer for the Java 2 Platform - 1.4
5.IBM Certified Solution Developer for XML and Related Technologies
....................................................................................................
15 years ago