[JBoss Seam] - Problem with Seam & JSF & facelets
by Shinerella
Hi everybody ! I have an existencial question about something, I just updated my proyect libraries to the latest stable seam lib (but also the faces lib) and now somehow, all those lines that are commented out on my xhtml pages (like the ones that calls unexisting methods) somehow they are excecuted, well... at least seam tries to instantiate them even if they are commented out, and obviusly it gives an exception then.
Am i doing something really wrong? Or somebody knows (lol) if there is a tag on a configuration file where I should specify that Im actually wanna use the comments O_o
Example
(Auto comment function by Eclipse works like this)
<!-- <h:commandButton value="Create" id="createButton" action="#{create.create}" /> -->
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969852#3969852
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969852
19 years, 7 months
[JBoss Eclipse IDE (users)] - Automatic Bytecode Instrumentation?
by supernovasoftware.com
I am using the following to instrument my classes
| <taskdef name="instrument"
| classname="org.hibernate.tool.instrument.InstrumentTask">
| <classpath refid="classpath.lib"/>
| </taskdef>
|
I need this so I can use
| private Double pipeFtCompleted;
| @Basic(fetch = FetchType.LAZY)
| @Formula(value="(select v.sumft from v_state_pipe_completed v where v.id=id)")
| public Double getPipeFtCompleted() { return pipeFtCompleted; }
| public void setPipeFtCompleted(Double pipeFtCompleted) { this.pipeFtCompleted = pipeFtCompleted;}
|
I started adding a lot of formulas to my data model to simplify complex queries. This worked well until my application took a serious performance hit.
I like the way that eclipse automically compiles my classes as I edit them. Can JBossIDE be set up to automatically instrument them as well without using the ant script?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969851#3969851
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969851
19 years, 7 months
[EJB/JBoss] - How to: Ejb call Ejb from different machine
by kevin8941
I have a sessionless ejb to call another sessionless ejb. When the two ejb are deployed in the same machine (jboss 4.0.4.GA), the call are fine, but , after I deploy in two different machine, I can't call it any more. The IP address of 192.168.2.191, is where the 2nd Ejb deployed
The way I call another ejb from one ejb is as follow:
//look up jndi in payment server machine
Hashtable<String,String> env = new Hashtable<String,String>();
env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory" );
env.put(Context.PROVIDER_URL, "jnp://192.168.2.191:1099");
env.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces" );
Context ctx = new InitialContext(env);
//Object obj = ctx.lookup("java:/comp/env/ejb/PaymentEJB");
Object obj = ctx.lookup("ejb/PaymentEJB");
PaymentHome home = (PaymentHome)javax.rmi.PortableRemoteObject.narrow(obj,PaymentHome.class);
Payment payment = home.create();
resp = (HashMap<String,String>)payment.deposit(req);
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969847#3969847
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969847
19 years, 7 months
[EJB 3.0] - caching onetomany relation
by laszlo.fogas
Hi,
I'm using treecache for second level cache:
| <property name="hibernate.cache.provider_class"
| value="org.jboss.ejb3.entity.TreeCacheProviderHook"/>
| <property name="hibernate.treecache.mbean.object_name"
| value="jboss.cache:service=TreeCache" />
| <property name="hibernate.cache.use_query_cache"
| value="true" />
|
|
I've got an entity with one to many relation defined:
|
| @Cache(usage = CacheConcurrencyStrategy.TRANSACTIONAL)
| @OneToMany(cascade = { CascadeType.ALL }, fetch = FetchType.LAZY, mappedBy = "felhasznalok")
| public Set<Kedvencek> getKedvenceks() {
| return this.kedvenceks;
| }
|
and also defined caching for collections. The whole caching works fine, except, when i merge the entity with the mapped collection (added a new entry for the onetomany relation collection), the changes appear in the database, but the cache does not update itself.
With simple entities the cache works fine, and the new values are shown.
What's the problem?
regards L
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969844#3969844
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969844
19 years, 7 months
[JBoss Portal] - Re: I can't see the tabs in my new portal.
by mmontoni
<head>
| <title><%= PortalConstants.VERSION.toString() %></title>
| <meta http-equiv="Content-Type" content="text/html;"/>
|
| <script type="text/javascript"></script>
| <p:theme themeName='GE-Blue'/>
| <p:headerContent/>
| </head>
|
| <body id="body">
| <div id="portal-container">
| <div id="sizer">
| <div id="expander">
| <div id="logoName"></div>
| <table border="0" cellpadding="0" cellspacing="0" id="header-container">
| <tr>
| <td align="center" valign="top" id="header">
| <p:region regionName='navigation' regionID='navigation'/>
| <div id="spacer"></div>
| </td>
| </tr>
| </table>
| <div id="content-container">
| <!-- insert the content of the 'left' region of the page, and assign the css selector id 'regionA' -->
| <p:region regionName='left' regionID='regionA'/>
|
| <!-- insert the content of the 'center' region of the page, and assign the css selector id 'regionB' -->
| <p:region regionName='center' regionID='regionB'/>
|
| <hr class="cleaner"/>
|
| <div id="footer-container" class="portal-copyright"> GE - Capital Solutions<br/>
| <span id="ThemeBy"></span>
| </div>
| </div>
| </div>
| </div>
| </div>
| </body>
| </html>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969843#3969843
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969843
19 years, 7 months