Anthony Karta

Ranch Hand
+ Follow
since Aug 09, 2004
Merit badge: grant badges
For More
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 Anthony Karta

Javid Jamae wrote:We removed coverage for JBoss Seam. The book was getting too long. It was only 1 chapter.

There are two chapters on JBoss Portal.



Does the book cover how to setup clustering?

and I guess the content is more to administration rather than development showcases, am I right?

regards
ak
15 years ago
Hi all

quick questions. I wonder:

* why we must use stateless bean as endpoint?

* what if I don't want to use EJB at all but still want to run my webservice methods inside Enterprise App Server?

* and in @WebService annotation - what are the differences between having endpointInterface attribute and not?

thanks in advance
ak
[ November 04, 2008: Message edited by: Anthony Karta ]
15 years ago

Originally posted by Peer Reynders:
Both are supported under JAX-WS

SLSB example: The Java EE 5 Tutorial: A Web Service Example: helloservice

Though the is something to be said for implementing the service as a POJO and then exposing it separately though a SLSB or Servlet-based WS endpoint (adapter). That way the EJB adapter can deal with "all things EJB" and the WS endpoint adapter can deal with "all things WS-*" and the service can concentrate on its own work (separation of concerns). SLSB based WS endpoints may be convenient but tend to be less flexible than servlet based endpoints.



First of all, sorry to open this old thread but I got very basic questions:

1. Why endpoint class (ejb class) must be StateLess?

2. I don't understand this statement (from quote above) "and the WS endpoint adapter can deal with "all things WS-*"

thanks in advance
ak
15 years ago
I don't intend to hijack this topic. but I have really a basic question.

I ran mvn install:install-file the first time and maven downloaded strange *.pom files.

I want to know what is maven doing here.

thanks all.
ak


c:\hibernate-distribution-3.3.1.GA>mvn install:install-file -DgroupId=org.hibernate -Dartifa
ctId=hibernate-testing -Dversion=3.3.1.GA -Dpackaging=jar -Dfile=hibernate-testing.jar
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'install'.
[INFO] org.apache.maven.plugins: checking for updates from central
[INFO] org.codehaus.mojo: checking for updates from central
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.2/maven-install-plugin-2.2.pom
2K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugins/8/maven-plugins-8.pom
5K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-parent/5/maven-parent-5.pom
14K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/apache/3/apache-3.pom
3K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.2/maven-install-plugin-2.2.jar
15K downloaded
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO] task-segment: [install:install-file] (aggregator-style)
[INFO] ------------------------------------------------------------------------
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-plugin-api/2.0.6/maven-plugin-api-2.0.6.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven/2.0.6/maven-2.0.6.pom
8K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-project/2.0.6/maven-project-2.0.6.pom
2K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-settings/2.0.6/maven-settings-2.0.6.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-model/2.0.6/maven-model-2.0.6.pom
2K downloaded
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.4.1/plexus-utils-1.4.1.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus/1.0.11/plexus-1.0.11.pom
8K downloaded
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-container-default/1.0-alpha-9-stable-1/plexus-container-default-1.0-alpha-9-stab
le-1.pom
3K downloaded
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-containers/1.0.3/plexus-containers-1.0.3.pom
492b downloaded
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom
5K downloaded
Downloading: http://repo1.maven.org/maven2/junit/junit/3.8.1/junit-3.8.1.pom
998b downloaded
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.pom
6K downloaded
Downloading: http://repo1.maven.org/maven2/classworlds/classworlds/1.1-alpha-2/classworlds-1.1-alpha-2.pom
3K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-profile/2.0.6/maven-profile-2.0.6.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-artifact-manager/2.0.6/maven-artifact-manager-2.0.6.pom
2K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-repository-metadata/2.0.6/maven-repository-metadata-2.0.6.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-artifact/2.0.6/maven-artifact-2.0.6.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-provider-api/1.0-beta-2/wagon-provider-api-1.0-beta-2.pom
680b downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon/1.0-beta-2/wagon-1.0-beta-2.pom
5K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-parent/4/maven-parent-4.pom
9K downloaded

...
...
...
so on


[ October 20, 2008: Message edited by: Anthony Karta ]
15 years ago
Hi all

First of all, why Hibernate split the packages into:
Hibernate Core, Hibernate Annotations, and Hibernate EntityManager.

I'm working on Portal dev using jBoss Portal 2.6.6, and it includes hibernate library 3.2.4

Does this version implement JPA? If not, can I replace it with latest hibernate version?

thanks
ak
[ October 13, 2008: Message edited by: Anthony Karta ]

Originally posted by Javid Jamae:
I've found that stripping out a lot of services that you might not use will really help with startup time. If you don't use things such as JMS, just remove the services and you'll see a big impact.



Or it's enough to use Tomcat + openJMS + other frameworks as required. am I correct?

I don't know much about JBoss. Does it have build in "spring/injection" framework inside?

thanks
ak
15 years ago

Originally posted by Peter Johnson:
This is a new book, based on JBossAS 5.0.



What are the main differences with version 4? I got confuse with JBoss products. And which versions do support JBoss Portal?

thanks
ak
15 years ago
Hi authors

In your view, should we use JPA and Hibernate together? I found it's much cleaner.

thanks in advance
ak
Hi Peter,

I'm interested with your comment. I never use struts or ajax but I know the concept and how mvc pattern works.

Originally posted by Peter Primrose:
application is faster.



What do you mean by "faster"? lightweight front-end processing (because of ajax) or the whole application (backend and frontend)?

thanks
anthony
15 years ago
Hi Donald & Chad

With so many MVC frameworks pop up in J2EE space, is Strut still a defacto web framework? In what cases, we should choose Struts than other frameworks?

thanks
anthnoy
15 years ago
as far as I know, we need to add Struts control objects to HTML pages such as checkboxes, drop down list, text fields, hidden fields.

How we can achieve these changes with collaboration from web designer? I'm sure they won't use IntellJ.

thanks again

Originally posted by John Todd:

Struts2 is MVC web framework, JSF is component-based web framework.

Even worse, if you took the DreamWeaver route, you have to work with two different tools: DreamWeaver (your pages) and your Java IDE (your logic).
If I were you, I will use IntelliJ (which worth every cent you spend) or NetBeans 6.

16 years ago
I understand that Struts 2 (or JSF) is a baking beans for presentation layer.

What is the strategy to develop a front end layer quickly using current technologies (ajax, javascript, dhtml)? for example, should I use Dreamweaver or similar tools (any suggestion?) and then update/add Struts HTML control to HTML pages?

any advice welcome.

thanks
16 years ago
is it worth to upgrade application built with struts 1.2 to 2.0?

and

is it possible to run struts 1.2 application in struts 2.0 implementation (backward compatibility) or they are completely different?

thanks all
anthony
16 years ago
about the jobs statistic, I feel they refer to Struts 1.2 since the old struts is a de facto standard for many years before and companies still need someone to maintain it.

JSF looks clumsy to me, hope struts 2 will much better solution.
16 years ago
Hi Budi,

I never use struts in my projects but used inhouse MVC framework.

what is your view about struts 2 future? will it widely used as Struts 1.2 story?

thanks
anthony
16 years ago