Labels

.NET Job Questions About Java Absract class Abstract class Abstract Class and Interface Aggregation ajax aop apache ofbiz Apache ofbiz tutrial Association authentication autocad basics batch Binary Tree bootstrap loader in java build Builder design pattern C++ Job Questions caching CallableStatement in java certifications Chain of responsibility Design pattern charts check parentheses in a string Classes classloader in java classloading concept code quality collage level java program Composition concurrency Concurrency Tutorial Converting InputStream to String Core Java core java concept core java interview questions Core Java Interview Questions Core Java Questions core java tutorial CyclicBarrier in Java data structures database Database Job Questions datetime in c# DB Db2 SQL Replication deserialization in java Design Patterns designpatterns Downloads dtd Eclipse ejb example/sample code exception handling in core java file handling injava File I/O vs Memory-Mapped Filter first program in spring flex Garbage Collection Generics concept in java grails groovy and grails Guice Heap hibernate Hibernate Interview Questions how-to IBM DB2 IBM DB2 Tutorial ide immutable Interceptor Interface interview Interview Questions for Advanced JAVA investment bank j2ee java JAVA Code Examples Java 7 java changes java class loading JAVA Classes and Objects Java Classloader concept Java classloading concept java cloning concept java collection Java collection interview questions Java Collections java concurrency Java CountDownLatch java definiton Java design pattern Java EE 5 Java EE 6 Java Exceptions Java file Java Garbage Collection Java generics Java Glossary java hot concept java immutable concept Java Interface Java interview Question java interview question 2012 java interview question answer Java Interview Questions Java Interview Questions and Answers java interview topic java investment bank Java Job Questions java multithreading java multithreading concept java new features Java Packages java proxy object java questions Java Serialization Java serialization concept java serialization interview question java session concept java string Java Swings Questions java synchronization java threading Java Threads Questions java tutorial java util; java collections; java questions java volatile java volatile interview question Java Wrapper Classes java.java1.5 java.lang.ClassCastException JavaNotes javascript JAX-WS jdbc JDBC JDBC Database connection jdk 1.5 features JDK 1.5 new features Concurrent HashMap JMS interview question JMS tutorial job JSESSIONID concept JSESSIONID interview Question JSF jsp JSP Interview Question JSP taglib JSTL with JSP Junit Junit Concept Junit interview question.Best Practices to write JUnit test cases in Java JVM Linux - Unix tutorial Marker Interfaces MD5 encryption and decryption messaging MNC software java interview question musix NCR java interview question Networking Job Questions news Object Serialization Objects ojdbc14.jar OOP Oracle Oracle SQL Query for two timestamp difference orm own JavaScript function call in Apache ofbiz Packages Palm Apps patterns pdf persistence Portal Portlet Spring Integration Prime number test in java programs Rails Reboot remote computers REST Ruby Sample application schema SCJP security Senior java developer interviews servlet3 servlets session tracking singleton design pattern Spring Spring 2.5 Framework spring ebook Spring framework concept spring MVC spring pdf Spring Security Spring Security interview questions SQL SQL performance SQL Query to create xml file Sql Query tuning ssis and ssrs StAX and XML string concept string immutable string in java strings struts Struts2 Struts2 integration synchronization works in java Technical Interview testing tips Tomcat top Tutorial Volatile in deep Volatile working concept web Web Developer Job Questions web services weblogic Weblogic Application Server websphere what is JSESSIONID xml XML parsing in java XML with Java xslt


Monday, 22 July 2013

Hcl Jboss Seam Interview Questions



1) What version of JBoss AS do I need to run Seam?
• For Seam 1.3: Seam was developed against JBoss 4.2. Seam can still be run
against JBoss 4.0. The seam documentation contains instructions for configuring
JBoss 4.0.
• For Seam 1.2: Since Seam requires the latest edition of EJB3, you need to install
JBoss AS from the latest JEMS installer. Make sure that you select the "ejb3" or
"ejb3+clustering" profile to include EJB3 support. Also, the jboss-seam.jar library
file from the Seam distribution must be included in each Seam application you
deploy. Refer to examples in Seam distribution (inside the examples directory) to
see how to build and package Seam applications.


2) Can I run Seam outside of JBoss AS?
Yes, you can run Seam applications in plain Tomcat 5.5+ or in the Sun GlassFish application
server. To run Seam application in Tomcat, you need a number of additional library files and
a few configuration files to bootstrap the JBoss EJB3 inside Tomcat. Please refer to the
deploy.tomcat ANT build target for the Seam booking example (in the examples/booking
directory of the Seam distribution) for more on how to build a Tomcat WAR for Seam
applications. Refer to this blog post on how to run Seam in Sun's Glassfish application
server.


3) Can I run Seam in a J2EE environment?
Yes, as of Seam 1.1, you can use Seam in any J2EE application server, with one caveat: you
will not be able to use EJB 3.0 session beans. However, you can use either Hibernate or JPA
for persistence, and you can use Seam JavaBean components instead of session beans.



4) Can I run Seam with JDK 1.4 and earlier?
No, Seam only works on JDK 5.0 and above. It uses annotations and other JDK 5.0
features.



5) Where can I find Seam examples and documentation?
The source code and build script of all Seam example applications are included in the
examples directory of the Seam distribution. Seam documentation is available here.


6) Where can I ask questions and make suggestions about
Seam?
Please use the Seam User's discussion forum for user questions.



7) Are there books about Seam?
Yes, Prentice Hall's "JBoss Seam: Simplicity and Power Beyond Java EE 5.0" is a
comprehensive guide for Seam written by JBoss insiders.



8) Is it true that Seam only works with JSF?
Seam only supports JSF as a view framework at this time. We plan to support other web
frameworks in the future. We like JSF because it is a component-based UI framework, which
fits really well with Seam's component-based approach to business objects and persistence
objects. Seam made a major improvement to JSF by eliminating almost all XML
configuration for backing beans -- you can now define back beans from POJOs or EJB3
components using simple annotations. We recommend you use Facelets, instead of JSP,
with JSF. Facelets provide a powerful templating framework, better appplication
performance, and allows us to write much simpler JSF pages. Please see the Seam booking
example application for an example on how to use Facelets.



9) Can I use AJAX with Seam?
Yes, Seam provides excellent support for AJAX. First, Seam supports the ICEfaces and
Ajax4JSF Ajax component libraries for JSF. If you prefer a more "old fashioned" approach,
Seam provides a complete JavaScript remoting framework which lets you call Seam
components and subscribe to JMS topics directly from the client. Please refer to the Seam
remoting example application on how to use AJAX remoting to implement a chat room.
Finally, Seam's concurrency model is designed especially for use with Ajax.


10) Can I unit test Seam applications without starting the
Application Server?
Yes, Seam provides its own integration test framework based on TestNG. You can easily
mock all Seam services using those facilities without ever loading an application server or a
database. Refer to the testexample ANT target in the Seam booking example application for
more details.



11) What's so special about Seam's "state management"?
Most other web frameworks store all application state in the HTTP session, which is
inflexible, difficult to manage and a major source of memory leak. Seam can manage
business and persistence components in several stateful scopes: components that only need
to live across several pages are placed in the conversation scope; components that need to
live with the current user session are placed in the session scope; components that require
interactions from multiple users and last extended period of time (i.e., survive server
reboots) are placed in the business process scope. The advanced state management
facilities allow us to develop web application features that are previously not possible, or
very difficult, to implement.



12) Does Seam support multiple browser windows or tabs?
Yes. Seam supports fine-grained user state management beyond the simple HTTP session.
It isolates and manages user state associated with individual browser window or tab (in
contrast, HTTP session is shared across all windows of the same browser). So, in a Seam
application, each browser window / tab can become a separate workspace that has
independent history and context. Multiple user "conversations" can be supported for the
same browser. This behavior is similar to that in rich client applications. To see this feature
in action, just run the booking example application and try to book several hotels via
several browser tabs in parallel -- you can see that each tabs retains its own progress in the
booking conversation.



13) Can Seam handle back-button navigation?
Seam's nested conversation model makes it really easy to build complex, stateful
applications that tolerate use of the back button.



14) Does Seam support REST style bookmarkable URLs?
Yes, it is very easy to expose REST style bookmarkable URLs in a Seam application. In
addition, the Seam application can initialize all the necessary backend business logic and
persistence components when the user loads that URL. This way, the RESTful URL is not
only an information endpoint but also an application interaction start point.


15) I heard Seam conversations are propagated through
JSF POST request. Can I do redirect-after-post or even GET
in the same conversation?
Yes, on both accounts! To use redirect-after-post, you just need to enable the
SeamRedirectFilter in web.xml. To propagate a conversation through a GET request, pass
the conversation id in a request parameter named conversationId. By default, GET (nonfaces)
requests always occur in a new conversation.


16) Can I use Seam in a portal?
Seam 1.0 features full integration with JSR-168 compliant portals such as JBoss Portal.



17) Does Seam have something like the Ruby on Rails
"flash" object?
No, Seam has something much more powerful: a conversation context. The Seam
conversation context is propagated across redirects (even when no long-running
conversation is in progress), so you can use the conversation context to store success
messages and the like.


18) Does Seam have continuations?
A jBPM "wait state" is a continuation. Each node in a pageflow definition or node in a
business process definition is a jBPM wait state. Speaking more approximately, you might
like to think of the conversation state as a continuation. (We do not usually talk in this kind
of language because it is too mysterious-sounding and obfuscates simple concepts to make
them seem more impressive.)



19) Does Seam support internationalization?
Seam includes several extensions to JSF that make it super-easy and super-elegant to
create internationalized user interfaces.


20) Are there any development tools that support Seam?
Seam 1.1 includes a Ruby on Rails style command line tool that makes it easy to set up a
new Seam project, create some simple actions, and even reverse engineer a data driven
application from an existing database.
IDE integration is also a major focus for us. JBoss Eclipse IDE provides a sophisticated,
template-driven database reverse engineering tool which can generate an entire Seam
application in minutes and a graphical jPDL editor for editing Seam pageflows and workflow
definitions. More to come, stay tuned.


No comments:

Post a Comment

LinkWithin

Related Posts Plugin for WordPress, Blogger...