Saulius Sinkunas

Greenhorn
+ Follow
since May 18, 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 Saulius Sinkunas

Hi, Kirill,

Do you have any comparison TeamCity and Luntbuild?
Hi,

Thank you for reply. It seems that TeamCity will have a real strong support for discovering errors, as normally maven2 doesn't report exact error to build console. It's nice to hear about this feature.

Another killer feature is showing build phases in a real time.

BTW how many resources requites TeamCity? I.e. memory size - 100, 200, 300MB for normal performance.
Hi,

What about Maven2? as i saw teamCity supports Maven2. That's cool. But how strong is this support? Does TeamCity analyse surefire-reports directories? I.e. if I have one project which consists of many modules. And now we have a problem with other tool that if one module fails (i.e. tests fails) we cannot figure out quick the failure and we should use some maven plugins. Maybe TeamCity already has solution for displaying results or even parsing them?

Thanks.
Hi,

One of strenghts of TeamCity is integration with IDE. What about Eclipse IDE? Are there any plans for integrating TeamCity with Eclipse? How strong that support would be? I see this feature (integration with IDE) as one of the killer features of TeamCity.

Thanks
Hi,

this is a normal way. Just look at EJB spec and you will find there many good things. You should read not only book, but also spec.
I think that there isn't vendor-independent way to do it. Although I haven't noticed it in servlet spec. What you can do, you can put your protected files under WEB-INF. Or just put index.html into all directories, as almost all vendors uses this file as index/welcome file.
14 years ago
Open client.jar and look if this file com/sample/HelloWorldRemoteHome.class is there?

Can yuo call your EJB from standalone client, not servlet?
At first you should declare reference-ref in your DD. You put some logic resource name. For example 'jdbc/SystemDataSource'. When you deploy EJBs into some application server, you must have vendor-specific descriptor file (in JBoss it is 'jboss.xml'), where you must define exactly what 'jdbc/SystemDataSource' means - to what resources it refferers. In jboss.xml you can write it in 'resource-managers' section. For example:

Yes. The big difference is that web app is application and EJB is just component. EJBs should be less coupled as possible. Think about EJB as some module which does it own job. Of cource, you can have references to other EJBs or resources. But if you created some related context, they wuold be very coupled which is bad.
Look at $JBOSS/server/default/deploy/jbossweb-tomcat50.sar/ROOT.war/index.html
This file, I think, is loaded. If you want to change, you can just change content of ROOT.war. Or you could configure default page in server.xml. Better to look at Tomcat documentation.
14 years ago
Have you really included EJBs client classes to your client's classpath? It says that com.sample.HelloWorldRemoteHome cannot be found in classpath. Simply you could put your EJBs jar to client classpath and test.
This is a issue with file systems and EJBs. When I needed to read file from file system (for castor xml mapper) I put these mapping files to root of EJBs jar file (or some subdirectory) abd read it using getResourceAsStream. For example I put "PdfBean.xml" file to EJBs jar to "/mappings/PdfBean.xml" and then read it in EJB: getClass().getClassLoader().getResourceAsStream("mappings/PdfBean.xml"). I used it in Jboss app server.

Other solution is to load this file via some connector.
And why don't you want to use native sessions? Set timeout to į minutes - and it will be logged out automatically.
14 years ago
Are you sure your EJBs are using DB connections longer than 5000ms? What is DB pool size? How many concurent users do you have? I think you can set timeout to 60000 (1 minute) as EJB server can be loaded hard. Or you have to set bigger DB pool size. It is better than to get this exception about used all DB connections.
I think you will have opened 3 physical DB connections. Because each time you call getConnection() you get new connection (connections may be pooled inside container).

I think it would be better close connection before calling another EJB as you can go into deadlock (if container has DB pool). For example, your pool size is 5 connections and you have 2 free DB connection. EJB A calls getConnection(), the EJB B call getConnection(). And when EJB C call getConnection(), this EJB locks locks as DB pool doesn't have any free DB connection (as they č ones are used for EJB A and B). And only some time (pool timeout) this EJB get DB connection error and returns with exception.

So better is to keep DB connection as shorter as possible - read all data, close connection and only then call EJB B if possible.