[Installation, Configuration & DEPLOYMENT] - JBoss tools & ejb3
by errorken123
I'm looking for a way to generate all the stuff I need to deploy my EJB3 enterprise project. I downloaded JBoss 4.2, Eclipse 3.3 and JBoss tools 2.0 RC1 which I extracted in the eclipe 3.3 root directory.
All goes fine; I can use the wizard to create session beans (V3) which creates nice skeletons with all the annotations I need. Also deploying it on JBoss and testing the EJB with a standalone client is no problem.
Now; I'm wondering how can I generate the container specific deployment descriptors such as jboss.xml ? I'm also planning to do some tests with JPA, for which I have the same question on how I can generate the persitence.xmk. For the JBoss.xml I allready found some JBoss annotations which do the same thing, however I would really like to add some specific things in the jboss.xml. No doubt I can create it manually, but there must be some automatic way to do this ? Or perhaps there is a way that the annotations in the code can serve as a foundation for the jboss.xml ... (xdoclet allike)
for example; the JNDI location where the beans are deployed, a default could easily be generated for the session beans I have in my project. I'm also a bit confused with the "jboss tools" for eclipse, there seems to be little functioanlityt in eclipse , besides the EJB3 session bean templates I cannot see anything special (for example, if I do new->jboss tools->descriptors there is no '3.0' descritpor, only 2.0 and 2.1)
Some help would be greatly appreciated, I cannot find any usefull documentation on "jboss tools" on this.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108912#4108912
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108912
18 years, 5 months
[EJB 3.0] - EJB3 + JBoss Tools (IDE)
by errorken123
I'm looking for a way to generate all the stuff I need to deploy my EJB3 enterprise project. I downloaded JBoss 4.2, Eclipse 3.3 and JBoss tools 2.0 RC1 which I extracted in the eclipe 3.3 root directory.
All goes fine; I can use the wizard to create session beans (V3) which creates nice skeletons with all the annotations I need. Also deploying it on JBoss and testing the EJB with a standalone client is no problem.
Now; I'm wondering how can I generate the container specific deployment descriptors such as jboss.xml ? I'm also planning to do some tests with JPA, for which I have the same question on how I can generate the persitence.xmk. For the JBoss.xml I allready found some JBoss annotations which do the same thing, however I would really like to add some specific things in the jboss.xml. No doubt I can create it manually, but there must be some automatic way to do this ? Or perhaps there is a way that the annotations in the code can serve as a foundation for the jboss.xml ... (xdoclet allike)
for example; the JNDI location where the beans are deployed, a default could easily be generated for the session beans I have in my project. I'm also a bit confused with the "jboss tools" for eclipse, there seems to be little functioanlityt in eclipse , besides the EJB3 session bean templates I cannot see anything special (for example, if I do new->jboss tools->descriptors there is no '3.0' descritpor, only 2.0 and 2.1)
Some help would be greatly appreciated, I cannot find any usefull documentation on "jboss tools" on this.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108911#4108911
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108911
18 years, 5 months
[JNDI/Naming/Network] - HELP! Can't connect to 1099?
by McJava1967
Hi folks. When my new JBoss 4.2 Eclipse plugin starts, I'm getting this in the event log:
JMXException: Could not obtain connection to any of these urls: localhost:1099 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]
I've tried switching the port to something like 1234, to be sure it wasn't in use, but I get the same error. The server itself does come up, but it seems I can't use JNDI for this reason.
I'm a newbie at JBoss, so there's a good chance I missed something obvious. If anyone could point me in the right direction on this, I'd really appreciate it. I've been trying to get started here for a couple weeks!
Thanks!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108907#4108907
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108907
18 years, 5 months
[JBossCache] - Re: ClusteredCacheLoader + LOCAL CacheMode
by lovelyliatroim
So now im left asking myself what the hell is ClusteredCacheLoader used for??
Doesnt make sense to use it with a replicated cache, you could use it with invalidation and you cant use it with a local cache.
Then i come across this
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=118598
2 Reasons are given as to why to use it.
Reason 1 doesnt make sense to me if you cant set your cache to LOCAL, to avoid the initial state transfer but if you have to run in replication or invalidation mode then this transfer has to happen or maybe i dont see the other case(s).
Reason 2 i cant comment on because i dont know what the overhead of writing to persisten store is yet!!(On my todo list ;) )
And the very last comment
anonymous wrote :
| The other reason for using a CCL is if you don't want any replication at all - i.e., caches are configured as LOCAL, but use a shared database as a cache loader. This way, you could use a CCL as well to prevent overloading your shared DB.
|
So i assume the above statement is incorrect, you cant use it when set to LOCAL or is there a case when you can?
Basically what i wanted was 2 standalone nodes without any replication/validation going on but with the ability to ask the other if they had data if it doesnt have it. Looks like its not to be...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108906#4108906
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108906
18 years, 5 months
[Beginners Corner] - HELP! Can't connect to 1099?
by McJava1967
Hi folks. When my new JBoss 4.2 Eclipse plugin starts, I'm getting this in the event log:
JMXException: Could not obtain connection to any of these urls: localhost:1099 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]
I've tried switching the port to something like 1234, to be sure it wasn't in use, but I get the same error. The server itself does come up, but it seems I can't use JNDI for this reason.
I'm a newbie at JBoss, so there's a good chance I missed something obvious. If anyone could point me in the right direction on this, I'd really appreciate it. I've been trying to get started here for a couple weeks!
Thanks!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108905#4108905
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108905
18 years, 5 months
[JBoss Seam] - Re: generating forms programatically
by steshaw
J, I've seen an example in my searches that used the c: tags to help with a little logic (choosing between a "display" set of components and an "edit" set of components I think). That could certainly have some uses. However, is it possible to inquire about annotations and other meta data about bean properties using only c: tags? Can you show an example, maybe I'm missing something.
I feel at that point, even if possible, that it is too much logic in the template. I cannot imagine that refactoring c: tags in Facelets templates would be much fun :) - I imagine we don't even have "extract method". With templating, and Facelets in particular, aren't we trying to avoid logic in the template?
I would love to do as Peter suggest and do it "with code". I'm just struggling to find the appropriate place to do it. Btw, I am hoping to reuse the s:decorate component from within my code, along with any other useful components. Creating my own component set seems to be quite a bit of trouble though, looking at Hightower part 4 article (seems to be at least one bug in there too). However, that is certainly one option that I am considering (it's so annoying how you have to create a Component and a Tag and a mention in the taglib.xml file!). I recently discovered Ajax4Jsf/RichFaces CDK which could help cutting down the boilerplate with that. Peter I noted that you have had similar thoughts on your blog :).
It seems that JSF templating convolutes the creation of the component tree and the template/layout itself. If I could create my component tree with code and lay them out in a template (amongst more static components I guess), things might be heading towards my ideal scenario.
I will certainly follow up with the Facelets list. Thanks for the thoughts. Keep them coming!
I've also come across an old article from 2004 "Improving JSF by dumping JSP". I haven't finished yet but it's starting to talk about the idea of using a programmatic view handler (instead of JSP in this case - perhaps before Facelets was around) where you can construct the component tree "in code". A custom view handler could be hard to sell to the team though :(.
Cheers,
Steve.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108904#4108904
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108904
18 years, 5 months