[JBoss Seam] - Re: why booking example does not work when i try to change t
by gringalet
error list is the belows:
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Error calling action method of component with id _id16:_id32
javax.faces.webapp.FacesServlet.service(FacesServlet.java:121)
org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:30)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
root cause
javax.faces.FacesException: Error calling action method of component with id _id16:_id32
org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:74)
javax.faces.component.UICommand.broadcast(UICommand.java:106)
javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)
javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:164)
org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:316)
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)
org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:30)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966361#3966361
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966361
19 years, 8 months
[JBossCache] - Re: JBossCacheIDE 1.0 Released
by ben.wang@jboss.com
OK, my bad! I forgot the doc that you sent before. :-)
Here are some of my additional comments:
1. If "LOCAL" mode is experimental only, then why don't we provide the user capability to add/remove the nodes? Is it technical or userability issue?
2. For access to remote cache instance, if we provide JMX access directly, will that be more difficult than remote jndi (of whcih needs another mbean definition)?
2. I have managed to get the TreeCache to hook up the the AS and display the contents. Pretty cool. But I still have had problem with PojoCache.
Basically, I can see the tree nodes on the left pane. But the graph view is all blank. I have attached the appropriate jar file as needed. I can also see the individual node value from the jmx-console, actually.
Anything that I missed here? I am using a test case from the http clustering unit test (http-field.war).
Thanks,
-Ben
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966358#3966358
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966358
19 years, 8 months
[Messaging, JMS & JBossMQ] - Re: Using JNDIProviderAdapter from client (MDB) code?
by ewestland
Thanks for the tip...
I am pretty wiped out now, so forgive me, but I don't quite get your solution.
My objective is indeed to use "a -ds.xml file (JCA) connection to your provider outbound", but my initial problem was getting access to the destinations on the remote JMS provider. My JBoss-specific (hokey?) solution does that.
I like that your solution looks portable, but it appears to be missing some of the extra sauce. My issue is that I am unclear how to lookup the remote destination (i.e. "queue/test") etc; assuming remote provider defined as "RemoteJmsXA" (i.e. ./deploy/jms/remotejmsxa-ds.xml).
If you could extend your example a bit to include creating a "MessageProducer" to a remote queue it would be helpful.
Standard example client code:
| InitialContext ctx = new InitialContext();
| Destination topic = (Destination) ctx.lookup("queue/test");
| ConnectionFactory factory = (ConnectionFactory)ctx.lookup("UIL2ConnectionFactory");
| Connection connection = factory.createConnection();
| Session session = connection.createSession(true, Session.AUTO_ACKNOWLEDGE);
| MessageProducer publisher = session.createProducer(topic);
| ...
|
Cheers,
Erik
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966357#3966357
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966357
19 years, 8 months
[JBossCache] - Re: how to support treecache transaction in CMT
by confuz
"bstansberry(a)jboss.com" wrote : That looks like it should work. The cache should be participating in the tx as a Synchronization, and when the tx rolls back, the cache modifications should roll back.
|
| What specifically do you do in "cacheoperation"?
the session bean method will invoke this method. forgive for the disorder code.
|
| public String checkAccess(String key1) throws Exception {
| String key = key1.substring(0,2);
| String value = key1;
| String command = key1.substring(2,5);
| TreeCache cache = CacheFactory.getCache();
|
|
| if("add".equals(command)){
| Address add = ((Person)cache.get("/test/p1","p1")).getAddress();
| add.setCity(value);
| cache.put("/test/a1","a1" ,add);
|
| if("pp".equals(key)){
| System.out.println("Gettttttttttttttbefore:a1=" + cache.get("/test/a1","a1"));
| throw new Exception("throw exception for rollback");
| }
|
| }
| else{
| boolean inCache = cache.exists("/test/" + key,key);
| boolean inLoader = false;//cache.getCacheLoader().exists(Fqn.fromString("/test/" + key));
| System.out.println("Exists in cache:" + inCache + " exists in loader:" + inLoader);
| Object o = (cache.get("/test/" + key,key));
| if(o != null)
| value = o.toString();
| System.out.println("Get:" + key + "=" + value);
| }
|
|
| System.out.println("Gettttttttttttttafter:a1=" + cache.get("/test/a1","a1"));
|
| return value;
| }
|
CacheFactory.getCache()
|
| public static synchronized TreeCache getCache(){
| if(CACHE != null) return CACHE;
| initCache();
| return CACHE;
| }
|
|
| private static void initCache(){
| try{
| CACHE = new TreeCache();
| PropertyConfigurator pc = new PropertyConfigurator();
| pc.configure(CACHE, "tree-service.xml");
|
| CACHE.startService();
|
| Person p1 = new Person();
| p1.setName("P1");
| Person p2 = new Person();
| p2.setName("P2");
| Address add = new Address();
| add.setCity("SZ");
| add.setStreet("NR");
| add.setZip(3009884);
| p1.setAddress(add);
| p2.setAddress(add);
|
| CACHE.put("/test/p1","p1", p1);
| CACHE.put("/test/p2", "p2", p2);
| CACHE.put("/test/a1", "a1",add);
| }
| catch(Exception e){
| e.printStackTrace();
| }
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966356#3966356
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966356
19 years, 8 months
[JBoss Seam] - Re: Architecture Question
by stan.silvert@jboss.com
"smies" wrote : So you are saying that I could use the same Action classes to create a non-web application with? I don't really see that. You already add a lot of annotations to the Action class to let it communicate with the view, like the @In, @Out, @DataModel, @DataModelSelection, etc...
Yes, you can create a non-web application with those actions. I haven't seen it yet, but I'm sure that someone will come up with a pure client/server ViewHandler suitable for Swing apps. The real difference would be that rendering happens on the client instead of the server, but the response from the action would work just fine as-is.
Notice that the JSF/Seam scopes are not even tied to servlet/web technology.
None of those annotations have anything to do with a particular view technology. They are about managing state that any view is free to access.
The question is, why would you want to hide this state behind another layer? There were good reasons for it in J2EE 1.4, but with EJB3/Seam those reasons go away.
Stan
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966354#3966354
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966354
19 years, 8 months