garth schneider

Ranch Hand
+ Follow
since Mar 20, 2002
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 garth schneider

Tim,
I agree with your post. I guess I am just trying to sort things out. It appears that it is proper to leave Spring behind and just use the IOC from the OSGi Blueprint spec without the need for introducing any Spring. But if we need to use any of the Spring API we can introduce it as needed and in most cases there will not be any incompatibilities. It does appear that Spring AOP has issues from posts that I have read, but they may be resolved already.

Thanks,
Garth
8 years ago
Thank you for your reply. I may be operating on some false assumptions. Is there any XML that is not supported by blueprint, such as Spring AOP xml? refer to "http://www.ibm.com/developerworks/forums/thread.jspa?messageID=14469088" last entry.
8 years ago
With OSGi Blueprint, IBM is showing people how to convert Spring based programs to Blueprint apps for the Websphere 7 and 8 in developerworks article (Migrating from the Spring Framework to OSGi
using the WebSphere Application Server V7 Feature Pack for OSGi Applications -- Run Spring applications in an OSGi container then migrate to a standards-based dependency injection container
).

Spring DM is now dead as far as Spring is concerned (their blog has discussions on Spring DM in the attic). Apache Aires Blueprint appears to be the winning Blueprint implementation.
No one from Spring is touching the OSGi layer in blogs etc. So my impression is if you want to go OSGi you will leave Spring behind. Probably should stay away from Spring MVC and go more
toward JSF etc if going OSGi route?

Garth
8 years ago
My question really is can JBoss Transactions (JBossTS 4.2) implement a global transaction that will allow both a JDBC resource and a JMS resource to participate in the same JTA (2pc) transaction?

Thanks,
Garth
[ August 27, 2008: Message edited by: garth schneider ]
11 years ago
JBoss brochure says: JBoss transactions enables distributed transactions to span application server instances and multiple heterogenous data sources including JDBC databases and XA-compliant messaging systems.

Article in JavaWorld dated 4/27/2007 says: Also there is no support for JMS resources, only database resources are supported.

I have not found any information on web to support JBoss claim for XA-compliant messaging systems (JMS).

Has JBoss made changes to this that goes along with there sales brochure?

Garth
[ August 26, 2008: Message edited by: garth schneider ]
11 years ago
Well I figured it out. I injected my messageListenerContainer into my Message listener POJO. And then just called the stop method on the class. listener.stop

Problem solved.
11 years ago
I have a application written in Spring 2.5 running in Tomcat 6.0. When a rollback to the queue occurs I would like the message to rollback to the queue and the message listener to stop. I do not want the message to go to the dead letter queue.
Websphere Application Server has a Maximum retries count. If the threshold count is set higher than the maximum retry count the listener will stop. How is this done in Tomcat.
Garth Schneider
11 years ago
Ludovic, I do appreciate the clarification. It has been a challange to figure which way to go. Coming from a WebSphere Application Server world using EJBs for many years I never had to worry about some of these issues before. I am working on a large project at the moment and support will also be a factor. BTM and Atomikos appear now to be the best choices.
Thank you again for your reply
Garth
11 years ago
I guess the choices are JOTM, BTM (Bitronic), Atomikos and Jencks. I need to have 2PC for reading in JMS and writing out JDBC. JBossTS only works with JDBC. I am using the Spring 2.5 framework. The person who developed BTM is now working for Atomikos so that kind of rules out BTM. JOTM has had nothing happening to it since 2005 so that may rule out JOTM. Do I get rid of Spring and use OpenEJB 3.0 which has a transaction manager in it??? What other options are there?
Any input would be appreciated.
Garth Schneider
SCJP (Sun Certified Java Programmer)
IBM #486 Object Oriented Analysis and Design with UML
IBM #283 Specialist for the VisualAge for Java 4.0
IBM Solution Developer for VisualAge for Java 4.0
IBM #157 Specialist for the WebSphere Studio Application Developer 4.0
IBM Solution Developer for WebSphere Studio Application Developer 4.0
IBM #484 Enterprise Connectivity with Java Technology J2EE 1.3
IBM #287 Enterprise Application Development with WebSphere Studio V5.0.
IBM Certified Enterprise Developer - WebSphere Studio, V5.0
11 years ago
"UML 2 and the Unified Process" 2nd edition by Jim Arlow and Ila Neustadt is my favorite. It goes deeper than UML Distilled which is also a great book.

garth schneider

SCJP (Sun Certified Java Programmer)
IBM #486 Object Oriented Analysis and Design with UML
IBM #283 Specialist for the VisualAge for Java 4.0
IBM Solution Developer for VisualAge for Java 4.0
IBM #157 Specialist for the WebSphere Studio Application Developer 4.0
IBM Solution Developer for WebSphere Studio Application Developer 4.0
IBM #484 Enterprise Connectivity with Java Technology J2EE 1.3
IBM #287 Enterprise Application Development with WebSphere Studio V5.0.
IBM Certified Enterprise Developer - WebSphere Studio, V5.0
Berts suggestion that "Java Web Services Architecture" book is not worth the money means nothing to me without a reason. I am finding it to be a great book. Sure it does not identify Doc/Literal and RPC/Literal as being the best to go with. But it does show a lot of real world situations with RPC/encoded and Doc/encoded. It also shows Doc/literal and RPC/literal quite well. If you are in the real world those are still important, even though they are out of favor in the WS-I Basic Profile 1.0. This book goes beyond the great book by RMH to cover security and JAXB and more. I am not finding any miss information. It handles the core knowledge very well. I have also seen posts by people who past the SCDJWS using that book heavily.
The Amazon review was very favorable to this book. I disagree with the JavaRanch review of the book. I can not see it as being at all accurate.

Thanks,

Garth
SCJP (Sun Certified Java Programmer)
IBM #486 Object Oriented Analysis and Design with UML
IBM #283 Specialist for the VisualAge for Java 4.0
IBM Solution Developer for VisualAge for Java 4.0
IBM #157 Specialist for the WebSphere Studio Application Developer 4.0
IBM Solution Developer for WebSphere Studio Application Developer 4.0
IBM #484 Enterprise Connectivity with Java Technology J2EE 1.3
IBM #287 Enterprise Application Development with WebSphere Studio V5.0.
IBM Certified Enterprise Developer - WebSphere Studio, V5.0
[ October 19, 2006: Message edited by: garth schneider ]
Thank you for the replies. I am getting interested in pursuing this exam.

Garth

SCJP (Sun Certified Java Programmer)
IBM #486 Object Oriented Analysis and Design with UML
IBM #283 Specialist for the VisualAge for Java 4.0
IBM Solution Developer for VisualAge for Java 4.0
IBM #157 Specialist for the WebSphere Studio Application Developer 4.0
IBM Solution Developer for WebSphere Studio Application Developer 4.0
IBM #484 Enterprise Connectivity with Java Technology J2EE 1.3
IBM #287 Enterprise Application Development with WebSphere Studio V5.0.
IBM Certified Enterprise Developer - WebSphere Studio, V5.0
After 2 days of fighting this issue I put it everywhere. In the regular Java environment it worked great in the default package. I did not have to pass anything to the configure method. When I brought it into the EJB 2.0 container it did not work in the default package. I tryed to create a regular java jar and put it in the default area. I tryed putting it in its own place in a package and then pass that directory string to the configure method. I even changed the name of the cfg file and reference it by another name. It just did not work. I have a PMR open with IBM now and we will see if I can get anything from that. It works good in JBoss I hear say.
I tryed it in both WSAD 5.1.2 and RAD 6.0. As you can see from the below area it is in the default directory of the EJB area "ejbModule" area. I also tryed putting it above that and it did not work.
File f = new File("C:\\ProjHibernatedEJB\\ProjHiberFacade\\ejbModule\\hibernate.cfg.xml");
sessions = new Configuration().configure(f).buildSessionFactory();


Garth


SCJP (Sun Certified Java Programmer)
IBM #486 Object Oriented Analysis and Design with UML
IBM #283 Specialist for the VisualAge for Java 4.0
IBM Solution Developer for VisualAge for Java 4.0
IBM #157 Specialist for the WebSphere Studio Application Developer 4.0
IBM Solution Developer for WebSphere Studio Application Developer 4.0
IBM #484 Enterprise Connectivity with Java Technology J2EE 1.3
IBM #287 Enterprise Application Development with WebSphere Studio V5.0.
IBM Certified Enterprise Developer - WebSphere Studio, V5.0
[ February 01, 2006: Message edited by: garth schneider ]
Just figured it out.

File f = new File("C:\\ProjHibernatedEJB\\ProjHiberFacade\\ejbModule\\hibernate.cfg.xml");
sessions = new Configuration().configure(f).buildSessionFactory();
//

I hardcoded the absolute path in a file object and passed it to configure.
It is a sad thing to have to do but it works. And I am not proud.
Garth

[ January 31, 2006: Message edited by: garth schneider ]
[ January 31, 2006: Message edited by: garth schneider ]
I am in the ejb container of Websphere 5.0.2.3 and can not find where to put the hibernate.cfg.xml file.
Is this a websphere issue? I have worked a full 2 days on this and can not figure out what to do.

1/31/06 20:18:38:334 CST] 785e785e SystemOut O Exception creating SessionFactory object: /hibernate.cfg.xml not found
[1/31/06 20:18:42:781 CST] 785e785e Configuration I net.sf.hibernate.cfg.Configuration configuring from resource: /hibernate.cfg.xml

[1/31/06 20:18:42:781 CST] 785e785e Configuration I net.sf.hibernate.cfg.Configuration Configuration resource: /hibernate.cfg.xml

[1/31/06 20:18:42:781 CST] 785e785e Configuration W net.sf.hibernate.cfg.Configuration /hibernate.cfg.xml not found

Garth
IBM Certified Enterprise Developer WSAD 5.x
[ January 31, 2006: Message edited by: garth schneider ]