Trying to find the best or nearly equal solution in J2EE world
Originally posted by Paul Sturrock:
For what you are trying to do, I don't see a reason to involve J2EE at all. Think about the array of technologies in J2EE and try to think of one which gives you any tangible benefit when moving data from one DB to another. The only one I can think of is JTA, but thats really questionable. You could do it through JDBC, but again is it a benefit to do this through JDBC, which is more complex than (for example) MSSQL's DTS and Oracle's imp/exp utilities?
If you have business rules involved in the transfer, then yes you should probably involve some sort of application which can transform or validate data as it passes betwee nthe two DBs. But if the only differences are vendor specific differences between t he two DBs, then just use the tools which come with the DBs - since this is a relatively common requirement.
Originally posted by Paul Sturrock:
Sounds like it would work. But of course file operations from within an EJB container are a no-no, unless you use JCA. Which is just a complication, rather than a help.
Keep in mind that all these things that are "not allowed" in a J2EE container (not just in an EJB bean, so calling a POJO makes no difference) are "not allowed" in order to make portability possible. However, if you do them (access a file, open a socket, etc), most containers will not stop you.Originally posted by Steve Buck:
Darn it! What can I possibly do? :/
Then I'd suggest you start reading up on the Spring Framework and Hibernate.Originally posted by Steve Buck:
Might have to avoid J2EE for this particular project *cry*
Originally posted by David Harkness:
Then I'd suggest you start reading up on the Spring Framework and Hibernate.I've just completed porting our EJB application running in WebLogic to Spring + Hibernate running in Tomcat.
First thing we noticed: much better performance. And we haven't enabled the second level Hibernate cache (equivalent of entity bean cache) yet. Everytime we need to touch a database row, we hit the database to get the data first.
There are lots of happy faces around here now.![]()
You may be surprised at the size and complexity of the projects using "some open source frameworks" as well as the names of the companies making use of them, but I certainly understand your hesitation and am not here to evangelize . . . too much.Originally posted by Steve Buck:
Well... I kind of wanted a large framework with backing the backing that J2EE has rather than some open source frameworks :/
You could still use web services and not have to do any trickery. Simply break up the 1GB files into more palatable sizes and base-64 encode them. Sure, the size will grow by 33%, but once you're committed to sending 1GB over the network, what's 0.33GB more going to matter?being limited by technical aspects makes it impossible for me to go further with J2EE I am afraid
![]()
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |