Jaro Simak

Greenhorn
+ Follow
since Oct 24, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jaro Simak

Hello Naren,
the ear consist of couple of ejb-modules, just put to the root of the ear and declared in application.xml
Each ejb-module (jar-file) have META-INF directory in it and possibly ejb-jar.xml there.
I declared an exception to be application-exception in the ejb-jar.xml for the ejb-based webservice endpoint.
I hope I do nothing wrong.
Best regards
Jaro

Thank you Ivan for the comment. We use jboss 5.1.0 - I have to look closer if it supports 3.1 ejb-jar.xml. After all the version is nearly 2 years old. For now I use just the 3.0 specification.
13 years ago
Well, finally I got the point. The bug was, that the service was packaged in the war-file and declared to be servlet.
The ejb features don't apply then.
I changed the packaging and put the endpoint to a regular ejb-module and the rollbacks work now fine
You have play then a little bit around with the web context and put the wsdl to the right place and some minor issues ..
The topic I worth to be described in some tutorial or blog. I found pretty much confusing stuff in internet.
13 years ago
Well, finally I got the point. The bug was, that the service was packaged in the war-file and declared to be servlet.
The ejb features don't apply then.
I changed the packaging and put the endpoint to a regular ejb-module and the rollbacks work now fine
You have play then a little bit around with the web context and put the wsdl to the right place and some minor issues ..
The topic I worth to be described in some tutorial or blog. I found pretty much confusing stuff in internet.
Hello,
normally, if you want to override some annotated properties an ejb, you can use the descriptor ejb-jar.xml (in meta-inf).

But what if you have an webservice endpoint based on ejb, like


Actually nothing special.

Does the ejb-jar.xml still apply. Where it should be put.

In my case I have an ear-application that includes an war-file with the service. Pretty normal I think.

I am particulary interested in overriding the ApplicationException annotation on some Exception classes, that
comes generated from a wsdl and are bundled in jar-file in that war-file.


Greeting
Jaro
haven't you multiple versions of the same application in in the deploy directory. Like myapp_v1.ear and myapp_v2.app
Or haven't you put the ear-file in some subdirectory under deploy, Like deploy/old/myapp_v1.ear

Greetings Jaro
13 years ago
Thanks, for responses.
I have actually known that one can override the ApplicationException annontation in ejb-jar.xml (among others).
For a plain ejb module I would not hesitate
What I don't know if or how does it apply to a webservice which based on ejb?

Where ejb-jar.xml should be packaged?
Currently (simplified) it looks like

myService.ear contains
      META-INF/
        |--MANIFEST.MF
        |--application.xml

      myService.war contains
            WEB-INF/
                 |--web.xml
                 |--wsdl/
                   |--myService.wsdl
                 |--classes/
                   |--class files
                 |--lib/
                   |--*jar files


I have tried it just like put it in meta-inf in the war file. But it does not work.
The rollback does not get called.


myService.ear contains
      META-INF/
        |--MANIFEST.MF
        |--application.xml

      myService.war contains
            meta-inf/
                |--ejb-jar.xml
            WEB-INF/
                 |--web.xml
                 |--wsdl/
                   |--myService.wsdl
                 |--classes/
                   |--class files
                 |--lib/
                   |--*jar files


Any suggestions?
Greetings Jaro
13 years ago
Hello,
I have an implementation problem concerning transaction handling in a webservice endpoint.
I hope someone can help me.

I have defined a service in an wsdl, generated some classe using JAX-WS.
Finally, I wrote the webservice implementation, like that



Well, what I want to reach is that rollback is called, wenn
MyServiceFault is thrown in the webservice.
If I could, I put the annotation
@ApplicationException(rollback=true) on it. But it comes already compiled, generated from wsdl as the operation comes
with the some soap-faults.

I presume, there must be some way make it using some descriptor.
But, actually I don't have any.

Some suggestions?

Greetings Jaro
13 years ago
Hi,
I need to change JTA/Transaction Log File Write Policy programmatically. Optimal would be to call weblogic.Admin. Unfurtunatelly, there is no mbean or property documented.

Thanks for any recommendation...

WBL 8.1 SP4

Best regards
Jaro
16 years ago
The very the same for me. I took 2 years from the time I downloaded the assignment. I had not much time for this project. It was no problem at all.
Hi,

we use the DeployerRuntimeMBean for stopping/deploying an application.

it goes just like


Now, the userid and password are stored in a user-configuration file and user key file.
We generate these files using the weblogic.Admin utility and its command STOREUSERCONFIG.

The question is: Can the user-configuration file and user key file be used by the java API?
What must I do to get it work?

Best Regards Jaro
16 years ago
For some unexpected miracle, the people in Sun answered very soon in my case. I have posted 3 or 4 mail to who2contact, to the local certification office and to prometric. The last two have nothing to do with it, but they were so kind and forwarded it further to who2contact. Somehow I helped.

I should say I have tried to contact the people some months ago, but without success.

The only thing I am puzzeling is the poor locking score 44/80. I simply do not believe that.
I would like to compare my code with someone who got 80 points. Maybe you guys, when you get your results.

Well, next time, I would better invest my time trying EJB certification.
[ March 19, 2007: Message edited by: Jaro Prospal ]
You can use java 6.0. It is production version now.
Have you got the assignment regraded, Mark?
I have passed the exam on 02/02/2007 with (345/400). Finally. After I sent them a dozen of mails they reconsidered the exam pretty quickly.
I wish the same to you (and better score of course).

Greeting
Jaro