Jim Baker

Ranch Hand
+ Follow
since Mar 10, 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 Jim Baker

Originally posted by Jaikiran Pai:
Whenever you create a SessionFactory, it parses all the configuration files(hbm or the cfg file) which is an expensive process. Repeatedly doing this will degrade the performance of the application.



I think Hibernate caches the hibernate.cfg.xml information. It is only parsed once when creating the first SessionFactory object.

When you call Hibernate Session.close() method, does this implies the JDBC call Connection.close()?

Originally posted by Hongli Li:
is it wasting memory?



Memory is cheap. Plus, when sessionFactory is out of scope or nulled, the
sessionFactory object will be GCed.

My concern on static SessionFactory is that it may cause DB connection problems, even memory leak. Has anyone seen this?
I saw some Hibernate sample code using static SessionFactory. But I defined SessionFactory as a non-static class member variable, and it worked fine.
Does static SessionFactory give me better performance? I know SessionFactory is responsible for getting JDBC connections from the DataSource.
I know the entity bean in EJB2 is replaced by EJB3 JPA and MDB is still part of EJB3.
What about session bean is EJB2? Is session bean still in EJB3?

I was told that EJB3 is a blend of Spring and Hibernate. Is it true?
[ March 17, 2008: Message edited by: Jim Baker ]
I'm using Hibernate3 with Spring2. Both Hibernate and Spring handles the
transaction, which should be used? Or both?

I'm currently using Hibernate transaction through a datasource. The Hibernate
DAO is injected in the service class through Spring.

I read about Spring's Hibernate template, but did not see any true
values rather than moving java code into Spring xml config files.
I'm using Hibernate3 with Spring2. Both Hibernate and Spring handles the
transaction, which should be used? Or both?

I'm currently using Hibernate transaction through a datasource. The Hibernate
DAO is injected in the service class through Spring.
I'm using Hibernate3 with Spring2. Both Hibernate and Spring handles the
transaction, which should be used? Or both?

I'm currently using Hibernate transaction through a datasource. The Hibernate
DAO is injected in the service class through Spring.

Originally posted by Anand Prabhu:


Aren't you guys a bit too late? I read in yesterday's (11/04/2005)Wall Street Journal that the Senate had already passed the move along with others like the drilling of the Arctic Reserves. Or am I reading of some other legislation?



Yes, Senate passed it.

http://www.newindpress.com/Newsitems.asp?ID=IEH20051104111036&Title=Top+Stories&Topic=0

But it is not too late. You can still write to your congressperson.
15 years ago

Originally posted by Jim Baker:
It is time to take action.

http://www.washtech.org/news/legislative/display.php?ID_Content=5017

Send a letter to Your Congressperson

Below is the sample letter:

Subject: Plan to Raise H-1b Cap by 30,000

Dear [decision maker name],

I strongly oppose the Senate Judiciary Committee's compromise proposal that would allow 30,000 additional H-1B visas each year. Instead, I urge you to support the current House Judiciary Committee's proposal, which would raise the L-1 visa fee to $1,500, but does not add any extra visas in either program. The increased fees would bring in more revenue, but would also more accurately reflect the cost to our society for supporting such programs.

It's well known by workers that the visa programs are awash with abuse by employers. They displace American workers, depress wages, and discourage young people from pursuing careers in the high-tech industry. It also puts foreign workers at risk and may further a "brain drain" in other countries. Most alarming, it encourages employers to use contingent staffing solutions, instead of creating jobs that support workers, their families, and their communities. This approach should only be used when it is essential, not as a permanent staffing strategy.

I urge you to consider the social costs of these visa programs and rein them in with increased costs, instead of expanding them with extra visas. As a high-tech worker, I am depending on you!

Sincerely,

[Your name]

[ November 01, 2005: Message edited by: Jim Baker ]




The quickest and easiest way to send above letter to your law makers is to use their web sites:

http://www.senate.gov/general/contact_information/senators_cfm.cfm

http://www.house.gov/writerep/

It should be done ASAP.
15 years ago
It is time to take action.

http://www.washtech.org/news/legislative/display.php?ID_Content=5017

Send a letter to Your Congressperson

Below is the sample letter:

Subject: Plan to Raise H-1b Cap by 30,000

Dear [decision maker name],

I strongly oppose the Senate Judiciary Committee's compromise proposal that would allow 30,000 additional H-1B visas each year. Instead, I urge you to support the current House Judiciary Committee's proposal, which would raise the L-1 visa fee to $1,500, but does not add any extra visas in either program. The increased fees would bring in more revenue, but would also more accurately reflect the cost to our society for supporting such programs.

It's well known by workers that the visa programs are awash with abuse by employers. They displace American workers, depress wages, and discourage young people from pursuing careers in the high-tech industry. It also puts foreign workers at risk and may further a "brain drain" in other countries. Most alarming, it encourages employers to use contingent staffing solutions, instead of creating jobs that support workers, their families, and their communities. This approach should only be used when it is essential, not as a permanent staffing strategy.

I urge you to consider the social costs of these visa programs and rein them in with increased costs, instead of expanding them with extra visas. As a high-tech worker, I am depending on you!

Sincerely,

[Your name]
[ November 01, 2005: Message edited by: Jim Baker ]
15 years ago

Originally posted by Homer Phillips:

How it gets passed is usually stealthy. It might get bundled with something else and be call something on the order of a consolidated omnibus budget act. There will be enough pork in the bill so that the every politician has some must have legislation included. So I don't think even the committee absolutely ever has to vote on the bill by itself.

Arlen Spector and James Sensenbrenner are key players.



Is it too late to call my Senators and Congressman on this...
15 years ago
Does this still need a vote on the floor? Or Judiciary Committee alone is enough?
15 years ago
Can you just stop the payment and make them to contact you?
15 years ago
I understand insurance companies are getting hurt, higher unemployment rate, and higher oil price.
Are they bad enough to push the country into a new round of recesion?

See this poll:
http://money.cnn.com/POLLSERVER/results/19857.html
15 years ago