done ...
http://wiki.jboss.org/wiki/Wiki.jsp?page=RetrieveCompiledRulesSourceCode
2007/12/5, Mark Proctor <[EMAIL PROTECTED]>:
> Markus Helbig wrote:
> > i will do that the next days ... where should i post it?
> >
> http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossRules
> Just add a link to a page
Markus Helbig wrote:
i will do that the next days ... where should i post it?
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossRules
Just add a link to a page under the Tips and Tricks - it only takes a
minute to do.
Cheers
Markus
2007/12/5, Mark Proctor <[EMAIL PROTECTED]>:
Markus Helb
i will do that the next days ... where should i post it?
Cheers
Markus
2007/12/5, Mark Proctor <[EMAIL PROTECTED]>:
>
> Markus Helbig wrote:
> Here's the way it works for those who are interested
>
> Could you put that up on the wiki for us?
>
>
>
> -- create a Packagebuilder and build packag
Markus Helbig wrote:
Here's the way it works for those who are interested
Could you put that up on the wiki for us?
-- create a Packagebuilder and build package
JavaDialect jd = (JavaDialect) builder.getDialectRegistry().getDialect("java");
Field field = jd.getClass().getDeclaredField("sr
Here's the way it works for those who are interested
-- create a Packagebuilder and build package
JavaDialect jd = (JavaDialect) builder.getDialectRegistry().getDialect("java");
Field field = jd.getClass().getDeclaredField("src");
field.setAccessible(true);
MemoryResourceReader src = (MemoryRe
hmm ...
PackageCompilatData data = pkg.getPackageCompilationData(); // gets the
String[] list = data.list() // returns the list of files
Byte[] bytes = data.read( list[0] ) // get the bytecode for
new String(bytes);
just gives me the bytecode ... but i will try with the PackageBuilder ...
Cheers
The src code is not kept. You would have to get this from the
PackageBuilder and the JavaDialect, which is in the DialectRegistry.
You'll need to do this via reflection. When you get a reference to the
mape it'll be bytes again, just do new String(byte[] bytes).
Mark
Markus Helbig wrote:
I
I decompiled the class files, but there's sth curious in the Constant
Pool there is an invalid TagValue it is 97, it occurs in the
*ReturnValueInvoker Classes any idea what's 97 (or it should be mapped
to)?
valid types are (as far as i know):
CONSTANT_Class 7
CONSTANT_Fieldref 9
CONSTANT_M
now i tried Mark's suggestion but this is also just bytecode i get ...
ok with byte code it would be possible to decompile ...
Cheers
Markus
2007/11/28, Darko IVANCAN <[EMAIL PROTECTED]>:
> Hi,
>
> Obviously Mark's suggestion is better.
>
> Anyway: Seen, that the BRMS gives you a package (as .pk
Hi,
Obviously Mark's suggestion is better.
Anyway: Seen, that the BRMS gives you a package (as .pkg) and the
RuleAgents can load those files and Packages are Serializable, I think
you want to investigate also in this possibility, by looking how current
DRools code is doing this job.
Darko
On 28
that's right, but can you read bytecode? Or is there a way to
serialize into pure Java Code,
i think i'll try the way Mark provided ...
Cheers
Markus
2007/11/28, Darko IVANCAN <[EMAIL PROTECTED]>:
> Hi,
>
> The package can be serialized. See manual: deployment options.
> The package can also be
Hi,
The package can be serialized. See manual: deployment options.
The package can also be downloaded from the BRMS.
Hope this helps,
Darko Ivancan
On 28/11/2007 13:58, Markus Helbig wrote:
> Hi,
>
> is there any possibility to get the compiled java code of the rules
> ... could be helpful for s
Markus Helbig wrote:
Hi,
is there any possibility to get the compiled java code of the rules
... could be helpful for several reasons ...
There is no public api for this. If you are adventurous you can use the
internal stuff
PackageCompilatData data = pkg.getPackageCompilationData(); // get
13 matches
Mail list logo