[JBoss Tools (users)] - using HQL editor with JBoss Tools
by asookazian
using Eclipse
Version: 3.3.1.1
Build id: M20071023-1652
JBoss Tools plug-in version 2.0.0.GA
according to http://labs.jboss.com/tools/:
anonymous wrote : Hibernate Tools Supporting mapping files, annotations and JPA with reverse engineering, code completion, project wizards, refactoring, interactive HQL/JPA-QL/Criteria execution and more.In short a merger of Hibernate Tools and Exadel ORM features.
I'm wondering if Hibernate Tools behaves the same way as MyEclipse regarding JPAQL editor. MyEclipse does not support JPAQL editor so you basically have to add Hibernate capabilities to your Eclipse java project, reverse engineer your entities and foobar.orm.xml files, etc. before you can use the HQL editor.
In many cases, you don't want a Hibernate-capable project; you want a JPA-capable project. So the current work-around with MyEclipse is to create another project with Hibernate capabilities for HQL editor (testing of your queries) purposes.
How is the situation with Jboss Tools and/or JBoss dev studio (which has JBoss tools as a plugin I'm guessing)? I don't want to create the Hibernate-specific foobar.orm.xml files for a JPA project.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141148#4141148
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141148
18 years
[EJB 3.0] - Re: @EJB Annotation
by mvlmachado
hi guys,
I've tested as suggested by ashish and it worked. i guess this solution a 'hardwire', because you have to change the name property as you need to rename the EAR deployed. my last suggestion was using a user-defined name ("ejb/AloMundo"), instead of jboss standard name ("BeanName/Intf").
the code below doesn't work in jboss5.0.0.beta4 but it would be the simplest and standard way to referring an ejb. Surprisingly, the same code works in jboss4.2.2.GA.
| public class Alo {
|
| @EJB
| private AloRemote aloRemote;
|
| public String getAlo() {
| return aloRemote.alo();
| }
|
| }
|
adopting ashish's strategy, this code works in jboss5:
| public class Alo {
|
| @EJB(name="AloMundo/AloBean/remote")
| private AloRemote aloRemote;
|
| public String getAlo() {
| return aloRemote.alo();
| }
|
| }
|
AloMundo is earname, AloBean is ejbname
regards
marcus
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141144#4141144
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141144
18 years
[JBoss Portal] - Portlet Container 2.0.0 CR2, Portlet Bridge and JSF 1.2 Prob
by dgashby
Hi,
I know this is a bit bleeding edge but I was just wondering if anyone has tried this combination yet?
I've been trying to get the richfaces-basic example built from the Maven archetype working under the JBPC 2.0.0 CR2 on Tomcat 6.0. The initial view for the example portlet is successfully rendered but the processing of the request when you hit the enter key is broken.
The exact nature of the problem is dependent on the JSF 1.2 implementation being used. If using the JSF reference implementation (1.2-b20-FCS) then the request just seems to be ignored (we suspect the HTTP request parameters are not making it across to the portlet action request). When using MyFaces 1.2.2 an HTTP 500 error is returned by the SimplePortal but no exceptions are thrown either in the console or any of the Tomcat log files.
Thought I'd check here before posting this as a bug in Jira.
Cheers,
Dean
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141143#4141143
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141143
18 years
[Security & JAAS/JBoss] - Re: How to configure JBoss AS to use SSL (https)
by pete007
Hello,
thank you for the links, now I understand it a little better.
The rest of my post was intended as a please-help-me-request, but I managed to solve the problem by myself. :))
So, interested readers can use it as a guideline for setting up SSL for a single Seam application on a JBoss Server. (Seam 2.0.0 and Jboss 4.2.0)
Thanks a lot and have fun, Pete
btw: the other non-https-application on the same server is still working.
---------------------------
Enabled SSL in the file "server.xml" in my deploy-directory by uncommenting the following entry:
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true" maxThreads="150"
| scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" />
Added the following parameters to the above tag:
keystoreFile="${jboss.server.home.dir}/conf/myapp.keystore"
| keystorePass="topsecretpwd"
Enabled SSL in the desired seam application by editing pages.xml:
<page view-id="*" scheme="https"> ...
Created a key with the keytool with the following command:
keytool -keystore jboss-dir\server}default\conf\myapp.keystore -genkey -alias myalias -keypass mypassword
I was prompted for the keystore-password, where I used the one from the server.xml (topsecretpwd) and I can see the key, when I list all keys with:
keytool -keystore jboss-dir\server}default\conf\myapp.keystore -list
| myalias, 02.04.2008, keyEntry,
| Zertifikatsfingerabdruck (MD5): XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:04:E4:F7:8A:6A:FE
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141136#4141136
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141136
18 years