[Clustering/JBoss] - Re: JNDI vs. HA-JNDI lookups
by bstansberryï¼ jboss.com
Perhaps you are confusing the behavior of the naming proxy vs. the EJB proxy? They are completely independent. If that's not what you're doing, ignore the rest of this, and just treat it as useful info for other people who stumble on this thread. ;-)
If you create an InitialContext that connects to an HA-JNDI server, you get a naming proxy that can provides failover and load balancing for *naming operations*. If your context connects to a non-HA JNDI server, then the naming proxy only knows conduct *naming operations* with the server from which it was downloaded. No failover, no load balancing.
Either way, when you lookup an EJB, you download a proxy for the EJB. You get the same proxy no matter whether you looked it up via HA-JNDI or regular JNDI. If that EJB is configured as clustered, when you start invoking *ejb operations* on it, those calls will be able to fail over if appropriate, and will be load balanced.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024386#4024386
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024386
17Â years, 10Â months
[JBoss Seam] - <s:selectItems noSelectionLabel=
by pgmjsd
I'm using Seam 1.1.6, myfaces 1.1.4, EntityConverter 0.1 from the wiki page. The Seam managed EntityManagerFactory is set up correctly.
Here's the problem: When noSelectionLabel is specified UISelectItems ends up using NoSelectionConverter for all the User objects in the list instead of using EntityConverter. When the form is posted, the values for the select are the 'toString()' of the User entity, which EntityConverter doesn't understand.
Anyone else have this problem? Is it fixed in 1.2? Should I even bother with noSelectionLabel and EntityConverter?
Here's the view code:
| <h:selectOneMenu id="theSelect" value="#{myBean.selectedUser}">
| <s:selectItems value="#{myBean.users}" var="user"
| noSelectionLabel="Select a user..." label="#{user.name}"/>
| <ec:convertEntity/>
| </h:selectOneMenu>
|
Here's the SSB:
| @Name("myBean")
| @Stateful
| @Logging
| public class TestBean implements TestLocal
| {
| @PersistenceContext
| private EntityManager em;
|
| private List<User> users;
|
| private User selectedUser;
|
| public List<User> getUsers()
| {
| if (users == null)
| {
| Query q = em.createQuery("select t from User t join t.roles r where r = :role");
| q.setParameter("role", Role.SPECIAL_ROLE);
| //noinspection unchecked
| users = q.getResultList();
| }
| return users;
| }
|
| public User getSelectedUser()
| {
| return selectedUser;
| }
|
| public void setSelectedUser(User selectedUser)
| {
| this.selectedUser = selectedUser;
| }
| @Destroy
| @Remove
| public void destroy()
| {
| }
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024384#4024384
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024384
17Â years, 10Â months
[JBoss Seam] - Re: Testing Pageflow with SeamTest
by denis-karpov
I think there is bug in testing environment (propagation of conversations with pageflow does not work)
In this test there is 2 requests.
In the first I start conversation and pageflow
In the second conversation is lost.
If I do not start pageflow then conversation propagates.
public class TOrdTest extends SeamTest{
| private static final Log log = LogFactory.getLog( TOrdTest.class );
|
| @Test
| public void Test1() throws Exception
| {
| String id = new FacesRequest(){
| @Override
| protected void invokeApplication() throws Exception {
| Conversation.instance().begin();
| Pageflow.instance().begin("val_buy");
| setOutcome("browse");
| log.info("##### 1 Conversation_ID "+ Conversation.instance().getId());
| assert isLongRunningConversation();
| }
| @Override
| protected void renderResponse() throws Exception {
| }
| }.run();
|
| id = new FacesRequest("/exchange/buy_readonly.xhtml",id){
| @Override
| protected void beforeRequest()
| {
| log.info("#####beforeRequest Conversation_ID "+ getConversationId());
| }
| @Override
| protected void applyRequestValues() throws Exception {
| log.info("##### 2 Conversation_ID "+ Conversation.instance().getId()+" "+getConversationId());
| }
| @Override
| protected void invokeApplication() throws Exception {
| //Conversation.instance().beginNested();
| log.info("##### 3 Conversation_ID "+ Conversation.instance().getId()+" "+getConversationId());
| assert isLongRunningConversation();
| }
| }.run();
| }
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024377#4024377
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024377
17Â years, 10Â months
[JBossWS] - Re: JBossWS 1.2.0.GA
by greenbean
I did not try the samples. I upgraded from the version shipping with JBoss 4.0.5.GA. The version included in JBoss 4.0.5.GA worked, but had a problem.
2007-02-27 22:59:30,052 ERROR [org.jboss.ws.jaxrpc.CallImpl] Call invocation failed with unkown Exception
javax.xml.rpc.JAXRPCException: Cannot obtain deserializer factory for: [xmlType=
{http://localhost:8080/xxx/}>XXX,javaType=class com.XXX]
at org.jboss.ws.soap.SOAPContentElement.getDeserializerFactory(SOAPContentElement.java:421)
at org.jboss.ws.soap.SOAPContentElement.getObjectValue(SOAPContentElement.java:230)
at org.jboss.ws.binding.EndpointInvocation.transformPayloadValue(EndpointInvocation.java:233)
at org.jboss.ws.binding.EndpointInvocation.getReturnValue(EndpointInvocation.java:182)
After I upgraded, this problem went away. However, I ran into this new issue.
"heiko.braun(a)jboss.com" wrote : Did you try the samples that ship with 1.2.0? When exactly does this error occur?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024376#4024376
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024376
17Â years, 10Â months